3 .TH LVREDUCE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
5 lvreduce \- reduce the size of a logical volume
8 [\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-f|\-\-force]
10 {\-l|\-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}] |
11 \-L|\-\-size [\-]LogicalVolumeSize[kKmMgGtT]}
13 [\-v|\-\-verbose] LogicalVolume[Path]
15 lvreduce allows you to reduce the size of a logical volume.
16 Be careful when reducing a logical volume's size, because data in the
17 reduced part is lost!!!
19 You should therefore ensure that any filesystem on the volume is
22 running lvreduce so that the extents that are to be removed are not in use.
24 Shrinking snapshot logical volumes (see
26 for information to create snapshots) is supported as well.
27 But to change the number of copies in a mirrored logical
31 Sizes will be rounded if necessary - for example, the volume size must
32 be an exact number of extents and the size of a striped segment must
33 be a multiple of the number of stripes.
36 See \fBlvm\fP for common options.
39 Force size reduction without any question.
41 .I \-l, \-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE}]
42 Reduce or set the logical volume size in units of logical extents.
43 With the - sign the value will be subtracted from
44 the logical volume's actual size and without it the will be taken as
46 The number can also be expressed as a percentage of the total space
47 in the Volume Group with the suffix %VG or relative to the existing
48 size of the Logical Volume with the suffix %LV or as a percentage of the remaining
49 free space in the Volume Group with the suffix %FREE.
51 .I \-L, \-\-size [\-]LogicalVolumeSize[kKmMgGtTpPeE]
52 Reduce or set the logical volume size in units of megabyte by default.
53 A size suffix of k for kilobyte, m for megabyte,
54 g for gigabytes, t for terabytes, p for petabytes
55 or e for exabytes is optional.
56 With the - sign the value will be subtracted from
57 the logical volume's actual size and without it it will be taken as
60 "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1
61 in volume group vg00 by 3 logical extents.