[root@tng3-1 ~]# lvextend -l +100%FREE /dev/myvg/testlv
Extending logical volume testlv to 68.59 GB
Logical volume testlv successfully resized
After you have extended the logical volume it is necessary to increase the file system size to
match.
By default, most file system resizing tools will increase the size of the file system to be the size
of the underlying logical volume so you do not need to worry about specifying the same size for
each of the two commands.
4.9. Extending a Striped Volume
In order to increase the size of a striped logical volume, there must be enough free space on the
underlying physical volumes that make up the volume group to support the stripe. For example,
if you have a two-way stripe that that uses up an entire volume group, adding a single physical
volume to the volume group will not enable you to extend the stripe. Instead, you must add at
least two physical volumes to the volume group.
For example, consider a volume group
vg
that consists of two underlying physical volumes, as
displayed with the following
vgs
command.
# vgs
VG
#PV #LV #SN Attr
VSize
VFree
vg
2
0
0 wz--n- 271.31G 271.31G
You can create a stripe using the entire amount of space in the volume group.
# lvcreate -n stripe1 -L 271.31G -i 2 vg
Using default stripesize 64.00 KB
Rounding up size to full physical extent 271.31 GB
Logical volume "stripe1" created
# lvs -a -o +devices
LV
VG
Attr
LSize
Origin Snap%
Move Log Copy%
Devices
stripe1 vg
-wi-a- 271.31G
/dev/sda1(0),/dev/sdb1(0)
Note that the volume group now has no more free space.
# vgs
VG
#PV #LV #SN Attr
VSize
VFree
vg
2
1
0 wz--n- 271.31G
0
Extending a Striped Volume
41
Содержание GLOBAL FILE SYSTEM 5.0
Страница 1: ...LVM Administrator s Guide Configuration and Administration 5 0 ISBN N A Publication date...
Страница 4: ...LVM Administrator s Guide...
Страница 8: ...viii...
Страница 18: ...6...
Страница 28: ...16...
Страница 32: ...20...
Страница 80: ...68...
Страница 90: ...78...
Страница 92: ...80...
Страница 94: ...82...
Страница 112: ...100...