pvmove | Migrates data from one physical volume to another |
lvcreate | Creates a logical volume or snapshot LV |
lvextend | Grows a logical volume |
lvreduce | Shrinks a logical volume |
lvresize | Grows or shrinks a logical volume |
vgscan | Scans block devices for volume groups (necessary when using a rescue-mode boot) |
You can also enter any of these subcommands as the first argument on the
# lvm
LV VG Attr LSize Origin Snap% Move Log Copy%
home main -wi-ao 1.00G
multimedia main -wi-ao 512.00M
root main -wi-ao 9.77G
swap main -wi-ao 1.00G
Symbolic links have been set up from
# ls -l
lrwxrwxrwx 1 root root 3 Mar 20 14:49 /usr/sbin/lvs -> lvm
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
home main -wi-ao 1.00G
multimedia main -wi-ao 512.00M
root main -wi-ao 9.77G
swap main -wi-ao 1.00G
The symbolic links are not available when you are in rescue mode (see Lab 10.6, 'Using Rescue Mode on an Installation Disc'), so it's important to remember that you can also use these subcommands as arguments to the
6.1.1.3.1. LVM device names
Logical volumes can be accessed using any of three different device nodes:
? In the
? There is a separate directory in
? Using
In addition to these device node names, some LVM commands allow the volume group and logical volume names to be written as
6.1.1.3.2. Getting information about LVM elements
To discover the VGs present on your system, use the
# vgs
VG #PV #LV #SN Attr VSize VFree
main 2 4 0 wz--n- 20.04G 7.78G
This shows the volume group name, the number of physical volumes, logical volumes, and snapshots; attributes (see the manpage for
# vgdisplay
--- Volume group ---
VG Name main
System ID
Format lvm2
Metadata Areas 2