Installation guide

Table Of Contents
Physical volume "/dev/sdh1" successfully created
You can then use the vgcfgrestore command to restore the volume group's metadata.
[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 LSize Origin Snap% Move Log Copy% Devices
stripe VG -wi--- 300.00G /dev/sdh1 (0),/dev/sda1(0)
stripe VG -wi--- 300.00G /dev/sdh1 (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 LSize Origin Snap% Move Log Copy% Devices
stripe VG -wi-a- 300.00G /dev/sdh1 (0),/dev/sda1(0)
stripe VG -wi-a- 300.00G /dev/sdh1 (34728),/dev/sdb1(0)
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 fsck command 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 Section 4,
“Recovering Physical Volume Metadata”. You can use the --partial and --verbose arguments
of the vgdisplay command to display the UUIDs and sizes of any physical volumes that are no
longer present. If you wish to substitute another physical volume of the same size, you can use
the pvcreate command with the --restorefile and --uuid arguments to initialize a new device
with the same UUID as the missing physical volume. You can then use the vgcfgrestore com-
mand to restore the volume group's metadata.
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 argument of the vgchange command. You can remove all the logical
volumes that used that physical volume from the volume group with the --removemissing argu-
ment of the vgreduce command.
It is recommended that you run the vgreduce command with the --test argument to verify what
you will be destroying.
5. Replacing a Missing Physical Volume
64