linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: lejeczek <peljasz@yahoo.co.uk>
Cc: "linux-lvm@redhat.com" <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] recovery of a VG - how?
Date: Mon, 7 Oct 2019 11:42:18 -0500	[thread overview]
Message-ID: <20191007164218.GA4398@redhat.com> (raw)
In-Reply-To: <8d1e7b13-eeec-18c0-592b-564dc5740636@yahoo.co.uk>

On Mon, Oct 07, 2019 at 05:25:15PM +0100, lejeczek wrote:
> hi guys
> 
> I have a VG which I try to restore:
> 
> $ vgcfgrestore --file /etc/lvm/archive/chenbro0.0_00308-2121179640.vg chenbro0.0
> � /dev/mapper/chenbro_a: Checksum error at offset 428544
> � Couldn't read volume group metadata from /dev/mapper/chenbro_a.
> � Metadata location on /dev/mapper/chenbro_a at 428544 has invalid summary for VG.

The latest upstream version of lvm has some improvements to help recover
from problems like this.  So, you could try building lvm 2.03.05, and
running 'vgck --updatemetadata'.  Otherwise, the old approach has been to
use pvcreate with --restorefile and --uuid, followed by vgcfgrestore.
(I'd experiment with that using some test devices if possible.)
Dave

  reply	other threads:[~2019-10-07 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-07 16:25 [linux-lvm] recovery of a VG - how? lejeczek
2019-10-07 16:42 ` David Teigland [this message]
2019-10-15 15:20   ` lejeczek
2019-10-15 15:30   ` lejeczek

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=20191007164218.GA4398@redhat.com \
    --to=teigland@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=peljasz@yahoo.co.uk \
    /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 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).