]>
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 AK |
15 | .SH DESCRIPTION |
16 | .B pvresize | |
17 | resizes | |
18 | .I PhysicalVolume | |
19 | which may already be in a volume group and have active logical volumes | |
20 | allocated on it. | |
21 | .SH OPTIONS | |
22 | See \fBlvm\fP(8) for common options. | |
23 | .TP | |
667d14e3 | 24 | .BI \-\-setphysicalvolumesize " size" |
c5735ce1 AK |
25 | Overrides the automatically-detected size of the PV. Use with care, or |
26 | prior to reducing the physical size of the device. | |
27 | .SH EXAMPLES | |
28 | Expand the PV on /dev/sda1 after enlarging the partition with fdisk: | |
29 | .sp | |
30 | .B pvresize /dev/sda1 | |
31 | .sp | |
32 | Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk | |
33 | (ensure that the PV size is appropriate for your intended new partition | |
34 | size): | |
35 | .sp | |
36 | .B pvresize --setphysicalvolumesize 40G /dev/sda1 | |
37 | .sp | |
38 | .SH RESTRICTIONS | |
39 | .B pvresize | |
40 | will refuse to shrink | |
41 | .I PhysicalVolume | |
42 | if it has allocated extents after where its new end would be. In the future, | |
43 | it should relocate these elsewhere in the volume group if there is sufficient | |
44 | free space, like | |
45 | .B pvmove | |
46 | does. | |
47 | .sp | |
48 | .B pvresize | |
49 | won't currently work correctly on LVM1 volumes or PVs with extra | |
50 | metadata areas. | |
51 | .SH SEE ALSO | |
667d14e3 ZK |
52 | .BR lvm (8), |
53 | .BR pvmove (8), | |
54 | .BR lvresize (8), | |
55 | .BR fdisk (8) |