LVM with GParted to increase disk space

Target: increase 80G to 130G

# lvdisplay

mark down LV Path, VG Name

# pvdisplay

find the VG name same with target, so we need to add sda(disk 1)

Increase you disk target

boot from GParted live cd

or Ubuntu GUI #apt install gparted

https://downloads.sourceforge.net/gparted/gparted-live-1.1.0-1-i686.iso

select you target disk, and then "Resize/Move", "Apply all operations"

Complete and reboot to original

# vgdisplay

before and after

Extend the free size "12800" to target volume

# lvextend –l +12800 /dev/vg_app01/lv_xxx

# resize2fs /dev/vg_app01/lv_xxx

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*