]>
Commit | Line | Data |
---|---|---|
5951ef33 | 1 | .TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*- |
c5735ce1 AK |
2 | .SH NAME |
3 | pvresize \- resize a disk or partition in use by LVM2 | |
4 | .SH SYNOPSIS | |
5 | .B pvresize | |
a1dbe74c ZK |
6 | .RB [ \-d | \-\-debug ] |
7 | .RB [ \-h | \-\-help ] | |
8 | .RB [ \-t | \-\-test ] | |
9 | .RB [ \-v | \-\-verbose ] | |
10 | .RB [ \-\-version ] | |
11 | .RB [ \-\-setphysicalvolumesize | |
12 | .IR size ] | |
13 | .I PhysicalVolume | |
14 | .RI [ PhysicalVolume ...] | |
c5735ce1 | 15 | .SH DESCRIPTION |
c63b155d | 16 | pvresize resizes |
c5735ce1 AK |
17 | .I PhysicalVolume |
18 | which may already be in a volume group and have active logical volumes | |
19 | allocated on it. | |
20 | .SH OPTIONS | |
21 | See \fBlvm\fP(8) for common options. | |
22 | .TP | |
667d14e3 | 23 | .BI \-\-setphysicalvolumesize " size" |
c5735ce1 AK |
24 | Overrides the automatically-detected size of the PV. Use with care, or |
25 | prior to reducing the physical size of the device. | |
26 | .SH EXAMPLES | |
27 | Expand the PV on /dev/sda1 after enlarging the partition with fdisk: | |
28 | .sp | |
29 | .B pvresize /dev/sda1 | |
30 | .sp | |
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 | |
33 | size): | |
34 | .sp | |
c63b155d | 35 | .B pvresize \-\-setphysicalvolumesize 40G /dev/sda1 |
c5735ce1 AK |
36 | .sp |
37 | .SH RESTRICTIONS | |
c63b155d | 38 | pvresize will refuse to shrink |
c5735ce1 AK |
39 | .I PhysicalVolume |
40 | if it has allocated extents after where its new end would be. In the future, | |
41 | it should relocate these elsewhere in the volume group if there is sufficient | |
42 | free space, like | |
43 | .B pvmove | |
44 | does. | |
45 | .sp | |
46 | .B pvresize | |
47 | won't currently work correctly on LVM1 volumes or PVs with extra | |
48 | metadata areas. | |
49 | .SH SEE ALSO | |
667d14e3 ZK |
50 | .BR lvm (8), |
51 | .BR pvmove (8), | |
52 | .BR lvresize (8), | |
53 | .BR fdisk (8) |