From: guy keren <guy.keren@kaminario.com>
To: "Stewart, Sean" <Sean.Stewart@netapp.com>,
device-mapper development <dm-devel@redhat.com>
Cc: Eli Malul <eli.malul@kaminario.com>,
Shahar Salzman <shahar.salzman@kaminario.com>
Subject: Re: A path to a different device was added to an existing mapth
Date: Sat, 28 Mar 2015 14:32:11 +0300 [thread overview]
Message-ID: <5516913B.9080600@kaminario.com> (raw)
In-Reply-To: <1427498782.22396.29.camel@ict-vth-stewarts01.ict.englab.netapp.com>
hi Sean,
in the case stated, the host was not rebooted during this test. what has
changed is LUNs exposure to the host (unmapping and re-mapping of LUNs,
deleting and re-creating of LUNs).
could these kind of operations trigger similar issues?
from what we saw, multipathd's state made it think that some paths, that
have different WWIDs, should be bound to the same multipath device
(which is incorrect).
a different question comes to mind:
if we avoid using the friendly names, and instead use the
/dev/mapper/<wwid> device paths - is this likely to avoid the problem in
the first place?
--guy
On 03/28/2015 02:26 AM, Stewart, Sean wrote:
> Hi Ilan,
>
>
> I believe this is solved by the following patch:
> http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commit;h=5adec73edcdee912821ca8378439dc105e82c60f
>
> Per the patch description:
> When a system is booted to the SAN, a condition can occur where one
> user friendly name is given to a disk during boot, but multipathd tries
> to allocate a different one after boot. If the second alias is already
> used by another device, multipathd can't rename it. Multipathd then has
> incorrect information about the alias/wwid relationships, which can
> result in paths being added to the wrong map.
>
> On Thu, 2015-03-19 at 10:35 +0000, Ilan Steinberg wrote:
>
>> multipathd> show maps
>> name sysfs uuid
>> mpathiw dm-13 20024f400d5190010
> This shows the current running configuration, that multipathd is
> operating believing that mpathiw should have be 20024f400d5190010.
>
>> This might be useful info - in the bindings file I see:
>>
>> ...
>>
>> mpathiv 20024f400d5190010
>> <---------------------------------------- this is the scsi_sn of sdag
>>
>> mpathiw 20024f400d5190026
>> <---------------------------------------- this is the scsi_sn of sdz/w
>>
>> ...
>>
> So what must have happened was that the bindings file was out of sync on
> the initramfs and the local fs (which you can check by unwrapping the
> initramfs and comparing the wwids in each file), and it created the
> device with one name, tried to rename it, couldn't, and multipathd then
> starts adding into the wrong map. It's hard to explain clearly. :) If
> we could see what both bindings files say, maybe I could explain it
> better.
>
> To work around it, remaking the initramfs to sync the bindings should
> suffice, or you could define aliases via the multipath sections
> multipath.conf.
>
> Hope this helps.
>
>
> Thanks,
> Sean Stewart
>
>
prev parent reply other threads:[~2015-03-28 11:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 10:10 A path to a different device was added to an existing mapth Ilan Steinberg
2015-03-19 10:35 ` Ilan Steinberg
2015-03-27 23:26 ` Stewart, Sean
2015-03-28 11:32 ` guy keren [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=5516913B.9080600@kaminario.com \
--to=guy.keren@kaminario.com \
--cc=Sean.Stewart@netapp.com \
--cc=dm-devel@redhat.com \
--cc=eli.malul@kaminario.com \
--cc=shahar.salzman@kaminario.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