how to extend volume group

How to extend Volume Group

The following is the steps to extend volume group.
Referenced from
https://www.tecmint.com/extend-and-reduce-lvms-in-linux/

saturday:root # df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-lvol3 991512 588460 335468 64% /

saturday-glsprov:root # vgdisplay
— Volume group —
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 10
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 8
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size <128.00 GiB
PE Size 4.00 MiB
Total PE 32767
Alloc PE / Size 30450 / <118.95 GiB
Free PE / Size 2317 / 9.05 GiB
VG UUID Yl29hc-ocJ4-HI3f-0srS-pnGZ-J0lq-JUHnKs

— Volume group —
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 16
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 10
Open LV 9
Max PV 0
Cur PV 1
Act PV 1
VG Size 79.70 GiB
PE Size 4.00 MiB
Total PE 20404
Alloc PE / Size 19375 / 75.68 GiB
Free PE / Size 1029 / <4.02 GiB
VG UUID 1QWEFT-DDc2-Ea9Q-Cm6S-0qJv-Bkjw-kOp04s

saturday:root # lvextend -l +256 /dev/mapper/vg00-lvol3 — Extend ~1G.
Size of logical volume vg00/lvol3 changed from 1000.00 MiB (250 extents) to <1.98 GiB (506 extents).
Logical volume vg00/lvol3 successfully resized.

saturday:root # resize2fs /dev/mapper/vg00-lvol3
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/mapper/vg00-lvol3 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mapper/vg00-lvol3 is now 518144 blocks long.

saturday:root # df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-lvol3 2024016 588964 1326508 31% /

发布了14 篇原创文章 · 获赞 0 · 访问量 294

猜你喜欢

转载自blog.csdn.net/weixin_43237071/article/details/103402782