Command |
What It Does |
e2fsadm |
resizing for lvextend, lvreduce, e2fsck and resize2fs administration wrapper for logical volume including file system |
lvchange |
change attributes of a logical volume |
lvcreate |
create a logical volume |
lvdisplay |
display logical volume config data |
lvextend |
extend a logical volume in size |
lvreduce |
reduce a logical volume in size |
lvremove |
remove a logical volume
|
lvrename |
renames an inactive logical volume |
lvscan |
find all existing logical volumes |
|
|
lvmchange |
emergency program to change attributes of the LVM |
Lvmdiskscan |
scan all disks / partitions and multiple devices and list them |
lvmsadc |
statistic data collector |
lvmsar |
statistic data reporter |
|
|
pvchange |
change attributes of physical volumes |
pvcreate |
create a physical volume |
pvdata |
debug list physical volume group descriptor area |
pvdisplay |
display physical volume config information |
pvmove |
move logical extents to a different physical volume |
pvscan |
find all existing physical volumes |
|
|
vgcfgbackup |
backup all volume group descriptor areas |
vgcfgrestore |
restore volume group descriptor area(s) to disk(s) |
vgchange |
activate/deactivate volumr group(s) |
vgck |
check volume group descriptor area for consistency |
vgcreate |
create a volume group from physical volume(s) |
vgdisplay |
display volume group config information |
vgexport |
export volume group (make it unknown to the system) |
vgextend |
extend a volume group by one or more physical volumes |
vgimport |
import a volume group (make it known to the/another system) |
vgmerge |
merge two volume groups into one |
Vgmknodes |
creates volume group directory with all logical volume specials |
vgreduce |
reduce a volume group by one or more empty physical volume(s) |
vgremove |
remove an empty volume group |
vgrename |
renames an inactive volume group |
vgscan |
scan for volume groups |
vgsplit |
split one volume group into two |
As you can see from the above list, the features of LVM are quite sophisticated. You can split volume groups in two, you can merge them into one, etc. In your daily job as a sysadmin of a large server with many disks, LVM is a blessing. It is easy, however, to loose sight of what you did and why you did. That's why I keep a paper log of all changes I made to servers, along with a short explanation of why. Then I leave a copy of it to the sysadmin of the machine. If, God forbid, something should happen to me, the sysadmin can always reconstruct the situation from the logs I provided.
Have fun with LVM!
(Many thanks to the LVM team for this wonderful software and for their documentation, upon which I based this article.)
Moshe Bar is an Israeli system administrator and OS researcher, who started learning Unix on a PDP-11 with AT&T Unix Release 6 back in 1981. He holds an M.Sc in computer science. Visit his website at http://www.moelabs.com/
For more of Moshe's columns, visit the Serving With LinuxIndex Page
.
Page 3 of 3