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 [-d|--debug] [-h|--help] [-t|--test] [-v|--verbose] [--set‐
10 physicalvolumesizesize] PhysicalVolume [PhysicalVolume...]
11
13 pvresize resizes PhysicalVolume which may already be in a volume group
14 and have active logical volumes allocated on it.
15
17 See lvm(8) for common options.
18
19 --setphysicalvolumesize size
20 Overrides the automatically-detected size of the PV. Use with
21 care, or prior to reducing the physical size of the device.
22
24 Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
25
26 pvresize /dev/sda1
27
28 Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
29 (ensure that the PV size is appropriate for your intended new partition
30 size):
31
32 pvresize --setphysicalvolumesize 40G /dev/sda1
33
34
36 pvresize will refuse to shrink PhysicalVolume if it has allocated
37 extents after where its new end would be. In the future, it should
38 relocate these elsewhere in the volume group if there is sufficient
39 free space, like pvmove does.
40
41 pvresize won't currently work correctly on LVM1 volumes or PVs with
42 extra metadata areas.
43
45 lvm(8), pvmove(8), lvresize(8), fdisk(8)
46
47
48
49Sistina Software UK LVM TOOLS PVRESIZE(8)