Logical volumes are created using the lvcreate command:
lvcreate --size 256M --name foo /dev/vg01
The volume will be accessible as either /dev/vg01/foo or /dev/mapper/vg01-foo. It may be used in much the same way as a hard drive partition.
Verify the existence of the logical volume using the lvdisplay command:
lvdisplay /dev/vg01/foo
This should give a response of the form:
--- Logical volume --- LV Name /dev/vg01/foo VG Name vg0 LV UUID afaHxF-nZrA-S1eo-kjsY-mt6C-p04e-IU8Bqu LV Write Access read/write LV Status available # open 0 LV Size 256.00 MB Current LE 64 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:64
Having created a new logical volume you may want to: