Adding Physical Volumes To A Volume Group; Displaying Volume Groups - Red Hat Cluster Suite 4.7 Cluster Logical Volume Manager Manual

Table of Contents

Advertisement

/dev/myvg2/lv03
The maximum device size with LVM is 8 Exabytes on 64-bit CPUs.

4.3.2. Adding Physical Volumes to a Volume Group

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

4.3.3. Displaying Volume Groups

There are two commands you can use to display properties of LVM volume groups: vgs and
vgdisplay.
The vgscan command will also display the volume groups, although its primary purpose is to scan all
the disks for volume groups and rebuild the LVM cache file. For information on the vgscan command,
Section 4.3.4, "Scanning Disks for Volume Groups to Build the Cache
see
The vgs command provides volume group information in a configurable form, displaying one line per
volume group. The vgs command provides a great deal of format control, and is useful for scripting.
For information on using the vgs command to customize your output, see
Reporting for
LVM".
The vgdisplay command displays volume group properties (such as size, extents, number of
physical volumes, etc.) in a fixed form. The following example shows the output of a vgdisplay
command for the volume group new_vg. If you do not specify a volume group, all existing volume
groups are displayed.
# vgdisplay new_vg
--- Volume group ---
VG Name
System ID
Format
Metadata Areas
Metadata Sequence No
VG Access
VG Status
MAX LV
Cur LV
Open LV
Max PV
Cur PV
Act PV
VG Size
new_vg
lvm2
3
11
read/write
resizable
0
1
0
0
3
3
51.42 GB
Adding Physical Volumes to a Volume Group
File".
Section 4.9, "Customized
21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Cluster Suite 4.7 Cluster Logical Volume Manager and is the answer not in the manual?

Questions and answers

Table of Contents