1PVRESIZE(8)                 System Manager's Manual                PVRESIZE(8)
2
3
4

NAME

6       pvresize - resize a disk or partition in use by LVM2
7

SYNOPSIS

9       pvresize  [-d|--debug]  [-h|--help]  [-t|--test] [-v|--verbose] [--ver‐
10       sion] [--setphysicalvolumesize size] PhysicalVolume [PhysicalVolume...]
11

DESCRIPTION

13       pvresize resizes PhysicalVolume which may already be in a volume  group
14       and have active logical volumes allocated on it.
15

OPTIONS

17       See lvm(8) for common options.
18
19       --setphysicalvolumesize size
20              Overrides  the  automatically-detected size of the PV.  Use with
21              care, or prior to reducing the physical size of the device.
22

EXAMPLES

24       Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
25
26       pvresize /dev/sda1
27
28       Shrink the PV on /dev/sda1 prior to shrinking the partition with  fdisk
29       (ensure that the PV size is appropriate for your intended new partition
30       size):
31
32       pvresize --setphysicalvolumesize 40G /dev/sda1
33
34

RESTRICTIONS

36       pvresize will refuse to  shrink  PhysicalVolume  if  it  has  allocated
37       extents  after  where  its  new  end would be. In the future, it should
38       relocate these elsewhere in the volume group  if  there  is  sufficient
39       free space, like pvmove does.
40
41       pvresize  won't  currently  work  correctly on LVM1 volumes or PVs with
42       extra metadata areas.
43

SEE ALSO

45       lvm(8), pvmove(8), lvresize(8), fdisk(8)
46
47
48
49Sistina Software UK    LVM TOOLS 2.02.84(2) (2011-02-09)           PVRESIZE(8)
Impressum