[root@sysrescue ~/Desktop]# pvcreate --uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp --restorefile VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e WARNING: Couldn't find device with uuid x7Na0E-dSN2-QyRL-0psb-Bd3M-HmXZ-BpEPiG. WARNING: Couldn't find device with uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp. /dev/sda3: Checksum error at offset 257024 WARNING: invalid metadata text from /dev/sda3 at 257024. WARNING: metadata on /dev/sda3 at 257024 has invalid summary for VG. WARNING: bad metadata text on /dev/sda3 in mda1 WARNING: scanning /dev/sda3 mda1 failed to read metadata summary. WARNING: repair VG metadata on /dev/sda3 with vgck --updatemetadata. WARNING: scan failed to get metadata summary from /dev/sda3 PVID x7Na0EdSN2QyRL0psbBd3MHmXZBpEPiG WARNING: Metadata location on /dev/sdb at 268800 begins with invalid VG name. WARNING: bad metadata text on /dev/sdb in mda1 WARNING: scanning /dev/sdb mda1 failed to read metadata summary. WARNING: repair VG metadata on /dev/sdb with vgck --updatemetadata. WARNING: scan failed to get metadata summary from /dev/sdb PVID 8ivdRed8EqB7bAiJAeWCK65wJ1Nzlyvp No device found for VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e. [root@sysrescue ~/Desktop]# pvcreate --uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp --restorefile VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e^C [root@sysrescue ~/Desktop]# dd if=/dev/zero bs=1k count=2 of=/dev/sda3 2+0 records in 2+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.209414 s, 9.8 kB/s [root@sysrescue ~/Desktop]# sync [root@sysrescue ~/Desktop]# pvcreate --uuid x7Na0E-dSN2-QyRL-0psb-Bd3M-HmXZ-BpEPiG --restorefile VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e /dev/sda3 WARNING: Couldn't find device with uuid x7Na0E-dSN2-QyRL-0psb-Bd3M-HmXZ-BpEPiG. WARNING: Couldn't find device with uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp. WARNING: Metadata location on /dev/sdb at 268800 begins with invalid VG name. WARNING: bad metadata text on /dev/sdb in mda1 WARNING: scanning /dev/sdb mda1 failed to read metadata summary. WARNING: repair VG metadata on /dev/sdb with vgck --updatemetadata. WARNING: scan failed to get metadata summary from /dev/sdb PVID 8ivdRed8EqB7bAiJAeWCK65wJ1Nzlyvp Physical volume "/dev/sda3" successfully created. [root@sysrescue ~/Desktop]# dd if=/dev/zero bs=1k count=2 of=/dev/sdb 2+0 records in 2+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.0298616 s, 68.6 kB/s [root@sysrescue ~/Desktop]# pvcreate --uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp --restorefile VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e /dev/sdb WARNING: Couldn't find device with uuid x7Na0E-dSN2-QyRL-0psb-Bd3M-HmXZ-BpEPiG. WARNING: Couldn't find device with uuid 8ivdRe-d8Eq-B7bA-iJAe-WCK6-5wJ1-Nzlyvp. Physical volume "/dev/sdb" successfully created. [root@sysrescue ~/Desktop]# pvscan PV /dev/sda3 lvm2 [<95.20 GiB] PV /dev/sdb lvm2 [<683.51 GiB] Total: 2 [778.70 GiB] / in use: 0 [0 ] / in no VG: 2 [778.70 GiB] [root@sysrescue ~/Desktop]# vgscan [root@sysrescue ~/Desktop]# vgcfgrestore --force --file VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e No command with matching syntax recognised. Run 'vgcfgrestore --help' for more information. Nearest similar command has syntax: vgcfgrestore -f|--file String VG Restore VG metadata from specified file. [root@sysrescue ~/Desktop]# vgcfgrestore --force --file VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e WARNING: VG VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e was previously updated while PV /dev/sda3 was missing. Cannot restore Volume Group VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e with 1 PVs marked as missing. Restore failed. [root@sysrescue ~/Desktop]# pvscan PV /dev/sda3 lvm2 [<95.20 GiB] PV /dev/sdb lvm2 [<683.51 GiB] Total: 2 [778.70 GiB] / in use: 0 [0 ] / in no VG: 2 [778.70 GiB] [root@sysrescue ~/Desktop]# vgcfgrestore --force --file VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e Restored volume group VG_XenStorage-654eedce-8bcc-1839-4824-1b969a770c1e. [root@sysrescue ~/Desktop]#