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