]> sourceware.org Git - lvm2.git/blame - man/pvresize.8.in
update reworded string
[lvm2.git] / man / pvresize.8.in
CommitLineData
5951ef33 1.TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
c5735ce1
AK
2.SH NAME
3pvresize \- 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
17resizes
18.I PhysicalVolume
19which may already be in a volume group and have active logical volumes
20allocated on it.
21.SH OPTIONS
22See \fBlvm\fP(8) for common options.
23.TP
667d14e3 24.BI \-\-setphysicalvolumesize " size"
c5735ce1
AK
25Overrides the automatically-detected size of the PV. Use with care, or
26prior to reducing the physical size of the device.
27.SH EXAMPLES
28Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
29.sp
30.B pvresize /dev/sda1
31.sp
32Shrink 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
34size):
35.sp
36.B pvresize --setphysicalvolumesize 40G /dev/sda1
37.sp
38.SH RESTRICTIONS
39.B pvresize
40will refuse to shrink
41.I PhysicalVolume
42if it has allocated extents after where its new end would be. In the future,
43it should relocate these elsewhere in the volume group if there is sufficient
44free space, like
45.B pvmove
46does.
47.sp
48.B pvresize
49won't currently work correctly on LVM1 volumes or PVs with extra
50metadata areas.
51.SH SEE ALSO
667d14e3
ZK
52.BR lvm (8),
53.BR pvmove (8),
54.BR lvresize (8),
55.BR fdisk (8)
This page took 0.061911 seconds and 5 git commands to generate.