Create two or more partitions and format them .

Creating Physical volume :

#  pvcreate  /dev/sda9  /dev/sda10 OR  #  pvcreate  /dev/sda{9,10}

Display physical volume :

#  pvdisplay

Creating Volume group :

#  vgcreate  [volume group name]  /dev/sda{9,10}

Eg. # vgcreate vg0 /dev/sda{9,10}

Display volume group :

#  vgdisplay

Creating Logical volume :

#  lvcreate  -L  [size] [name of volume group]    -n  [name of logical volume]

Eg. #  lvcreate  -L  +100M  /dev/vg0  -n  lv0

Display logical volume :

#  lvdisplay

  • To remove LVM :

#  lvremove  [name of volume group]
Eg. # lvremove vg0

#  vgremove  [name of volume group]
Eg. # vgremove vg0

#  pvremove  /dev/sda{9,10}