1 .TH LVREDUCE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
3 lvreduce \- reduce the size of a logical volume
6 [\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-f|\-\-force]
9 {\-l|\-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}] |
10 \-L|\-\-size [\-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
12 [\-v|\-\-verbose] LogicalVolume[Path]
14 lvreduce allows you to reduce the size of a logical volume.
15 Be careful when reducing a logical volume's size, because data in the
16 reduced part is lost!!!
18 You should therefore ensure that any filesystem on the volume is
21 running lvreduce so that the extents that are to be removed are not in use.
23 Shrinking snapshot logical volumes (see
25 for information to create snapshots) is supported as well.
26 But to change the number of copies in a mirrored logical
30 Sizes will be rounded if necessary - for example, the volume size must
31 be an exact number of extents and the size of a striped segment must
32 be a multiple of the number of stripes.
35 See \fBlvm\fP for common options.
38 Force size reduction without any question.
41 Disable udev synchronisation. The
42 process will not wait for notification from udev.
43 It will continue irrespective of any possible udev processing
44 in the background. You should only use this if udev is not running
45 or has rules that ignore the devices LVM2 creates.
47 .I \-l, \-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}]
48 Reduce or set the logical volume size in units of logical extents.
49 With the - sign the value will be subtracted from
50 the logical volume's actual size and without it the will be taken as
52 The number can also be expressed as a percentage of the total space
53 in the Volume Group with the suffix %VG or relative to the existing
54 size of the Logical Volume with the suffix %LV or as a percentage of the remaining
55 free space in the Volume Group with the suffix %FREE.
57 .I \-L, \-\-size [\-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
58 Reduce or set the logical volume size in units of megabytes.
59 A size suffix of k for kilobyte, m for megabyte,
60 g for gigabytes, t for terabytes, p for petabytes
61 or e for exabytes is optional.
62 With the - sign the value will be subtracted from
63 the logical volume's actual size and without it it will be taken as
66 "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1
67 in volume group vg00 by 3 logical extents.