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
vg
2
0
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
stripe1 vg
-wi-a- 271.31G
dev/sdb1(0)
Note that the volume group now has no more free space.
# vgs
VG
#PV #LV #SN Attr
vg
2
1
The following command adds another physical volume to the volume group, which then has 135G of
additional space.
# vgextend vg /dev/sdc1
Volume group "vg" successfully extended
# vgs
VG
#PV #LV #SN Attr
vg
3
1
At this point you cannot extend the striped logical volume to the full size of the volume group, because
two underlying devices are needed in order to stripe the data.
# lvextend vg/stripe1 -L 406G
Using stripesize of last segment 64.00 KB
Extending logical volume stripe1 to 406.00 GB
Insufficient suitable allocatable extents for logical volume stripe1:
34480
more required
VSize
0 wz--n- 271.31G 271.31G
LSize
Origin Snap%
VSize
0 wz--n- 271.31G
VSize
0 wz--n- 406.97G 135.66G
VFree
Move Log Copy%
VFree
0
VFree
Extending a Striped Volume
Devices
/dev/sda1(0),/
39