CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)

To resize or extend a Volume group you can either add a new Physical Volume or extend an existing Physical volume. In the latter case, VG automatically recognizes the new increase size whereas in the former case you have to extend the VG using vgextend. Let’s see an example of resizing the existing PV to grow VG size.

Resize (extend) the Physical Volume

Resize (extend) the Physical Volume (currently 10Gb) to utilise all available space on the device e.g.:

# pvresize /dev/sdb1
Physical volume "/dev/sdb1" changed
1 physical volume(s) resized / 0 physical volume(s) not resized
Note: when running pvresize(), if no size is specified, the PV will be extended to utilise all available/remaining space on the device.

Verify Physical Volume resize

Verify the increased size of the Physical Volume e.g.:

# pvs
PV         VG           Fmt  Attr PSize  PFree
/dev/sdb1  VolGroupData lvm2 a-   20.00G 10.00G

Verify Volume Group resize

Verify the increased available space within the Volume Group e.g.:

# vgs
VG           #PV #LV #SN Attr   VSize   VFree
VolGroupData   1   1   0 wz--n- 20.00G  10.00G
Related Post