1. Glossary: PV (PhysicalVolume): Physical volume, which is at the bottom of LVM and can be a physical hard disk or partition. VG (VolumeGroup): Volume Group, built on PV, can contain one or more PVS. LV (LogicalVolume): logical volume, built on top of VG, is equivalent to the concept of the original partition. However, the size can be dynamically changed.
1. glossary:
PV (Physical Volume): Physical Volume, which is at the bottom of LVM and can be a Physical hard disk or partition.
VG (Volume Group): Volume Group, built on PV, can contain one or more PVS.
LV (Logical Volume): Logical Volume, built on top of VG, is equivalent to the concept of the original partition. However, the size can be dynamically changed.
PE (Physical Extend): The smallest storage unit that can be allocated in the Physical area. it can be specified when PV is created, such as 1, 2, 4, 8... .... 64 M.
PES with PVS should be the same.
LE (Logical Extend): Logical Region. the minimum storage unit that can be allocated in the LV depends on the PE size in the PV of the LV.
VGDA (Volume Group Descriptor Area): Volume Group description Area, which exists in each PV. it is used to describe the VG contained in the PV, the LV in the VG, and the physical region allocation in the LV, create a PV by using the pvcreate command.
2. LVM creation process:
Create an LVM-type partition
Create an LVM physical volume
Create an LVM volume Group
Create LVM Logical Volume
Create a file system
Mount a file system
Use a file system
3. PV-related commands
Commands related to LVM physical volume management include:
Pvdisplay: displays PV attributes.
Pvscan: Search for PV on all hard disks of the system
Pvcreate: create PV (Initialize VGDA on PV)
Pvdata: displays VGDA information on PV.
Pvchange: changes the PV attribute.
Pvmove: move PE/LE between PVS
4. VG-related commands
Commands related to LVM volume Group management include:
Vgdisplay: displays the VG volume group attributes.
Vgscan: find the existing VG volume Group of the system
Vgcreate: Create a VG volume Group (Initialize VGDA on VG)
Vgdata: displays VGDA information on the VG volume group.
Vgchange: changes the VG volume group attributes.
Vgmove: move PE/LE between VG volume groups
5. LV commands
Commands related to LVM Logical Volume management include:
Lvdisplay: displays LV volume group attributes.
LvsCan: find the existing LV volume Group of the system
Lvcreate: Create an LV volume Group (Initialize LVDA on LV)
Lvdata: displays LVDA information on the LV volume group.
Lvchange: change the LV volume group attributes.
Lvmove: move PE/LE between LV volume groups