~ubuntu-branches/debian/stretch/lvm2/stretch

1.1.3 by Bastian Blank
Import upstream version 2.02.44
1
.TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2
.SH NAME
1.1.18 by Bastian Blank
Import upstream version 2.02.109
3
pvresize \(em resize a disk or partition in use by LVM2
1.1.3 by Bastian Blank
Import upstream version 2.02.44
4
.SH SYNOPSIS
5
.B pvresize
1.1.18 by Bastian Blank
Import upstream version 2.02.109
6
.RB [ \-\-commandprofile
7
.IR ProfileName ]
1.1.3 by Bastian Blank
Import upstream version 2.02.44
8
.RB [ \-d | \-\-debug ]
9
.RB [ \-h | \-\-help ]
10
.RB [ \-t | \-\-test ]
11
.RB [ \-v | \-\-verbose ]
1.1.11 by Bastian Blank
Import upstream version 2.02.84
12
.RB [ \-\-version ]
13
.RB [ \-\-setphysicalvolumesize
14
.IR size ]
15
.I PhysicalVolume 
16
.RI [ PhysicalVolume ...]
1.1.3 by Bastian Blank
Import upstream version 2.02.44
17
.SH DESCRIPTION
1.1.15 by Bastian Blank
Import upstream version 2.02.98
18
pvresize resizes
1.1.3 by Bastian Blank
Import upstream version 2.02.44
19
.I PhysicalVolume
20
which may already be in a volume group and have active logical volumes
21
allocated on it.
22
.SH OPTIONS
23
See \fBlvm\fP(8) for common options.
24
.TP
1.1.11 by Bastian Blank
Import upstream version 2.02.84
25
.BI \-\-setphysicalvolumesize " size"
1.1.3 by Bastian Blank
Import upstream version 2.02.44
26
Overrides the automatically-detected size of the PV.  Use with care, or
27
prior to reducing the physical size of the device.
28
.SH EXAMPLES
29
Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
30
.sp
31
.B pvresize /dev/sda1
32
.sp
33
Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
34
(ensure that the PV size is appropriate for your intended new partition
35
size):
36
.sp
1.1.15 by Bastian Blank
Import upstream version 2.02.98
37
.B pvresize \-\-setphysicalvolumesize 40G /dev/sda1
1.1.3 by Bastian Blank
Import upstream version 2.02.44
38
.sp
39
.SH RESTRICTIONS
1.1.15 by Bastian Blank
Import upstream version 2.02.98
40
pvresize will refuse to shrink
1.1.3 by Bastian Blank
Import upstream version 2.02.44
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
1.1.11 by Bastian Blank
Import upstream version 2.02.84
52
.BR lvm (8),
53
.BR pvmove (8),
54
.BR lvresize (8),
55
.BR fdisk (8)