1LVEXTEND(8) System Manager's Manual LVEXTEND(8)
2
3
4
6 lvextend - extend the size of a logical volume
7
9 lvextend [--alloc AllocationPolicy] [-A|--autobackup y|n] [-d|--debug]
10 [-h|-?|--help] [--noudevsync] [-i|--stripes Stripes [-I|--stripesize
11 StripeSize]] {-l|--extents [+]LogicalExtentsNum‐
12 ber[%{VG|LV|PVS|FREE|ORIGIN}] | -L|--size [+]LogicalVolumeSize[bBsSkKm‐
13 MgGtTpPeE]} [-f|--force] [-n|--nofsck] [-r|--resizefs] [-t|--test]
14 [-v|--verbose] LogicalVolumePath [PhysicalVolumePath[:PE[-PE]]...]
15
17 lvextend allows you to extend the size of a logical volume. Extension
18 of snapshot logical volumes (see lvcreate(8) for information to create
19 snapshots) is supported as well. But to change the number of copies in
20 a mirrored logical volume use lvconvert(8).
21
23 See lvm for common options.
24
25 --noudevsync
26 Disable udev synchronisation. The process will not wait for
27 notification from udev. It will continue irrespective of any
28 possible udev processing in the background. You should only use
29 this if udev is not running or has rules that ignore the devices
30 LVM2 creates.
31
32 -l, --extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]
33 Extend or set the logical volume size in units of logical
34 extents. With the + sign the value is added to the actual size
35 of the logical volume and without it, the value is taken as an
36 absolute one. The number can also be expressed as a percentage
37 of the total space in the Volume Group with the suffix %VG, rel‐
38 ative to the existing size of the Logical Volume with the suffix
39 %LV, of the remaining free space for the specified PhysicalVol‐
40 ume(s) with the suffix %PVS, as a percentage of the remaining
41 free space in the Volume Group with the suffix %FREE, or (for a
42 snapshot) as a percentage of the total space in the Origin Logi‐
43 cal Volume with the suffix %ORIGIN.
44
45 -L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
46 Extend or set the logical volume size in units of megabytes. A
47 size suffix of M for megabytes, G for gigabytes, T for ter‐
48 abytes, P for petabytes or E for exabytes is optional. With the
49 + sign the value is added to the actual size of the logical vol‐
50 ume and without it, the value is taken as an absolute one.
51
52 -i, --stripes Stripes
53 Gives the number of stripes for the extension. Not applicable
54 to LVs using the original metadata LVM format, which must use a
55 single value throughout.
56
57 -I, --stripesize StripeSize
58 Gives the number of kilobytes for the granularity of the
59 stripes. Not applicable to LVs using the original metadata LVM
60 format, which must use a single value throughout.
61 StripeSize must be 2^n (n = 2 to 9)
62
63 -f, --force
64 Proceed with size extension without prompting.
65
66 -n, --nofsck
67 Do not perform fsck before extending filesystem when filesystem
68 requires it. You may need to use --force to proceed with this
69 option.
70
71 -r, --resizefs
72 Resize underlying filesystem together with the logical volume
73 using fsadm(8).
74
76 "lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size
77 of that logical volume by 54MB on physical volume /dev/sdk3. This is
78 only possible if /dev/sdk3 is a member of volume group vg01 and there
79 are enough free physical extents in it.
80
81 "lvextend /dev/vg01/lvol01 /dev/sdk3" tries to extend the size of that
82 logical volume by the amount of free space on physical volume
83 /dev/sdk3. This is equivalent to specifying "-l +100%PVS" on the com‐
84 mand line.
85
86 "lvextend -L+16M vg01/lvol01 /dev/sda:8-9 /dev/sdb:8-9"
87 tries to extend a logical volume "vg01/lvol01" by 16MB using physical
88 extents /dev/sda:8-9 and /dev/sdb:8-9 for allocation of extents.
89
90
92 fsadm(8), lvm(8), lvcreate(8), lvconvert(8), lvreduce(8), lvresize(8),
93 lvchange(8)
94
95
96
97Sistina Software UK LVM TOOLS 2.02.84(2) (2011-02-09) LVEXTEND(8)