pvresize is a tool to resize Physical Volume which may already be in a volume group and have active logical volumes allocated on it.
Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
# pvresize /dev/sda1
Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk (ensure that the PV size is appropriate for your intended new partition size):
# pvresize --setphysicalvolumesize 40G /dev/sda1
Examples of pvresize Command
1. To resize a physical volume, by reducing it then reducing the disk size by fdisk:
# pvresize --setphysicalvolumesize 20G /dev/sda2
2. To extend the disk then resize th PV:
# pvresize /dev/sda2
3. To set to debug mode:
# pvresize -d # pvresize --debug
4. To run pvresize in test mode:
# pvresize -t # pvresize --test
5. To set to verbose mode:
# pvresize -v # pvresize --verbose
6. To get the pvresize version:
# pvresize --version
7. To get the help for pvresize:
# pvresize --help