<div dir="ltr">A thought:<div><br></div><div>In checking the model, only SCSI_PRODUCT_SIZE chars will be returned from sysfs_get_model.  If the entire model strings are:</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">FlashArray:</span><span style="font-family:arial,sans-serif;font-size:13px">FC048517648240BB00010003</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px">FlashArray:</span><span style="font-family:arial,sans-serif;font-size:13px">FC048517648240BB00010005</span><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">that's 36 characters, of which the first 35 look identical to me.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Even if "FlashArray:" is ignored, and the hex digits represent the product, </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">that's still 25 hex digits of which the first 24 look identical.</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 4:16 PM, Brian Bunker <span dir="ltr"><<a href="mailto:brian@purestorage.com" target="_blank">brian@purestorage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
Every once in a while we run into a situation like this and we have caught a machine in this state to hopefully gain some insight into what is wrong where causing this. We have a 'multipath -l' output like this:<br>

<br>
[root@r17init5 ~]# multipath -l<br>
...<br>
mpathguk (3624a9370fc048517648240bb00010005) dm-4 PURE,FlashArray<br>
size=500G features='0' hwhandler='0' wp=rw<br>
`-+- policy='round-robin 0' prio=0 status=active<br>
  |- 2:0:0:7  sdar 66:176 active undef running<br>
  |- 0:0:0:7  sdba 67:64  active undef running<br>
  |- 3:0:0:5  sde  8:64   active undef running<br>
  `- 1:0:0:5  sdt  65:48  active undef running<br>
...<br>
mpathgui (3624a9370fc048517648240bb00010004) dm-5 PURE,FlashArray<br>
size=500G features='0' hwhandler='0' wp=rw<br>
`-+- policy='round-robin 0' prio=0 status=active<br>
  |- 2:0:0:6  sdaq 66:160 active undef running<br>
  |- 0:0:0:6  sday 67:32  active undef running<br>
  |- 3:0:0:4  sdd  8:48   active undef running<br>
  `- 1:0:0:4  sds  65:32  active undef running<br>
....<br>
<br>
You can see that the dm device is combining different LUN numbers under the same dm device which is obviously leading to data corruption. Some dm devices in the list do not have this problem. You can see that these should not be getting combined since their page 0x83 inquiry data is not the same:<br>

<br>
[root@r17init5 ~]# sg_inq -p 0x83 /dev/sdar<br>
VPD INQUIRY: Device Identification page<br>
  Designation descriptor number 1, descriptor length: 20<br>
    designator_type: NAA,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      NAA 6, IEEE Company_id: 0x24a937<br>
      Vendor Specific Identifier: 0xfc048517<br>
      Vendor Specific Identifier Extension: 0x648240bb00010005<br>
      [0x624a9370fc048517648240bb00010005]<br>
  Designation descriptor number 2, descriptor length: 47<br>
    designator_type: T10 vendor identification,  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor id: PURE<br>
      vendor specific: FlashArray:FC048517648240BB00010005<br>
  Designation descriptor number 3, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Relative target port,  code_set: Binary<br>
    associated with the target port<br>
      Relative target port: 0x17<br>
  Designation descriptor number 4, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Target port group,  code_set: Binary<br>
    associated with the target port<br>
      Target port group: 0x0<br>
  Designation descriptor number 5, descriptor length: 8<br>
    designator_type: Logical unit group,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      Logical unit group: 0x0<br>
  Designation descriptor number 6, descriptor length: 36<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: SCSI name string,  code_set: UTF-8<br>
    associated with the target port<br>
      SCSI name string:<br>
      naa.524a937000013316,t,0x0001<br>
  Designation descriptor number 7, descriptor length: 16<br>
    designator_type: vendor specific [0x0],  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor specific: validation4<br>
<br>
[root@r17init5 ~]# sg_inq -p 0x83 /dev/sdba<br>
VPD INQUIRY: Device Identification page<br>
  Designation descriptor number 1, descriptor length: 20<br>
    designator_type: NAA,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      NAA 6, IEEE Company_id: 0x24a937<br>
      Vendor Specific Identifier: 0xfc048517<br>
      Vendor Specific Identifier Extension: 0x648240bb00010005<br>
      [0x624a9370fc048517648240bb00010005]<br>
  Designation descriptor number 2, descriptor length: 47<br>
    designator_type: T10 vendor identification,  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor id: PURE<br>
      vendor specific: FlashArray:FC048517648240BB00010005<br>
  Designation descriptor number 3, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Relative target port,  code_set: Binary<br>
    associated with the target port<br>
      Relative target port: 0x13<br>
  Designation descriptor number 4, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Target port group,  code_set: Binary<br>
    associated with the target port<br>
      Target port group: 0x0<br>
  Designation descriptor number 5, descriptor length: 8<br>
    designator_type: Logical unit group,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      Logical unit group: 0x0<br>
  Designation descriptor number 6, descriptor length: 36<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: SCSI name string,  code_set: UTF-8<br>
    associated with the target port<br>
      SCSI name string:<br>
      naa.524a937000013312,t,0x0001<br>
  Designation descriptor number 7, descriptor length: 16<br>
    designator_type: vendor specific [0x0],  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor specific: validation4<br>
<br>
[root@r17init5 ~]# sg_inq -p 0x83 /dev/sde<br>
VPD INQUIRY: Device Identification page<br>
  Designation descriptor number 1, descriptor length: 20<br>
    designator_type: NAA,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      NAA 6, IEEE Company_id: 0x24a937<br>
      Vendor Specific Identifier: 0xfc048517<br>
      Vendor Specific Identifier Extension: 0x648240bb00010003<br>
      [0x624a9370fc048517648240bb00010003]<br>
  Designation descriptor number 2, descriptor length: 47<br>
    designator_type: T10 vendor identification,  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor id: PURE<br>
      vendor specific: FlashArray:FC048517648240BB00010003<br>
  Designation descriptor number 3, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Relative target port,  code_set: Binary<br>
    associated with the target port<br>
      Relative target port: 0x7<br>
  Designation descriptor number 4, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Target port group,  code_set: Binary<br>
    associated with the target port<br>
      Target port group: 0x0<br>
  Designation descriptor number 5, descriptor length: 8<br>
    designator_type: Logical unit group,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      Logical unit group: 0x0<br>
  Designation descriptor number 6, descriptor length: 36<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: SCSI name string,  code_set: UTF-8<br>
    associated with the target port<br>
      SCSI name string:<br>
      naa.524a937000013306,t,0x0001<br>
  Designation descriptor number 7, descriptor length: 16<br>
    designator_type: vendor specific [0x0],  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor specific: validation2<br>
<br>
[root@r17init5 ~]# sg_inq -p 0x83 /dev/sdt<br>
VPD INQUIRY: Device Identification page<br>
  Designation descriptor number 1, descriptor length: 20<br>
    designator_type: NAA,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      NAA 6, IEEE Company_id: 0x24a937<br>
      Vendor Specific Identifier: 0xfc048517<br>
      Vendor Specific Identifier Extension: 0x648240bb00010003<br>
      [0x624a9370fc048517648240bb00010003]<br>
  Designation descriptor number 2, descriptor length: 47<br>
    designator_type: T10 vendor identification,  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor id: PURE<br>
      vendor specific: FlashArray:FC048517648240BB00010003<br>
  Designation descriptor number 3, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Relative target port,  code_set: Binary<br>
    associated with the target port<br>
      Relative target port: 0x3<br>
  Designation descriptor number 4, descriptor length: 8<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: Target port group,  code_set: Binary<br>
    associated with the target port<br>
      Target port group: 0x0<br>
  Designation descriptor number 5, descriptor length: 8<br>
    designator_type: Logical unit group,  code_set: Binary<br>
    associated with the addressed logical unit<br>
      Logical unit group: 0x0<br>
  Designation descriptor number 6, descriptor length: 36<br>
    transport: Fibre Channel Protocol for SCSI (FCP-2)<br>
    designator_type: SCSI name string,  code_set: UTF-8<br>
    associated with the target port<br>
      SCSI name string:<br>
      naa.524a937000013302,t,0x0001<br>
  Designation descriptor number 7, descriptor length: 16<br>
    designator_type: vendor specific [0x0],  code_set: ASCII<br>
    associated with the addressed logical unit<br>
      vendor specific: validation2<br>
<br>
So the first two have 0x624a9370fc048517648240bb00010005 and the second two have the 0x624a9370fc048517648240bb00010003. Is there some caching here that causes this? What could get us here?<br>
<br>
I have the server in the state currently so if there is any further output that would help figure out what happened here then let me know.<br>
<br>
Thanks,<br>
Brian<br>
<br>
Brian Bunker<br>
<a href="mailto:brian@purestorage.com">brian@purestorage.com</a><br>
<br>
<br>
<br>
<br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</blockquote></div><br></div>