Monday, January 10, 2011

How to extend LVM Volume online ?

How to extend LVM Volume online ?


Note : If you see my current setting of LVM is as below;




1. Here with below command i am extending my "/dev/vg0_data/vol0_Data" volume by "2GB"

#lvextend -L +2048M /dev/vg0_data/vol0_Data

But to get that 2GB memory online you need to execute one more command,

# resize2fs /dev/vg0_data/vol0_Data

Now to verify, do as below in snap;




   In LVM, online memory extend of LV is possible, but to reduce LV size will need a reboot.

#lvreduce -L -1024M /dev/vg0_data/vol0_Data

No comments:

Post a Comment