2008-10-08 16:50:13 +04:00
.TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2005-10-31 18:49:07 +03:00
.SH NAME
2014-06-11 13:06:30 +04:00
pvresize \(em resize a disk or partition in use by LVM2
2005-10-31 18:49:07 +03:00
.SH SYNOPSIS
.B pvresize
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2011-02-05 00:19:03 +03:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
.RB [ \- \- version ]
2016-06-24 15:51:20 +03:00
.RB [ \- \- reportformat
.RB { basic | json }]
2011-02-05 00:19:03 +03:00
.RB [ \- \- setphysicalvolumesize
.IR size ]
.I PhysicalVolume
.RI [ PhysicalVolume ...]
2005-10-31 18:49:07 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
pvresize resizes
2005-10-31 18:49:07 +03:00
.I PhysicalVolume
which may already be in a volume group and have active logical volumes
allocated on it.
.SH OPTIONS
See \fB lvm\fP (8) for common options.
.TP
2011-01-28 19:03:38 +03:00
.BI \- \- setphysicalvolumesize " size"
2005-10-31 18:49:07 +03:00
Overrides the automatically-detected size of the PV. Use with care, or
prior to reducing the physical size of the device.
.SH EXAMPLES
Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
.sp
.B pvresize /dev/sda1
.sp
Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
(ensure that the PV size is appropriate for your intended new partition
size):
.sp
2012-04-11 16:42:10 +04:00
.B pvresize \- \- setphysicalvolumesize 40 G /dev/sda1
2005-10-31 18:49:07 +03:00
.sp
.SH RESTRICTIONS
2012-04-11 16:42:10 +04:00
pvresize will refuse to shrink
2005-10-31 18:49:07 +03:00
.I PhysicalVolume
if it has allocated extents after where its new end would be. In the future,
it should relocate these elsewhere in the volume group if there is sufficient
free space, like
.B pvmove
does.
.sp
.B pvresize
2016-02-12 18:29:39 +03:00
won't currently work correctly on LVM1 volumes.
2005-10-31 18:49:07 +03:00
.SH SEE ALSO
2011-01-28 19:03:38 +03:00
.BR lvm (8),
.BR pvmove (8),
.BR lvresize (8),
.BR fdisk (8)