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

NAME

6       lvreduce - reduce the size of a logical volume
7

SYNOPSIS

9       lvreduce [-A/--autobackup y/n] [-d/--debug] [-f/--force] [-h/-?/--help]
10       {-l/--extents   [-]LogicalExtentsNumber[%{VG|LV|FREE}]   |    -L/--size
11       [-]LogicalVolumeSize[kKmMgGtT]}  [-t/--test] [-v/--verbose] LogicalVol‐
12       ume[Path]
13

DESCRIPTION

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

OPTIONS

29       See lvm for common options.
30
31       -f, --force
32              Force size reduction without any question.
33
34       -l, --extents [-]LogicalExtentsNumber[%{VG|LV|FREE}]
35              Reduce or set the  logical  volume  size  in  units  of  logical
36              extents.   With the - sign the value will be subtracted from the
37              logical volume's actual size and without it the will be taken as
38              an  absolute  size.   The number can also be expressed as a per‐
39              centage of the total space in the Volume Group with  the  suffix
40              %VG  or relative to the existing size of the Logical Volume with
41              the suffix %LV or as a percentage of the remaining free space in
42              the Volume Group with the suffix %FREE.
43
44       -L, --size [-]LogicalVolumeSize[kKmMgGtTpPeE]
45              Reduce  or  set  the logical volume size in units of megabyte by
46              default.  A size suffix of k for kilobyte, m for megabyte, g for
47              gigabytes, t for terabytes, p for petabytes or e for exabytes is
48              optional.  With the - sign the value will be subtracted from the
49              logical  volume's actual size and without it it will be taken as
50              an absolute size.
51

Example

53       "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1 in
54       volume group vg00 by 3 logical extents.
55

SEE ALSO

57       lvchange(8),  lvconvert(8),  lvcreate(8),  lvextend(8),  lvm(8),  lvre‐
58       size(8), vgreduce(8)
59
60
61
62Sistina Software UK                LVM TOOLS                       LVREDUCE(8)
Impressum