Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual page 89

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

# vgdisplay
--- Volume group ---
...
Free
PE / Size
Alternately, you can use the
command to display the free extents and the total number of extents.
[root@tng3-1 ~]# vgs -o +vg_free_count,vg_extent_count
VG
#PV #LV #SN Attr
testvg
2
0
With 8780 free physical extents, you can run the following command, using the lower-case l
argument to use extents instead of bytes:
# lvcreate -l8780 -n testlv testvg
This uses all the free extents in the volume group.
# vgs -o +vg_free_count,vg_extent_count
VG
#PV #LV #SN Attr
testvg
2
1
Alternately, you can extend the logical volume to use a percentage of the remaining free space
in the volume group by using the
Section 4.1.1, "Creating Linear
8780 / 34.30 GB
and
vg_free_count
VSize
VFree
0 wz--n- 34.30G 34.30G 8780 8780
VSize
VFree Free #Ext
0 wz--n- 34.30G
argument of the
-l
Volumes".
Insufficient Free Extents for a Logical
arguments of the
vg_extent_count
Free #Ext
0
0 8780
command. For information, see
lvcreate
vgs
77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents