<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 12pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Dear list,</div><div>We have a FC storage and using multipathd to manager the FC paths.</div><div>I've met an issue in this environment. The following is how to recreate the issue.</div><div><br></div><div>=======</div><div>1. Map a LUN to host with LUN ID 0,</div><div>2. rescan fc_host, a new path will be found by multipath.</div><div>3. Unmap LUN 0.  path will failed as following.</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">[root@localhost sys]# multipath -ll<br>Jul 10 18:41:50 | sdp: couldn't get asymmetric access state<br>Jul 10 18:41:50 | sdq: couldn't get asymmetric access state<br>36005076300810eadf800000000000156 dm-3 IBM,2145<br>size=8.0G features='2 queue_if_no_path retain_attached_hw_handler' hwhandler='1 alua' wp=rw<br>|-+- policy='service-time 0' prio=0 status=enabled<br>| `- 2:0:0:0 sdp 8:240 failed faulty running<br>`-+- policy='service-time 0' prio=0 status=enabled<br>  `- 2:0:1:0 sdq 65:0  failed faulty running<br></span></div>
<div>4. Map another LUN which have different ID_SERIAL but with the same LUN ID(0). Multipath(check_path function) will set the paths up, tur checker will successfully test the LUN. </div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">[root@localhost sys]# /lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/mapper/36005076300810eadf800000000000156<br>36005076300810eadf800000000000155</span></div><div> I think this is not right, although I do not remove the device by 'echo 1> /sys/block/sdp/device/delete'. A multipath is identified by LUN scsi ID, in this situation the multipath</div><div>ID is not equal to LUN scsi ID. And if I add the previous LUN back, the paths will also be added to that multipath id(<span style="font-size: 12pt; line-height: 1.5; background-color: window;">36005076300810eadf800000000000156).</span></div><div><br></div><div>Any suggestion on how to make it create a new node in /dev with correct scsi ID? Thanks.</div><div><br></div><div><br></div><div>===========</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">[root@localhost sys]# cat /etc/multipath.conf<br>defaults {<br>    features "0"<br>    no_path_retry           queue<br>    getuid_callout "/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"<br>}<br>blacklist {<br>    devnode "sd[a-m]"<br>}<br></span></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>liuqing@huayun.com</div></div></span></div>
</body></html>