How to use LVM (pvcreate, pvscan, pvdisplay, vgcreate, lvcreate)

LVM = Logical Volume Manager.

You can create logical partitions with LVM that can span across one or multiple physical hard drives.

Hard drives are divided into physical volumes, then those physical volumes are combined together to create the volume group and next the logical volumes which is created from the volume group.

Macro steps.

  • Identify the physical hard drives to be used and create Physical Volumes
  • Create the Volume Group from Physical Volumes
  • Create Logical Volumes from Volume Group
[mai mult...]