In implementing a file system that can elastically adjust capacity
Fdisk/dev/hda partition
Partprobe Update partition
Pvscan Check for PV presence or not
Pvcreate/dev/hda5 Creating PV
Vgcreate vbirdvg/dev/hda{6,7,8} Create VG
Vgscan
Pvscan
Vgextend VBIRDVG/DEV/HDA9 Added VG
Lvcreate-l 5.56g-n VBIRDLV VBIRDVG
Mkfs-t EXT3/DEV/VBIRDVG/VBIRDLV
Mkdir/mnt/lvm
Mount/dev/vbirdvg/vbirdlv/mnt/lvm
Enlarge LV
Fdisk/dev/hda, Partprobe
Pvcreate/dev/hda10
Vgextend vbirdvg/dev/hda10
Lvresize-l +M/DEV/VBIRDVG/VBIRDLV Reduced Use-
Lvdisplay
RESIZE2FS/DEV/VBIRDVG/VBIRDLV making changes effective in the system
Zoom Out LV
Umount/mnt/lvm
E2fsck-f/DEV/VBIRDVG/VBIRDLV Disk Check
RESIZE2FS/DEV/VBIRDVG/VBIRDLV 6900M reduces file system capacity
Mount/dev/vbirdvg/vbirdlv/mnt/lvm
Df/mnt/lvm
Lvresize-l-M/DEV/VBIRDVG/VBIRDLV Lower LV capacity
Pvdisplay
PVMOVE/DEV/HDA6/DEV/HDA10 Moving PV Data
Pvmove source PV Target PV, you can move the PE in the/dev/hda6 to/DEV/HDA10
Vgreduce Vbirdvg/dev/hda6 move out of VG
Pvscan
Pvremove/dev/hda6 Moving out of PV
System snapshot for LVM P575
Linux Learning -15-Learning LVM Logical Volumes