<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I have some more info:</p>
<p><br>
</p>
<p><font size="2"><span style="font-size:10pt;">multipathd> show maps<br>
name    sysfs uuid<br>
mpathhs dm-2  20024f400d5190000<br>
mpathit dm-16 20024f400d519002b<br>
mpathis dm-15 20024f400d519001c<br>
mpathin dm-11 20024f400d5190012<br>
mpathim dm-14 20024f400d5190011<br>
<b>mpathiw dm-13 20024f400d5190010</b><br>
mpathhz dm-7  20024f400d5190006<br>
mpathhx dm-6  20024f400d5190005<br>
mpathhw dm-5  20024f400d5190004<br>
mpathht dm-8  20024f400d5190003<br>
mpathij dm-12 20024f400d519000e<br>
mpathil dm-10 20024f400d519000d<br>
mpathhv dm-3  20024f400d5190001<br>
mpathik dm-9  20024f400d519000f<br>
mpathhu dm-4  20024f400d5190002</span></font></p>
<p><br>
</p>
<p>It seems that mpathiw is indeed with the uuid of sdag but...</p>
<p><br>
</p>
<p><font style="font-size: 12pt;">note that  if you run 'multipath -l' you will see mpathiw having the correct
<br>
signature (20024f400d5190026) - because it queries it again from the storage.</font></p>
<p><br>
</p>
<p>Also:</p>
<p><br>
</p>
<p><font style="font-size: 8pt;">multipathd> show paths format "%d %s %S %w"<br>
dev  vend/prod/rev size uuid<br>
.<br>
.<br>
sdaf KMNRIO,K2     300G 20024f400d519001e<br>
.<br>
sdw  KMNRIO,K2     100G 20024f400d5190010<br>
.<br>
.<br>
sdz  KMNRIO,K2     100G 20024f400d5190026<br>
.<br>
sdag KMNRIO,K2     300G 20024f400d5190010</font><br>
<font style="font-size: 12pt;"></font></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<br>
Unfortunately, the device for sdag was deleted from the storage, but I can still see that:<br>
<br>
<span style="font-size: 8pt;">[root@il-ksm3-044 ~]# sg_inq -p 0x83<strong> /dev/sdw</strong></span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">VPD INQUIRY: Device Identification page</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">  Designation descriptor number 1, descriptor length: 36</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    designator_type: T10 vendor identification,  code_set: ASCII</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    associated with the addressed logical unit</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      vendor id: KMNRIO  </span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      vendor specific: ATF-VG-1:EXP-SNAd5190026</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">  Designation descriptor number 2, descriptor length: 12</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    designator_type: EUI-64 based,  code_set: Binary</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    associated with the addressed logical unit</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      EUI-64 based 8 byte identifier</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      IEEE Company_id: 0x24f4</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      Vendor Specific Extension Identifier: 0xd5190026</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      [<strong>0x0024f400d5190026</strong>]</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">[root@il-ksm3-044 ~]# sg_inq -p 0x83 <strong>/dev/sdz</strong></span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">VPD INQUIRY: Device Identification page</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">  Designation descriptor number 1, descriptor length: 36</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    designator_type: T10 vendor identification,  code_set: ASCII</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    associated with the addressed logical unit</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      vendor id: KMNRIO  </span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      vendor specific: ATF-VG-1:EXP-SNAd5190026</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">  Designation descriptor number 2, descriptor length: 12</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    designator_type: EUI-64 based,  code_set: Binary</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">    associated with the addressed logical unit</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      EUI-64 based 8 byte identifier</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      IEEE Company_id: 0x24f4</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      Vendor Specific Extension Identifier: 0xd5190026</span><br style="font-size: 8pt;">
<span style="font-size: 8pt;">      [<strong>0x0024f400d5190026</strong>]</span><br>
<br>
So, sdw and sdz are path to the same device, and so are sdaf and sdag...<br>
<br>
Regards,<br>
Ilan Steinberg<br>
</div>
</div>
<br>
<br>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Ilan Steinberg<br>
<b>Sent:</b> Thursday, March 19, 2015 12:10 PM<br>
<b>To:</b> dm-devel@redhat.com<br>
<b>Cc:</b> Eli Malul; Guy Keren; Shahar Salzman<br>
<b>Subject:</b> A path to a different device was added to an existing mapth</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;">Hello,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I have never posted here before but I can across an interesting error.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I have run into a situation were a path (sdag) to LUN 15 with a scsi serial number of ending with 0xd5190010 was added to an mapth (mpathiw) which is for LUN 11 with scsi serial number ending with 0xd5190026 (sdz
 and sdw)<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I would appreciate any help understanding how/why this happened.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Initiator Info:<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Linux il-ksm3-044 2.6.32-431.el6.x86_64 #1</p>
<p style="margin-top: 0px; margin-bottom: 0px;">device-mapper-multipath version 0.4.9</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">multipath.conf:</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-size:8pt">defaults {<br style="">
                   user_friendly_names     yes<br style="">
                   polling_interval        10<br style="">
                    verbosity               2<br style="">
}<br style="">
devices {<br style="">
                    device  {<br style="">
                             vendor                      "KMNRIO"<br style="">
                             product                     "K2"<br style="">
                         path_grouping_policy        multibus<br style="">
                             getuid_callout          "/lib/udev/scsi_id --whitelisted --device=/dev/%n"<br style="">
                             path_checker                tur<br style="">
                             path_selector               "queue-length 0"<br style="">
                             no_path_retry               fail<br style="">
                             hardware_handler            "0"<br style="">
                             rr_weight                   priorities<br style="">
                             rr_min_io               1<br style="">
                             failback                15<br style="">
                             fast_io_fail_tmo        5<br style="">
                             dev_loss_tmo            8<br style="">
                             }<br style="">
}<br style="">
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Since I see that sdz and sdw used to belong to mapthiv (was it renamed to mathiw?)<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">This might be useful info - in the bindings file I see:</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-size:10pt">...</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-size:10pt">mpathiv 20024f400d5190010                      <---------------------------------------- this is the scsi_sn of sdag</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-size:10pt">mpathiw 20024f400d5190026                     <---------------------------------------- this is the scsi_sn of sdz/w</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-size:10pt">...<br style="">
</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I am adding the relevant host logs (I can add the full logs if needed) - error is in the last log line:<br style="font-size:8pt">
</p>
<pre class="bz_comment_text" id="comment_text_6"><span style="font-size:8pt">Mar 14 09:44:36 il-ksm3-044 kernel: sdag: detected capacity change from 0 to 322122547200

Mar 14 09:59:35 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Warning! Received an indication that the LUN reached a thin provisioning soft threshold.

Mar 14 10:00:06 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Warning! Received an indication that the LUN reached a thin provisioning soft threshold.

Mar 14 10:00:21 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Warning! Received an indication that the LUN reached a thin provisioning soft threshold.

Mar 14 10:26:31 il-ksm3-044 kernel: end_request: I/O error, dev sdz, sector 167369280
Mar 14 10:26:31 il-ksm3-044 kernel: end_request: I/O error, dev sdz, sector 80032448

Mar 14 10:26:44 il-ksm3-044 multipathd: sdz: remove path (uevent)
Mar 14 10:26:44 il-ksm3-044 multipathd: sdz [65:144]: path removed from map mpathiv
Mar 14 10:26:44 il-ksm3-044 multipathd: sdag: remove path (uevent)
Mar 14 10:26:44 il-ksm3-044 multipathd: sdag [66:0]: path removed from map mpathks

Mar 14 10:26:44 il-ksm3-044 multipathd: mpathiv: load table [0 209715200 multipath 0 0 1 1 queue-length 0 1 1 65:96 1]
Mar 14 10:26:44 il-ksm3-044 multipathd: mpathks: load table [0 629145600 multipath 0 0 1 1 queue-length 0 1 1 65:240 1]

Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Write Protect is off
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Write cache: disabled, read cache: enabled, supports DPO and FUA
Mar 14 10:53:50 il-ksm3-044 kernel: sdz:
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Attached SCSI disk
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] 629145600 512-byte logical blocks: (322 GB/300 GiB)
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Write Protect is off
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Write cache: disabled, read cache: enabled, supports DPO and FUA
Mar 14 10:53:50 il-ksm3-044 kernel: sdag: unknown partition table
Mar 14 10:53:50 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Attached SCSI disk
Mar 14 10:53:50 il-ksm3-044 multipathd: sdag: add path (uevent)
Mar 14 10:53:50 il-ksm3-044 multipathd: mpathks: failed in domap for addition of new path sdag
Mar 14 10:53:50 il-ksm3-044 multipathd: sdz: add path (uevent)
Mar 14 10:53:50 il-ksm3-044 multipathd: sdz [65:144]: path added to devmap mpathiv

Mar 14 10:53:50 il-ksm3-044 multipathd: mpathiv: load table [0 209715200 multipath 0 0 1 1 queue-length 0 2 1 65:96 1 65:144 1]

Mar 14 12:29:12 il-ksm3-044 multipathd: sdw: remove path (uevent)
Mar 14 12:29:12 il-ksm3-044 multipathd: mpathiv: load table [0 209715200 multipath 0 0 1 1 queue-length 0 1 1 65:144 1]
Mar 14 12:29:12 il-ksm3-044 multipathd: sdw [65:96]: path removed from map mpathiv

Mar 15 12:45:59 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.

Mar 14 12:59:18 il-ksm3-044 kernel: sd 7:0:1:11: [sdw] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Mar 14 12:59:18 il-ksm3-044 kernel: sd 7:0:1:11: [sdw] Write Protect is off
Mar 14 12:59:18 il-ksm3-044 kernel: sd 7:0:1:11: [sdw] Write cache: disabled, read cache: enabled, supports DPO and FUA
Mar 14 12:59:18 il-ksm3-044 kernel: sd 7:0:1:11: [sdw] Attached SCSI disk

Mar 14 12:59:18 il-ksm3-044 multipathd: sdw: add path (uevent)
Mar 14 12:59:18 il-ksm3-044 multipathd: mpathiv: load table [0 209715200 multipath 0 0 1 1 queue-length 0 2 1 65:144 1 65:96 1]
Mar 14 12:59:18 il-ksm3-044 multipathd: sdw [65:96]: path added to devmap mpathiv

Mar 15 11:45:27 il-ksm3-044 kernel: sdz: detected capacity change from 0 to 107374182400

Mar 15 11:45:33 il-ksm3-044 multipathd: mpathiw: event checker started
Mar 15 11:45:33 il-ksm3-044 multipathd: mpathiw: devmap dm-13 added

Mar 15 12:28:12 il-ksm3-044 multipathd: mpathiw: event checker exit

Mar 15 12:28:15 il-ksm3-044 multipathd: mpathiw: event checker started
Mar 15 12:28:15 il-ksm3-044 multipathd: mpathiw: devmap dm-13 added

Mar 15 12:56:35 il-ksm3-044 kernel: end_request: I/O error, dev sdz, sector 204563968
Mar 15 12:56:35 il-ksm3-044 kernel: end_request: I/O error, dev sdz, sector 193484032
Mar 15 12:56:35 il-ksm3-044 multipathd: mpathiw: remaining active paths: 1

Mar 15 12:56:48 il-ksm3-044 multipathd: sdz: remove path (uevent)
Mar 15 12:56:48 il-ksm3-044 multipathd: mpathiw: load table [0 209715200 multipath 0 0 1 1 queue-length 0 1 1 65:96 1]
Mar 15 12:56:48 il-ksm3-044 multipathd: sdz [65:144]: path removed from map mpathiw
Mar 15 12:56:48 il-ksm3-044 multipathd: sdag: remove path (uevent)

Mar 15 13:27:00 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Mar 15 13:27:00 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Write Protect is off
Mar 15 13:27:00 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Write cache: disabled, read cache: enabled, supports DPO and FUA
Mar 15 13:27:00 il-ksm3-044 kernel: sdz: unknown partition table
Mar 15 13:27:00 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Attached SCSI disk
Mar 15 13:27:00 il-ksm3-044 multipathd: sdz: add path (uevent)
Mar 15 13:27:00 il-ksm3-044 multipathd: mpathiw: <strong>failed in domap for addition of new path sdz</strong>

Mar 15 15:20:41 il-ksm3-044 multipathd: mpathiw: devmap dm-13 added

Mar 15 17:38:36 il-ksm3-044 kernel: sd 8:0:1:11: [sdz] Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.

Mar 15 18:44:54 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] 629145600 512-byte logical blocks: (322 GB/300 GiB)
Mar 15 18:44:54 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Write Protect is off
Mar 15 18:44:54 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Write cache: disabled, read cache: enabled, supports DPO and FUA
Mar 15 18:44:54 il-ksm3-044 kernel: sdag: unknown partition table
Mar 15 18:44:54 il-ksm3-044 kernel: sd 8:0:1:15: [sdag] Attached SCSI disk

Mar 15 18:44:55 il-ksm3-044 multipathd: sdag: add path (uevent)
Mar 15 18:44:55 il-ksm3-044 multipathd: mpathiw: load table [0 209715200 multipath 0 0 1 1 queue-length 0 3 1 65:96 1 65:144 1 <strong>66:0</strong> 1]
<strong>Mar 15 18:44:55 il-ksm3-044 multipathd: sdag [66:0]: path added to devmap mpathiw</strong></span></pre>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<br>
Thank you,<br>
Ilan Steinberg<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>