LVM Logical Volume Manager
LVM mainly to resolve adjust the size of our dynamic hard disk partition
Physical volume PV LV logical volume group VG
PE = 4M
Deployment of logical volumes
pvcreate /dev/sd[b-c]
vgcreate fangb /dev/sd[b-c]
vgdisplay
lvcreate -n vo -l 37 fangb
lvdisplay
mkfs.ext4 /dev/fangb/vo
mkdir /linuxprobe
mount /dev/fangb/vo /linuxprobe
df -h
echo "/dev/fangb/vo /linuxprobe ext4 defaults 0 0" >> /etc/fstab
Logical Volume Expansion
umount /linuxprobe
lvextend -L 290M /dev/fangb/vo
e2fsck -f /dev/fangb/vo
resize2fs / dev / fangb / VO (resize2fs notification system kernel hard disk capacity is changed.)
mount -a
df -h