From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] device failure during pvmove
Date: Fri, 15 Jan 2016 12:53:32 +0100 [thread overview]
Message-ID: <5698DDBC.5020500@redhat.com> (raw)
In-Reply-To: <CAJbEnTxMa=LSk+=55oUko7vQ9m8qOLJpu-WBsEh5nOA2ooiRew@mail.gmail.com>
Dne 15.1.2016 v 03:29 Bryan Larsen napsal(a):
> On Thu, 14 Jan 2016 at 20:38 Bryan Larsen <bryan@larsen.st
> <mailto:bryan@larsen.st>> wrote:
>
> I was in the process of doing a pvmove from /dev/md3 to a new, blank
> /dev/md1 when /dev/md1 failed due to operator stupidity.
>
> I tried doing a pvmove abort, but it complains about a missing device.
> It suggests doing a vgreduce --removemissing but that refuses to proceed
> without a --force because pvmove has placed data onto the broken and
> missing /dev/md1.
>
> So theoretically all my data should still be available on /dev/md3. Any
> hints on how to proceed?
>
>
> I solved the problem. I did a vgcfgdump, carefully edited the resulting
> file, and used vgcfgrestore to bring things back to life.
>
If you have enabled archiving - you could use archived metadata before
you started pvmove.
Also if you have 'recent enough' version of lvm2 - check '--atomic' option
for pvmove.
Regards
Zdenek
prev parent reply other threads:[~2016-01-15 11:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 1:38 [linux-lvm] device failure during pvmove Bryan Larsen
2016-01-15 2:29 ` Bryan Larsen
2016-01-15 11:53 ` Zdenek Kabelac [this message]
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=5698DDBC.5020500@redhat.com \
--to=zkabelac@redhat.com \
--cc=linux-lvm@redhat.com \
/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).