logical volume

A block device carved out of a volume group, which you format and mount like a partition but can resize later.

In more detail

lvcreate -L gives a size and -l a number of extents; -n names it, or LVM calls it lvol0. lvextend -r grows the volume and the file system on it in one command. It appears as /dev/VG/LV and /dev/mapper/VG-LV.

Examples

lvcreate -n lvdata -L 400M vgdata
lvextend -r -L 600M /dev/vgdata/lvdata

Related terms

Related guides

Taught in

References

Certification courses