All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: dm-devel@redhat.com
Subject: Re: [BUG] multipath-tools: uuid has become meaningless
Date: Tue, 20 Jul 2010 09:17:30 +0200	[thread overview]
Message-ID: <4C454D8A.3020203@suse.de> (raw)
In-Reply-To: <20100720065410.GA3166@us.ibm.com>

Malahal Naineni wrote:
> Christophe Varoqui [christophe.varoqui@gmail.com] wrote:
>>    > 3. We could rename the devices instead of reload -- really fixing this!
>>    >
>>
>>    This one seems safe.
> 
> This is where I was heading. I did some investigation and found that we
> really need to rename to wwid based names before we finally rename to
> the intended name. So we may actually have two passes just to rename
> (first to wwid based names and then to actual names).  Also the current
> code doesn't do rename followed by reload even if it is needed. Someone
> sets friendly name and some other defaults that need reload like path
> grouping policy etc, we just rename! Probably a bug in itself.
> 
You sure? I would rather rely on device-mapper uuids here.
Point is that we
a) use 'mpath-<wwid>' as uuid for multipath generated tables anyway
and
b) uuids are a primary key for device-mapper, too.

So we can use the known naming scheme for the uuid to regenerate the
wwid; with this we can identify/access the device and we should be able to
make do with just one pass.

Two passes have the serious disadvantage of generating yet another set
of meaningless uevents, which then again have to be handled/ignored etc.

I'll be sending a patch to simplify dm_get_name() to illustrate my point.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

  reply	other threads:[~2010-07-20  7:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 22:45 [BUG] multipath-tools: uuid has become meaningless Malahal Naineni
2010-07-20  5:35 ` Christophe Varoqui
2010-07-20  6:54   ` Malahal Naineni
2010-07-20  7:17     ` Hannes Reinecke [this message]
2010-07-20 22:06       ` Malahal Naineni
2010-07-21  3:04         ` [BUG] please PLEASE UnSubscribe!!! W S
2010-07-21 10:44         ` [BUG] multipath-tools: uuid has become meaningless Hannes Reinecke
2010-08-16 22:56   ` Malahal Naineni

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=4C454D8A.3020203@suse.de \
    --to=hare@suse.de \
    --cc=dm-devel@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.