Replacing A Missing Physical Volume; Removing Lost Physical Volumes From A Volume Group; Insufficient Free Extents For A Logical Volume - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

Chapter 6. LVM Troubleshooting
If the on-disk LVM metadata takes as least as much space as what overrode it, this command
can recover the physical volume. If what overrode the metadata went past the metadata area,
the data on the volume may have been affected. You might be able to use the
to recover that data.

5. Replacing a Missing Physical Volume

If a physical volume fails or otherwise needs to be replaced, you can label a new physical
volume to replace the one that has been lost in the existing volume group by following the same
procedure as you would for recovering physical volume metadata, described in
"Recovering Physical Volume
arguments of the
vgdisplay
that are no longer present. If you wish to substitute another physical volume of the same size,
you can use the
pvcreate
initialize a new device with the same UUID as the missing physical volume. You can then use
the
command to restore the volume group's metadata.
vgcfgrestore
6. Removing Lost Physical Volumes from a Volume
Group
If you lose a physical volume, you can activate the remaining physical volumes in the volume
group with the
--partial
volumes that used that physical volume from the volume group with the
argument of the
vgreduce
It is recommended that you run the
what you will be destroying.
Like most LVM operations, the
use the
vgcfgrestore
For example, if you used the
the
argument and find you have removed logical volumes you wanted to keep, you can
--test
still replace the physical volume and use another
group to its previous state.

7. Insufficient Free Extents for a Logical Volume

You may get the error message "Insufficient free extents" when creating a logical volume when
you think you have enough extents based on the output of the
This is because these commands round figures to 2 decimal places to provide human-readable
output. To specify exact size, use free physical extent count instead of some multiple of bytes to
determine the size of the logical volume.
The
command, by default, includes this line of output that indicates the free physical
vgdisplay
extents.
76
Metadata". You can use the
command to display the UUIDs and sizes of any physical volumes
command with the
argument of the
vgchange
command.
vgreduce
command is reversible in a sense if you immediately
vgreduce
command to restore the volume group metadata to its previous state.
--removemissing
--partial
and
--restorefile
--uuid
command. You can remove all the logical
command with the
--test
argument of the
vgreduce
command to return the volume
vgcfgrestore
vgdisplay
command
fsck
Section 4,
and
--verbose
arguments to
--removemissing
argument to verify
command without
or
commands.
vgs

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents