Creating LVM partitions.

After creating a new partition (/dev/hda5) with fdisk run the below commands:

# partprobe
# pvcreate /dev/hda5
# vgcreate vg0 /dev/hda5
# lvcreate -L 1G -n lv0 vg0
# mke2fs -j /dev/vg0/lv0

Comment