Combining Volume Groups; Backing Up Volume Group Metadata; Renaming A Volume Group - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

3.9. Splitting a Volume Group
To split the physical volumes of a volume group and create a new volume group, use the
command.
vgsplit
Logical volumes cannot be split between volume groups. Each existing logical volume must be
entirely on the physical volumes forming either the old or the new volume group. If necessary,
however, you can use the
The following example splits off the new volume group
.
bigvg
# vgsplit bigvg smallvg /dev/ram15
Volume group "smallvg" successfully split from "bigvg"

3.10. Combining Volume Groups

Two combine two volume groups into a single volume group, use the
can merge an inactive "source" volume with an active or an inactive "destination" volume if the
physical extent sizes of the volume are equal and the physical and logical volume summaries of
both volume groups fit into the destination volume groups limits.
The following command merges the inactive volume group
volume group
databases
vgmerge -v databases my_vg

3.11. Backing Up Volume Group Metadata

Metadata backups and archives are automatically created on every volume group and logical
volume configuration change unless disabled in the
backup is stored in the
file. You can manually back up the metadata to the
/etc/lvm/archives
with the
vgcfgbackup
The
command restores the metadata of a volume group from the archive to all the
vgcfrestore
physical volumes in the volume groups.
For an example of using the
see
Section 4, "Recovering Physical Volume

3.12. Renaming a Volume Group

Use the
command to rename an existing volume group.
vgrename
Either of the following commands renames the existing volume group
command to force the split.
pvmove
giving verbose runtime information.
file and the metadata archives are stored in the
/etc/lvm/backup
command.
command to recover physical volume metadata,
vgcfgrestore
Combining Volume Groups
from the original volume group
smallvg
into the active or inactive
my_vg
file. By default, the metadata
lvm.conf
Metadata".
command. You
vgmerge
/etc/lvm/backup
to
vg02
my_volume_group
file
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents