Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual page 87

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

Use the
and
--uuid
--restorefile
physical volume. The following example labels the
the UUID indicated above,
restores the physical volume label with the metadata information contained in
most recent good archived metatdata for volume group . The
the
command to make the new physical volume compatible with the old one on the
pvcreate
volume group, ensuring that the the new metadata will not be placed where the old physical
volume contained data (which could happen, for example, if the original
had used the command line arguments that control metadata placement, or it the physical
volume was originally created using a different version of the software that used different
defaults). The
pvcreate
the existing data areas.
[root@link-07 backup]# pvcreate --uuid
"FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk" --restorefile
/etc/lvm/archive/VG_00050.vg /dev/sdh1
Physical volume "/dev/sdh1" successfully created
You can then use the
[root@link-07 backup]# vgcfgrestore VG
Restored volume group VG
You can now display the logical volumes.
[root@link-07 backup]# lvs -a -o +devices
LV
VG
Attr
stripe VG
-wi--- 300.00G
(0),/dev/sda1(0)
stripe VG
-wi--- 300.00G
(34728),/dev/sdb1(0)
The following commands activate the volumes and display the active volumes.
[root@link-07 backup]# lvchange -ay /dev/VG/stripe
[root@link-07 backup]# lvs -a -o +devices
LV
VG
Attr
stripe VG
-wi-a- 300.00G
(0),/dev/sda1(0)
stripe VG
-wi-a- 300.00G
(34728),/dev/sdb1(0)
arguments of the
FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk
command overwrites only the LVM metadata areas and does not affect
command to restore the volume group's metadata.
vgcfgrestore
LSize
Origin Snap%
LSize
Origin Snap%
Recovering Physical Volume Metadata
command to restore the
pvcreate
device as a physical volume with
/dev/sdh1
restorefile
pvcreate
Move Log Copy%
Move Log Copy%
. This command
, the
VG_00050.vg
argument instructs
command
Devices
/dev/sdh1
/dev/sdh1
Devices
/dev/sdh1
/dev/sdh1
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents