Recovering Physical Volume Metadata - 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
Copy% Devices
groupfs
68.62 groupfs_mimage_0(0),groupfs_mimage_1(0)
[groupfs_mimage_0] vg
/dev/sdb1(0)
[groupfs_mimage_1] vg
/dev/sda1(0)
[groupfs_mlog]
/dev/sdc1(0)

4. Recovering Physical Volume Metadata

If the volume group metadata area of a physical volume is accidentally overwritten or otherwise
destroyed, you will get an error message indicating that the metadata area is incorrect, or that
the system was unable to find a physical volume with a particular UUID. You may be able to
recover the data the physical volume by writing a new metadata area on the physical volume
specifying the same UUID as the lost metadata.
Caution
You should not attempt this procedure with a working LVM logical volume. You
will lose your data if you specify the incorrect UUID.
The following example shows the sort of output you may see if the metadata area is missing or
corrupted.
[root@link-07 backup]# lvs -a -o +devices
Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
Couldn't find all physical volumes for volume group VG.
Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
Couldn't find all physical volumes for volume group VG.
...
You may be able to find the UUID for the physical volume that was overwritten by looking in the
directory. Look in the file
/etc/lvm/archive
valid archived LVM metadata for that volume group.
Alternately, you may find that deactivating the volume and setting the
will enable you to find the UUID of the missing corrupted physical volume.
[root@link-07 backup]# vgchange -an --partial
Partial mode. Incomplete volume groups will be activated read-only.
Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
...
74
vg
mwi-a- 752.00M
iwi-ao 752.00M
iwi-ao 752.00M
vg
lwi-ao
4.00M
VolumeGroupName_xxxx.vg
groupfs_mlog
for the last known
(
) argument
partial
-P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents