You are on page 1of 1

LVM

Logical volume management

Features
Ability to create volume sets
LVM masks the physical technology
( IDE, SCSI, SATA, PATA types of drives )
IDE (slot) = Integrated Drive/Device Electronics
SCSI = Small Computer System Interface
( these type of harddisk can be attached / detached when power is on, these
are also called as hotswapable drives)

1= sda1 10GB, 2= sdb2 5gb , 3= sdc3 4gb

15gb

SATA = Serial Adv Tech Attachment


PATA = Parallel Adv Tech Attachment

Ability to increase and decrease size of the volume


PV = Physical Volume
VG = Volume Group
LV = Logical Volume

attach sdb, sdc


- Create partition using Fdisk
1= sdc1 10GB, 2= sdd1 5gb ( don't formate it)

Create physical volumes


# pvcreate /dev/sdc1 /dev/sdd1 ....

Assign physical volumes to volume groups


# vgcreate vg1 /dev/sdc1 /dev/sdd1 ....

Create logical volumes from volume groups


# lvcreate -L 14G -n data vg1
-L = Size from volume group , -n = name of logical volume)

format logical volume


# mkfs.ext3 -j /dev/vg1/data

and then mount it ( dir /lvm1 )


# mount /dev/vg1/data /lvm1

Check volume group informtion


# vgdisplay ( display volume group )

----------------------------------------------

You might also like