Example
Initialize partition
#4 on the third SCSI disk and the entire fifth SCSI disk for later use by LVM:
pvcreate /dev/sdc4 /dev/sde
vgcreate
- create a volume group
EXAMPLES
To create a volume
group named test_vg using physical volumes /dev/hdk1, /dev/hdl1,
and /dev/hdm1 with default physical extent size of 4MB:
vgcreate
test_vg /dev/sd[k-m]1
lvcreate
- create a logical volume in an existing volume group
Examples
lvcreate –L 10G –n lv01 testvg
vgextend
- add physical volumes to a volume group
Examples
"vgextend vg00 /dev/sda4 /dev/sdn1"
tries to extend the existing volume group "vg00" by the new physical
volumes "/dev/sdn1" and
/dev/sda4".
lvextend - extend the size of
a logical volume
Examples
lvextend
-L +54 /dev/vg01/lvol10