linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm amnesia (Incorrect metadata area header checksum)
@ 2007-12-04  2:02 Dave Scott
  2007-12-04  3:31 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Scott @ 2007-12-04  2:02 UTC (permalink / raw)
  To: linux-lvm

Hi all,

I have a RAID5 array that lost a disk during an upgrade to Fedora Core8.

After the upgrade, only parts of the array made it back up. I removed
the disk from the array and replaced it and the rebuilding process began
(and finished).

If I 'cat' the device, I can see that my data is still there (whew).

But, the physical volume, the (single) volume group, and the logical
volumes (3) did not seem to be there any more.

'pvscan' showed no pv's, so I recreated 'pv0' using the uuid from the VG
archive file, a la:

# pvcretae --force --uuid "sbqK9..." --restorefile
/etc/lvm/archive/raid5a_00007.vg pv0

Now, 'pvscan' spits out three 'Incorrect metadata area header checksum'
messages and the PV data. I.e.,

# pvscan
Incorrect metadata area header checksum
Incorrect metadata area header checksum
Incorrect metadata area header checksum
PV /dev/md1        lvm2 [255.89 GB]
Total: 1 [255.89 GB] / in use: 0 [0   ] / in no VG: 1 [255.89 GB]
# vgscan -v
  Wiping cache of LVM-capable devices
  Wiping internal VG cache
Reading all physical volumes.  This may take a while...
  Finding all volume groups
Incorrect metadata area header checksum
# lvscan -v
  Finding all volume groups
Incorrect metadata area header checksum
#
 
I have the archive file and the data. How do I get the lvm to see it
once again?

Please, please help...   :(

If you need more info, let me know. I've got little else to try.

--dave;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] lvm amnesia (Incorrect metadata area header checksum)
  2007-12-04  2:02 [linux-lvm] lvm amnesia (Incorrect metadata area header checksum) Dave Scott
@ 2007-12-04  3:31 ` Alasdair G Kergon
  0 siblings, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2007-12-04  3:31 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Dec 03, 2007 at 07:02:03PM -0700, Dave Scott wrote:
> I have the archive file and the data. How do I get the lvm to see it
> once again?

add a 'vgcfgrestore' after the pvcreate
 
Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [linux-lvm] lvm amnesia (Incorrect metadata area header checksum)
@ 2007-12-04  3:57 Dave Scott
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Scott @ 2007-12-04  3:57 UTC (permalink / raw)
  To: LVM general discussion and development

Thanks for your response, Alasdair.

But, it didn't work (unless I have the options wrong). Here's the
output:

# vgcfgrestore -v -f /etc/lvm/backup/raid5a raid5a
  Incorrect metadata area header checksum
  Incorrect metadata area header checksum
    Fixing up missing format1 size (255.89 GB) for PV /dev/md1
  Incorrect metadata area header checksum
  Restore failed.
#

--dave;

> -------- Original Message --------
> Subject: Re: [linux-lvm] lvm amnesia (Incorrect metadata area header
> checksum)
> From: Alasdair G Kergon <agk@redhat.com>
> Date: Mon, December 03, 2007 5:31 pm
> To: LVM general discussion and development <linux-lvm@redhat.com>
> 
> 
> On Mon, Dec 03, 2007 at 07:02:03PM -0700, Dave Scott wrote:
> > I have the archive file and the data. How do I get the lvm to see it
> > once again?
> 
> add a 'vgcfgrestore' after the pvcreate
>  
> Alasdair
> -- 
> agk@redhat.com
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-04  3:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04  2:02 [linux-lvm] lvm amnesia (Incorrect metadata area header checksum) Dave Scott
2007-12-04  3:31 ` Alasdair G Kergon
  -- strict thread matches above, loose matches on Subject: below --
2007-12-04  3:57 Dave Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).