3 .TH PVRESIZE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
5 pvresize \- resize a disk or partition in use by LVM2
8 .RB [ \-d | \-\-debug ]
10 .RB [ \-t | \-\-test ]
11 .RB [ \-v | \-\-verbose ]
12 .RB [ \-\-setphysicalvolumesize size ]
13 .IR PhysicalVolume " [" PhysicalVolume ...]
18 which may already be in a volume group and have active logical volumes
21 See \fBlvm\fP(8) for common options.
23 .BR \-\-setphysicalvolumesize " size"
24 Overrides the automatically-detected size of the PV. Use with care, or
25 prior to reducing the physical size of the device.
27 Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
31 Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
32 (ensure that the PV size is appropriate for your intended new partition
35 .B pvresize --setphysicalvolumesize 40G /dev/sda1
41 if it has allocated extents after where its new end would be. In the future,
42 it should relocate these elsewhere in the volume group if there is sufficient
48 won't currently work correctly on LVM1 volumes or PVs with extra
51 .BR lvm "(8), " pvmove "(8), " lvresize "(8), " fdisk "(8)"