Recent Changes - Search:




Main.LVM History

Hide minor edits - Show changes to output

December 14, 2012, at 10:57 AM by -
Changed lines 1-2 from:
LVM Training Notes
!!LVM Training Notes
Added lines 66-68:

October 29, 2012, at 01:49 AM by -
Added lines 1-63:
LVM Training Notes


LVM (Logical Volume Manager)

Create 3 partitions for implementing RAID using fdisk command.

e.g. #fdisk /dev/hda

Press n to create the 3 new partitions each of 100Mb in size.

Press p to see the partition table.

Press t to change the partition id of all the three partitions created by you to 8e (Linux LVM).

Press wq to save and exit from fdisk utility in linux.

Use fdisk -l to list the partition table.

Creating LVM

# pvcreate /dev/hda6 /dev/hda7 /dev/hda8
# pvdisplay

#vgcreate vg /dev/hda6 /dev/hda7 /dev/hda8
#vgdisplay vg

#lvcreate -L +10M -n data vg

-L is used to define size.
-n is used to define the name.

#mkfs.ext3 /dev/vg/data
#lvdisplay /dev/vg/data

#mkdir disk
#mount /dev/vg/data disk
#df -h disk

#lvextend -L +10M /dev/vg/data
#ext2online /dev/vg/data

#df -h disk

#umount disk

#vgchange -an vg (optional) -a control the avability of the logical volume in the volume group for input and output.

#lvremove /dev/vg/data
Press y to continue

#vgremove /dev/vg

#pvremove /dev/hda6 /dev/hda7 /dev/hda8

Edit - History - Print - Recent Changes - Search
Page last modified on December 14, 2012, at 10:57 AM