LinuxCommandLibrary

lvm

linux Logical Volume Manager, providing flexible disk management through

TLDR

Start interactive shell

$ sudo lvm
copy
Initialize physical volume
$ sudo lvm pvcreate /dev/sda1
copy
Display physical volumes
$ sudo lvm pvdisplay
copy
Create volume group
$ sudo lvm vgcreate vg1 /dev/sda1
copy
Display volume groups
$ sudo lvm vgdisplay
copy
Create logical volume
$ sudo lvm lvcreate -L 10G vg1
copy
Display logical volumes
$ sudo lvm lvdisplay
copy

SYNOPSIS

lvm [command [OPTIONS]]

DESCRIPTION

lvm is the Linux Logical Volume Manager, providing flexible disk management through physical volumes (PVs), volume groups (VGs), and logical volumes (LVs). It enables dynamic resizing, snapshots, mirroring, and striping.

PARAMETERS

pvcreate

Initialize a physical volume
pvdisplay
Display physical volume information
vgcreate
Create a volume group
vgdisplay
Display volume group information
lvcreate
Create a logical volume
lvdisplay
Display logical volume information
lvextend
Extend a logical volume
lvreduce
Reduce a logical volume
help command
Display help for a specific command

CAVEATS

LVM requires physical volumes to be initialized before use. Reducing volumes requires careful handling to avoid data loss. Some operations require the logical volume to be unmounted.

HISTORY

LVM2 is the second major version of the Linux Logical Volume Manager, providing enterprise-grade storage management capabilities.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community