1PVRESIZE(8) System Manager's Manual PVRESIZE(8)
2
3
4
6 pvresize — resize a disk or partition in use by LVM2
7
9 pvresize [--commandprofile ProfileName] [-d|--debug] [-h|--help]
10 [-t|--test] [-v|--verbose] [--version] [--setphysicalvolumesize size]
11 PhysicalVolume [PhysicalVolume...]
12
14 pvresize resizes PhysicalVolume which may already be in a volume group
15 and have active logical volumes allocated on it.
16
18 See lvm(8) for common options.
19
20 --setphysicalvolumesize size
21 Overrides the automatically-detected size of the PV. Use with
22 care, or prior to reducing the physical size of the device.
23
25 Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
26
27 pvresize /dev/sda1
28
29 Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
30 (ensure that the PV size is appropriate for your intended new partition
31 size):
32
33 pvresize --setphysicalvolumesize 40G /dev/sda1
34
35
37 pvresize will refuse to shrink PhysicalVolume if it has allocated
38 extents after where its new end would be. In the future, it should
39 relocate these elsewhere in the volume group if there is sufficient
40 free space, like pvmove does.
41
42 pvresize won't currently work correctly on LVM1 volumes.
43
45 lvm(8), pvmove(8), lvresize(8), fdisk(8)
46
47
48
49Sistina Software UKLVM TOOLS 2.02.143(2)-RHEL6 (2016-12-13) PVRESIZE(8)