发布时间:2015-09-13 22:05:59作者:知识屋
[root@localhost ~]# fdisk -lDisk /dev/sda: 128.8 GB, 128849018880 bytes255 heads, 63 sectors/track, 15665 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice BootStartEndBlocksId System/dev/sda1* 1 1310439183 Linux/dev/sda2 14 10443 837789758e Linux LVM/dev/sda3 10444 15665 4194571583 Linux[root@localhost ~]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2[root@localhost ~]# pvscan PV /dev/sda2VG VolGroup00lvm2 [79.88 GB / 0 free] PV /dev/sda3VG VolGroup00lvm2 [40.00 GB / 40.00 GB free] Total: 2 [119.88 GB] / in use: 2 [119.88 GB] / in no VG: 0 [0][root@localhost ~]# pvdisplay --- Physical volume --- PV Name/dev/sda2 VG NameVolGroup00 PV Size79.90 GB / not usable 23.41 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 2556 Free PE0 Allocated PE 2556 PV UUIDYGtB2J-ZKJr-mV62-NluQ-2DGy-vuUT-cCc1lo --- Physical volume --- PV Name/dev/sda3 VG NameVolGroup00 PV Size40.00 GB / not usable 2.61 MB Allocatable yes PE Size (KByte) 32768 Total PE 1280 Free PE1280 Allocated PE 0 PV UUIDwsnv13-7j1H-SH8q-hl6k-HpNc-x4WU-gM7LzW[root@localhost ~]# lvscan ACTIVE'/dev/VolGroup00/LogVol00' [77.91 GB] inherit ACTIVE'/dev/VolGroup00/LogVol01' [1.97 GB] inherit[root@localhost ~]# lvs LV VGAttrLSize Origin Snap% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao 77.91G LogVol01 VolGroup00 -wi-ao 1.97G
[root@localhost ~]# vgreduce VolGroup00 /dev/sda3Removed "/dev/sda3" from volume group "VolGroup00"[root@localhost ~]# clip_image001
[root@localhost ~]# pvscan PV /dev/sda2VG VolGroup00lvm2 [79.88 GB / 0 free] PV /dev/sda3 lvm2 [40.00 GB] Total: 2 [119.88 GB] / in use: 1 [79.88 GB] / in no VG: 1 [40.00 GB][root@localhost ~]# pvs PVVGFmt Attr PSize PFree /dev/sda2 VolGroup00 lvm2 a-79.88G 0 /dev/sda3 lvm2 a-40.00G 40.00G[root@localhost ~]# pvremove /dev/sda3 Labels on physical volume "/dev/sda3" successfully wiped[root@localhost ~]# pvscan PV /dev/sda2VG VolGroup00lvm2 [79.88 GB / 0 free] Total: 1 [79.88 GB] / in use: 1 [79.88 GB] / in no VG: 0 [0]
linux一键安装web环境全攻略 在linux系统中怎么一键安装web环境方法
Linux网络基本网络配置方法介绍 如何配置Linux系统的网络方法
Linux下DNS服务器搭建详解 Linux下搭建DNS服务器和配置文件
对Linux进行详细的性能监控的方法 Linux 系统性能监控命令详解
linux系统root密码忘了怎么办 linux忘记root密码后找回密码的方法
Linux基本命令有哪些 Linux系统常用操作命令有哪些
Linux必学的网络操作命令 linux网络操作相关命令汇总
linux系统从入侵到提权的详细过程 linux入侵提权服务器方法技巧
linux系统怎么用命令切换用户登录 Linux切换用户的命令是什么
在linux中添加普通新用户登录 如何在Linux中添加一个新的用户
2012-07-10
CentOS 6.3安装(详细图解教程)
Linux怎么查看网卡驱动?Linux下查看网卡的驱动程序
centos修改主机名命令
Ubuntu或UbuntuKyKin14.04Unity桌面风格与Gnome桌面风格的切换
FEDORA 17中设置TIGERVNC远程访问
StartOS 5.0相关介绍,新型的Linux系统!
解决vSphere Client登录linux版vCenter失败
LINUX最新提权 Exploits Linux Kernel <= 2.6.37
nginx在网站中的7层转发功能