14. Advanced Storage Management
1. Logical volume:
1-1:
pv------------physical volume------------physical partition processed
pe------------physical extension-- --------Set the minimum storage unit
vg------------Physical volume group----------Bundle PV into a group
lv---- ---------Logical volume------------Allocate the final use device (integer multiples of pe)
1-2: Establishment of lvm:
1-3: Stretching of lvm:
When the capacity in vg is sufficient:
When the capacity in vg is insufficient:
1-4: Reduction of lvm:
When shrinking, it must be formatted into: ext4 format
. Remember to uninstall the device before shrinking: then check the file information on the device: (e2fsck)
1-5: Delete of lvm:
pvmove /device1 /device2 synchronize the data on dev1 to dev2; (cannot end with ctrl c during the synchronization process)
umount /dev/mapper/westosvg-westoslv
lvremove /dev/westosvg/westoslv
vgremove westosvg
pvremove /dev/sda2
1-6: Snapshot of lvm:
lvcreat -L 20M -n haha -s /dev/device
2.vdo virtual data optimizer: