LVM 3
What is the basic order of LVM commands?
The basic order of LVM (Logical Volume Manager) commands typically involves the following steps:
Create a Physical Volume (PV) on one or more storage devices using the
pvcreatecommand.Create a Volume Group (VG) that contains one or more Physical Volumes using the
vgcreatecommand.Create one or more Logical Volumes (LV) within the Volume Group using the
lvcreatecommand.Format the Logical Volumes with a filesystem using a command such as
mkfs.Mount the Logical Volumes to a directory using the
mountcommand.Optionally, update the
/etc/fstabfile to automatically mount the Logical Volumes at boot time.Manage the Logical Volumes using commands such as
lvextend,lvreduce,lvremove, andlvdisplay.Manage the Volume Group using commands such as
vgextend,vgreduce,vgremove, andvgdisplay.Manage the Physical Volumes using commands such as
pvmove,pvresize, andpvdisplay.
It is important to note that the exact order of LVM commands may vary depending on the specific task being performed.
