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

Comments

Post a Comment

Popular posts from this blog

Recover or restore initramfs file in RHEL or CentOS 7

Space reclamation / UNMAP on RHEL or CentOS 7

How to recover /boot partition on RHEL or CentOS 7?