User Tools

Site Tools


lvm

This is an old revision of the document!


LVM

LVM you can increase / decrease size without any issue.
But it is important you do it in proper steps.

Reducing Size

umount /home
e2fsck -y /dev/mapper/VolGroup00-LogVol00
resize2fs -f /dev/mapper/VolGroup00-LogVol00 1536M
lvreduce -L-512M /dev/mapper/VolGroup00-LogVol00 
mount /home

Increasing Size

umount /opt/
e2fsck -y /dev/mapper/VolGroup00-LogVol02
lvextend -L+512M /dev/mapper/VolGroup00-LogVol02
resize2fs /dev/mapper/VolGroup00-LogVol02
mount /opt

Worked Example on Live System

| history
lvdisplay
vgdisplay 
lvextend -l+1599 /dev/VolGroup00/LogVol00
df -kh
vgdisplay
lvdisplay 
resize2fs /dev/VolGroup00/LogVol00 
df -kh
lvm.1328024779.txt.gz · Last modified: 2012/01/31 15:46 by k2patel