]> sourceware.org Git - lvm2.git/blob - man/pvresize.8.in
Refer to details of snapshot of raid problem.
[lvm2.git] / man / pvresize.8.in
1 .TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2 .SH NAME
3 pvresize \- resize a disk or partition in use by LVM2
4 .SH SYNOPSIS
5 .B pvresize
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 ...]
15 .SH DESCRIPTION
16 pvresize resizes
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
23 .BI \-\-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.
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
35 .B pvresize \-\-setphysicalvolumesize 40G /dev/sda1
36 .sp
37 .SH RESTRICTIONS
38 pvresize will refuse to shrink
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
50 .BR lvm (8),
51 .BR pvmove (8),
52 .BR lvresize (8),
53 .BR fdisk (8)
This page took 0.038602 seconds and 5 git commands to generate.