All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvm2 confused about double UUID
Date: Mon, 27 Jul 2009 01:19:17 -0500	[thread overview]
Message-ID: <4A6D46E5.2000100@cox.net> (raw)
In-Reply-To: <alpine.DEB.2.01.0907262020090.6426@bogon.housecafe.de>

On 2009-07-26 22:30, Christian Kujau wrote:
> On Sun, 26 Jul 2009 at 21:55, Ron Johnson wrote:
>> So the issue seems really the deeper fact that you've got two physical devices
>> with the same UUID.  All your lvm issues tumble out from there.
>>
>> Is that a good summary?
> 
> Yes, that's it. I know, having 2 physical volumes with the same UUID is 
> not cool and is certainly not supported, but due to the split that's what 
> I have here now and I assumed that I could convince LVM via the filter 
> directive to use a certain device for vg02. I mean, vg02 is working fine, 
> but I really want to format either sdb or sdc, but I'm afraid of 
> destroying something in the LVM layout...
> 
> Let me ask another thing: when I assume for a moment that "pvs" is lying 
> and really sdc is used for vg02, I'd go ahead and 1) pvcreate sdb, thus 
> assigning a new UUID to sdb and 2) remove the filter from lvm.conf. LVM 
> should not complain any more (since we have 2 different UUIDs now) and I/O 
> still goes to sdc, as it is now apparently. If things go wrong, how can I 
> restore the LVM header on sdb? (Would "pvcreate --uuid <old-UUID>" do the 
> trick? Or restoring with dd? How many bytes are changed when using 
> pvcreate?)

Now you're getting beyond my pay grade.

But with uuidgen and tune2fs, you could give sdc1 a new UUID.  That 
would hose lvm, though, and you'd have to do surgery in /etc/lvm.

I'd go the safe/sure route and backup sdc2 if possible (have you 
written anything new to it since breaking the mirror?), and start 
over, dropping it from lvm. refdisking it (is there such a word?), 
etc, etc.

-- 
Scooty Puff, Sr
The Doom-Bringer

  reply	other threads:[~2009-07-27  6:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27  0:21 [linux-lvm] lvm2 confused about double UUID Christian Kujau
2009-07-27  0:50 ` Ron Johnson
2009-07-27  1:22   ` Christian Kujau
2009-07-27  2:55     ` Ron Johnson
2009-07-27  3:30       ` Christian Kujau
2009-07-27  6:19         ` Ron Johnson [this message]
2009-07-27  8:55           ` Christian Kujau
2009-07-27 10:46             ` Alasdair G Kergon
2009-07-27  3:10     ` Christian Kujau
2009-07-27 13:41 ` malahal
2009-07-28 11:45   ` Christian Kujau

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=4A6D46E5.2000100@cox.net \
    --to=ron.l.johnson@cox.net \
    --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.