1LVREDUCE(8) System Manager's Manual LVREDUCE(8)
2
3
4
6 lvreduce - reduce the size of a logical volume
7
9 lvreduce [-A|--autobackup y|n] [-d|--debug] [-f|--force] [-h|-?|--help]
10 [--noudevsync] {-l|--extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORI‐
11 GIN}] | -L|--size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]} [-n|--nofsck]
12 [-r|--resizefs] [-t|--test] [-v|--verbose] LogicalVolume[Path]
13
15 lvreduce allows you to reduce the size of a logical volume. Be careful
16 when reducing a logical volume's size, because data in the reduced part
17 is lost!!!
18 You should therefore ensure that any filesystem on the volume is
19 resized before running lvreduce so that the extents that are to be
20 removed are not in use.
21 Shrinking snapshot logical volumes (see lvcreate(8) for information to
22 create snapshots) is supported as well. But to change the number of
23 copies in a mirrored logical volume use lvconvert (8).
24 Sizes will be rounded if necessary - for example, the volume size must
25 be an exact number of extents and the size of a striped segment must be
26 a multiple of the number of stripes.
27
29 See lvm for common options.
30
31 -f, --force
32 Force size reduction without prompting even when it may cause
33 data loss.
34
35 --noudevsync
36 Disable udev synchronisation. The process will not wait for
37 notification from udev. It will continue irrespective of any
38 possible udev processing in the background. You should only use
39 this if udev is not running or has rules that ignore the devices
40 LVM2 creates.
41
42 -l, --extents [-]LogicalExtentsNumber[%{VG|LV|FREE|ORIGIN}]
43 Reduce or set the logical volume size in units of logical
44 extents. With the - sign the value will be subtracted from the
45 logical volume's actual size and without it the value will be
46 taken as an absolute size. The number can also be expressed as
47 a percentage of the total space in the Volume Group with the
48 suffix %VG, relative to the existing size of the Logical Volume
49 with the suffix %LV, as a percentage of the remaining free space
50 in the Volume Group with the suffix %FREE, or (for a snapshot)
51 as a percentage of the total space in the Origin Logical Volume
52 with the suffix %ORIGIN.
53
54 -L, --size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
55 Reduce or set the logical volume size in units of megabytes. A
56 size suffix of k for kilobyte, m for megabyte, g for gigabytes,
57 t for terabytes, p for petabytes or e for exabytes is optional.
58 With the - sign the value will be subtracted from the logical
59 volume's actual size and without it it will be taken as an abso‐
60 lute size.
61
62 -n, --nofsck
63 Do not perform fsck before resizing filesystem when filesystem
64 requires it. You may need to use --force to proceed with this
65 option.
66
67 -r, --resizefs
68 Resize underlying filesystem together with the logical volume
69 using fsadm(8).
70
72 "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1 in
73 volume group vg00 by 3 logical extents.
74
76 fsadm(8), lvchange(8), lvconvert(8), lvcreate(8), lvextend(8), lvm(8),
77 lvresize(8), vgreduce(8)
78
79
80
81Sistina Software UK LVM TOOLS 2.02.84(2) (2011-02-09) LVREDUCE(8)