Saturday, August 22, 2009

EXTENDING A LOGICAL VOLUME

EXTENDING A LOGICAL VOLUME

Step 1: Identify whether there are Free Physical Extents available to extend the Logical Volume

# vgdisplay /dev/vg01_renamed | grep "Free PE"

Free PE 483

Step 2: Check the current size of the Logical Volume

# lvdisplay /dev/vg01/lvol01 | grep “LV Size”

LV Size (Mbytes) 100

# lvextend -L 120 /dev/vg01/lvol01

Logical volume "/dev/vg01/lvol01" has been successfully extended.

Volume Group configuration for /dev/vg01_renamed has been saved in /etc/lvmconf/vg01.conf

[Note : Always mention the new Logical Volume size to extend]

# lvdisplay /dev/vg01/lvol01 | grep "LV Size"

LV Size (Mbytes) 120

Step 3: Extend the Filesystem

# bdf /opt/test

Filesystem kbytes used avail %used Mounted on

/dev/vg01_renamed/lvol01

102400 1133 94945 1% /opt/test

# fsadm -b 120m -F vxfs /opt/test

fsadm: /dev/vg01_renamed/rlvol01 is currently 102400 sectors - size will be increased

No comments:

Post a Comment