Red Hat ENTERPRISE LINUX 4 - LVM ADMINISTRATOR Manual page 48

Cluster logical volume manager
Table of Contents

Advertisement

Chapter 4. LVM Administration with CLI Commands
# 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
To extend the striped logical volume, add another physical volume and then extend the logical volume.
In this example, having added two physical volumes to the volume group we can extend the logical
volume to the full size of the volume group.
# vgextend vg /dev/sdd1
Volume group "vg" successfully extended
# vgs
VG
#PV #LV #SN Attr
vg
4
1
# lvextend vg/stripe1 -L 542G
Using stripesize of last segment 64.00 KB
Extending logical volume stripe1 to 542.00 GB
Logical volume stripe1 successfully resized
If you do not have enough underlying physical devices to extend the striped logical volume, it is
possible to extend the volume anyway if it does not matter that the extension is not striped, which
36
LSize
Origin Snap%
VSize
0 wz--n- 271.31G
VSize
0 wz--n- 406.97G 135.66G
VSize
0 wz--n- 542.62G 271.31G
Move Log Copy%
VFree
0
VFree
VFree
Devices
/dev/sda1(0),/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4 - LVM ADMINISTRATOR and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Enterprise linux 4

Table of Contents