14. Advanced Storage Management

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:

Insert picture description here

Insert picture description here

1-3: Stretching of lvm:
Insert picture description here
When the capacity in vg is sufficient:
Insert picture description here
When the capacity in vg is insufficient:
Insert picture description here
1-4: Reduction of lvm:

Insert picture description here

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)
Insert picture description here

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

Insert picture description here

1-6: Snapshot of lvm:

lvcreat  -L  20M  -n  haha -s /dev/device

Insert picture description here

2.vdo virtual data optimizer:

Insert picture description here

Guess you like

Origin blog.csdn.net/lb1331/article/details/109773644