Adding Physical Volumes To A Volume Group; Displaying Volume Groups - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

The
policy requires that new extents are adjacent to existing extents. If there are
contiguous
sufficient free extents to satisfy an allocation request but a
use them, the
anywhere
stripes on the same physical volume. The
physical volume as existing extents in the same stripe of the logical volume. These policies can
be changed using the
In general, allocation policies other than
need to specify unusual or nonstandard extent allocation.
LVM volume groups and underlying logical volumes are included in the device special file
directory tree in the
/dev
/dev/vg/lv/
For example, if you create two volume groups
volumes named
,
lvo1
/dev/myvg1/lv01
/dev/myvg1/lv02
/dev/myvg1/lv03
/dev/myvg2/lv01
/dev/myvg2/lv02
/dev/myvg2/lv03
The maximum device size with LVM is 8 Exabytes on 64-bit CPUs.

3.2. Adding Physical Volumes to a Volume Group

To add additional physical volumes to an existing volume group, use the
The
command increases a volume group's capacity by adding one or more free
vgextend
physical volumes.
The following command adds the physical volume
vgextend vg1 /dev/sdf1

3.3. Displaying Volume Groups

There are two commands you can use to display properties of LVM volume groups:
.
vgdisplay
The
command will also display the volume groups, although its primary purpose is to
vgscan
scan all the disks for volume groups and rebuild the LVM cache file. For information on the
allocation policy will, even if that reduces performance by placing two
cling
command.
vgchange
normal
directory with the following layout:
, and
, this create six device special files:
lvo2
lvo3
Adding Physical Volumes to a Volume
allocation policy would not
normal
policy places new extents on the same
are required only in special cases where you
and
, each with three logical
myvg1
myvg2
to the volume group
/dev/sdf1
command.
vgextend
.
vg1
and
vgs
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents