Logical Volume Manager (Linux)

From wikieduonline
Jump to navigation Jump to search

LVM[1] available in Linux allows manage multiple physical volumes or entire hard disks. It supports among other functionalities:

  • Create single logical volumes of multiple physical volumes or entire hard disks
  • Add or remove volumes/disk dynamically
  • Increase or decrease size of Logical Volumes (LVs)
  • Create snapshots

LVM introduces the concept of Volume Groups (VGs) and Logical Volumes (LVs).

Basic commands

  • Display commands:
/pvdisplay/[4]
/lvdisplay/
/vgdisplay/
  • Create commands:
/pvcreate/[5]
/lvcreate/[6]
/vgcreate/

Advanced commands

  • lvchange[11] — Change attributes of the Logical Volume Manager.
  • lvmdiskscan — Scan for all devices visible to LVM2.
  • lvmdump — Create lvm2 information dumps for diagnostic purposes.

Activities

See also

Advertising: