All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Missing PV
Date: Thu, 26 Apr 2012 18:47:17 +0200	[thread overview]
Message-ID: <4F997C15.6090300@redhat.com> (raw)
In-Reply-To: <20120426145811.GA3329@bdmcc-us.com>

On 04/26/2012 04:58 PM, Brian McCullough wrote:
> On Tue, Apr 24, 2012 at 09:24:19AM -0400, Brian McCullough wrote:
>> I have encountered a situation where vgscan and vgchange are complaining
>> about a missing UUID.
>>
>> As far as I know, all, or almost all, of the LV is on the PV that is
>> known ( how do I know for sure? ), so I think that I am trying to just
>> "remove" the PV and recover what I can of the LV.
> 
> Sorry to be dense, but I don't feel confident about proceeding before I
> know what the next step should be.

It is not clear what exactly you are trying to do and what how your configuration
looks like.

Btw there are several examples as well
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mdatarecover.html

You said you have missing PV, right?

- why the PV is missing? What exactly happened?
(overwritten, removed from system, hw failed?)

- what was on that missing PV? e.g. which part of LV?

("lvs -o +devices" should tell, paste it somewhere, if
it is the first segment missing, you will perhaps not recover fs on it)

All recovery now depends on info above and what you really want:

1) either you have old disk and you want to recover metadata on it
and attach it back to VG

2) or you want just recover data from existing PVs
(replace missing PV segments with zeroes for example)

3) or you want completely remove all LVs which were even partially on this
lost PV (no data recovery, just make VG consistent again)

What is the option you want to do? I guess 2) ?

(btw all situations are described on my slides you mentioned,
http://mbroz.fedorapeople.org/talks/LinuxAlt2009_2/ - but it is possible
some info is not up to date, there were some small changes.
And I borrowed some info from Bryn lvm recovery talk as well)

> I am pretty sure that I can remove the "lost" PV, using the
> instructions that I have found in multiple places, including the
> referenced slide deck, but I have not been able to find anything about
> recovering the LV that spans from the existing PV into the lost one.

See the section for missing_stripe_filler and --partial activation
(default stripe filler is "error" - all IO on missing segment fails
with io error)

vgchange/lvchange should then replace these missing with this filler.

(See how you can use "zero" replacement on my slides above. This
is better for data recovery, similar to dd_rescue job)

Milan

  reply	other threads:[~2012-04-26 16:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 13:24 [linux-lvm] Missing PV Brian McCullough
2012-04-26 14:58 ` Brian McCullough
2012-04-26 16:47   ` Milan Broz [this message]
2012-04-26 17:23     ` Brian McCullough
2012-04-26 17:47       ` Milan Broz
2012-04-26 18:24         ` Brian McCullough
2012-04-26 19:43         ` Brian McCullough
2012-04-26 20:45           ` Milan Broz
2012-04-26 21:13             ` Brian McCullough
2012-04-27  3:08               ` Brian McCullough
2012-04-28 17:01                 ` Brian McCullough

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=4F997C15.6090300@redhat.com \
    --to=mbroz@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 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.