All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] multipath-tools: uuid has become meaningless
@ 2010-07-19 22:45 Malahal Naineni
  2010-07-20  5:35 ` Christophe Varoqui
  0 siblings, 1 reply; 8+ messages in thread
From: Malahal Naineni @ 2010-07-19 22:45 UTC (permalink / raw)
  To: dm-devel

Hi All,

	I have noticed that uuid reported my 'multipath -l' doesn't
really correspond to the paths it loaded. In fact, the machine has two
different storage subsystems, say EMC and IBM, and the 'multipath -l'
output looks like it reported EMC instead of IBM as vendor and vice
versa. Further debugging showed that the system is configured with
'user_friendly_names' in initrd.  Initrd actually configures all the
paths correctly using 'user_friendly_names' as intended, but the real
root's multipathd init script's invocation tried to match the names in
/var/lib/multipath/bindings file (this file has grown since the last
mkinitrd!).  Instead of just renaming, it actually re-loads with
different paths!

One easy way to reproduce the problem is to run multipath once, edit the
bindings file to swap couple entries (mpatha to mpathb and vice versa)
and then run multipath. The later run of multipath reloads mpatha with
mpathb's paths and vice versa, instead of just renaming. I know renaming
is hard here as they have to be unique when you rename!

Here is the code where the things happen:
libmultipath/configure.c: select_action(): This may reload if it finds
cmpp "by alias" as well as "by wwid".

Technically, this is not wrong! No I/O should be happening in the
original reported case when the device mapper tables are reloaded. It is
just that the uuid's loaded have become meaningless for user!
'multipath -l' has no point in reporting the uuid if it becomes useless!

My thoughts on fixing this:
1. Technically nothing wrong. Live with it and make sure that device
   mapper's uuid are meaningless for user and fix 'multipath -l' to
   not print uuid's.
2. Don't support user_friendly_names in initrd. Could be just documented
   or an option to multipath is added to ignore that feature and that
   option is used in initrd calls!
3. We could rename the devices instead of reload -- really fixing this!

Any comments on which way we should go and other possibilities?

Thanks, Malahal.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-16 22:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.