All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <bmr@redhat.com>
To: SoulSweeper <soulsweeper@soulsweeper.org>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvcreate & vgcfgrestore won't work
Date: Tue, 06 Jan 2009 17:15:50 +0000	[thread overview]
Message-ID: <496391C6.7010502@redhat.com> (raw)
In-Reply-To: <1231260819.7947.29.camel@fraws70-gentoo>

SoulSweeper wrote:
> On Tue, 2009-01-06 at 12:08 +0000, Bryn M. Reeves wrote:
>> Ralf Sparr wrote:
>>> Hi list,
>>>
>>> as mentioned in my earlier post, LVM complains about
>>> "Incorrect metadata area header checksum". As this occurs
>>> often (many questions, rarely answers in the list) I tried to create
>>> some 'new' via
>> Running pvcreate followed by vgcfgrestore is the correct way to fix a 
>> broken MDA checksum - I've used this many times to recover from these 
>> situations.
> 
> Hmmm, doesn\t sound very promising. Why does this happen? The error
> directly occured after shutting the lvm down. I wanted to reboot the
> server to check a new network-configuration (no LVM changes at all).
> loop-aes & md were still up.

It's hard to say - when I've encountered this in the past, I've usually 
been doing things that I'd expect might introduce a bit of "excitement" 
to the system, e.g. reproducing bugs that involve crashing the kernel 
with a lot of I/O happening.

I am not aware of any deterministic steps that would trigger this under 
normal circumstances (and I'd consider it a bug if I was :) - when I've 
needed to demonstrate how to recover from this in the past I've had to 
resort to writing code to deliberately trash the checksums.

You mention that you're using loop-aes and md, I wonder if maybe 
something's being cached or not flushed to disk correctly when you 
reboot that could be causing corruption?

Regards,
Bryn.

  parent reply	other threads:[~2009-01-06 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06  4:45 [linux-lvm] pvcreate & vgcfgrestore won't work Ralf Sparr
2009-01-06 12:08 ` Bryn M. Reeves
     [not found]   ` <1231260819.7947.29.camel@fraws70-gentoo>
2009-01-06 17:15     ` Bryn M. Reeves [this message]
2009-01-06 17:38       ` Ralf Sparr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=496391C6.7010502@redhat.com \
    --to=bmr@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=soulsweeper@soulsweeper.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.