Extending a Striped Volume35lvextend -- doing automatic backup of volume group "myvg"lvextend -- logical volume "/dev/myvg/homevol" successfully extendedThe following command adds another gigabyte to the logical volume /dev/myvg/homevol.# lvextend -L+1G /dev/myvg/homevollvextend -- extending logical volume "/dev/myvg/homevol" to 13 GBlvextend -- doing automatic backup of volume group "myvg"lvextend -- logical volume "/dev/myvg/homevol" successfully extendedAs with the lvcreate command, you can use the -l argument of the lvextend command to specifythe number of extents by which to increase the size of the logical volume. You can also use thisargument to specify a percentage of the volume group, or a percentage of the remaining free space inthe volume group. The following command extends the logical volume called testlv to fill all of theunallocated space in the volume group myvg.[root@tng3-1 ~]# lvextend -l +100%FREE /dev/myvg/testlvExtending logical volume testlv to 68.59 GBLogical volume testlv successfully resizedAfter 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 theunderlying logical volume so you do not need to worry about specifying the same size for each of thetwo commands.4.4.9. Extending a Striped VolumeIn order to increase the size of a striped logical volume, there must be enough free space on theunderlying physical volumes that make up the volume group to support the stripe. For example, if youhave a two-way stripe that that uses up an entire volume group, adding a single physical volume tothe volume group will not enable you to extend the stripe. Instead, you must add at least two physicalvolumes to the volume group.For example, consider a volume group vg that consists of two underlying physical volumes, asdisplayed with the following vgs command.# vgsVG #PV #LV #SN Attr VSize VFreevg 2 0 0 wz--n- 271.31G 271.31GYou can create a stripe using the entire amount of space in the volume group.# lvcreate -n stripe1 -L 271.31G -i 2 vgUsing default stripesize 64.00 KBRounding up size to full physical extent 271.31 GBLogical volume "stripe1" created