LVM hierarchy (bottom to top): ext3-& gt; lv (logicalvolumn)-& gt; pv (physicalvolumn)-& gt; vg (volumngroup) LVM creation steps (for example, creating LVM on/dev/sdb): 1. format the hard disk: fdisk/dev/sdbn: create a new disk...
LVM hierarchy (bottom to top ):
Ext3-> lv (logical volumn)-> pv (physical volumn)-> vg (volumn group)
LVM creation steps (for example, creating LVM on/dev/sdb ):
1. format the hard disk: fdisk/dev/sdb
N: create a new disk partition (which can be a primary partition or an extended partition)
T: change the partition to the Linux LVM format. the format is 8e.
W: write and modify the above operations
2. create pv: pvcreate/dev/sdb1
3. create vg: vgcreate testvg/dev/sdb1
4. create lv: lvcreate-L20G-n testlv testvg
5. format lv: mkfs. ext3/dev/testvg/testlv
6. Complete
It is not recommended to use the lvreduce command to narrow down the lv partition. after multiple attempts, errors often occur in e2fsck-f.
Use the lvextend command to expand the lv partition:
1. lvextend-L + 20G/dev/testvg/testlv
2. e2fsck-f/dev/testvg/testlv
3. resize2fs/dev/testvg/testlv