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|ORIGIN}] |
10 \-L|\-\-size [\-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
14 [\-v|\-\-verbose] LogicalVolume[Path]
16 lvreduce allows you to reduce the size of a logical volume.
17 Be careful when reducing a logical volume's size, because data in the
18 reduced part is lost!!!
20 You should therefore ensure that any filesystem on the volume is
23 running lvreduce so that the extents that are to be removed are not in use.
25 Shrinking snapshot logical volumes (see
27 for information to create snapshots) is supported as well.
28 But to change the number of copies in a mirrored logical
32 Sizes will be rounded if necessary - for example, the volume size must
33 be an exact number of extents and the size of a striped segment must
34 be a multiple of the number of stripes.
37 See \fBlvm\fP for common options.
40 Force size reduction without prompting even when it may cause data loss.
43 Disable udev synchronisation. The
44 process will not wait for notification from udev.
45 It will continue irrespective of any possible udev processing
46 in the background. You should only use this if udev is not running
47 or has rules that ignore the devices LVM2 creates.
49 .I \-l, \-\-extents [\-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}]
50 Reduce or set the logical volume size in units of logical extents.
51 With the - sign the value will be subtracted from
52 the logical volume's actual size and without it the value will be taken
54 The number can also be expressed as a percentage of the total space
55 in the Volume Group with the suffix %VG, relative to the existing
56 size of the Logical Volume with the suffix %LV, as a percentage of the
57 remaining free space in the Volume Group with the suffix %FREE, or (for
58 a snapshot) as a percentage of the total space in the Origin Logical
59 Volume with the suffix %ORIGIN.
61 .I \-L, \-\-size [\-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
62 Reduce or set the logical volume size in units of megabytes.
63 A size suffix of k for kilobyte, m for megabyte,
64 g for gigabytes, t for terabytes, p for petabytes
65 or e for exabytes is optional.
66 With the - sign the value will be subtracted from
67 the logical volume's actual size and without it it will be taken as
71 Do not perform fsck before resizing filesystem when filesystem
72 requires it. You may need to use \fB--force\fR to proceed with
76 Resize underlying filesystem together with the logical volume using
79 "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1
80 in volume group vg00 by 3 logical extents.