Hot-swap problem on Supermicro backplane

Troubleshooting

I've encountered an issue that I don't know how to troubleshoot, and have come here (what I suspect to be the highest concentration of Supermicro 846 owners on the internet) in the hope that one of you has seen something similar. When I try to connect a new drive to my Supermicro BPN-SAS2-846EL2, it spins up but does not appear to actually connect to anything. I see the following in dmesg on my Openmediavault 6 system:

[  756.914588] mpt2sas_cm0: handle(0x45) sas_address(0x5003048001215814) port_type(0x1)
[  757.461716] mpt2sas_cm0: log_info(0x31110101): originator(PL), code(0x11), sub_code(0x0101)
[  757.529208] mpt2sas_cm0: log_info(0x31110101): originator(PL), code(0x11), sub_code(0x0101)
[  757.597212] mpt2sas_cm0: log_info(0x31110101): originator(PL), code(0x11), sub_code(0x0101)
[  757.721305] mpt2sas_cm0: log_info(0x31110101): originator(PL), code(0x11), sub_code(0x0101)
[  757.721436]  end_device-0:5:24: add: handle(0x0045), sas_addr(0x5003048001215814)
[  757.721901] mpt2sas_cm0: mpt3sas_transport_port_remove: removed: sas_addr(0x5003048001215814)
[  757.721908] mpt2sas_cm0: removing handle(0x0045), sas_addr(0x5003048001215814)
[  757.721912] mpt2sas_cm0: enclosure logical id(0x500304800121583f), slot(8)

In contrast, this is when a drive is properly detected:

[101052.228678] mpt2sas_cm0: handle(0x2e) sas_address(0x500304800121580e) port_type(0x1)
[101053.231518] scsi 0:0:59:0: Direct-Access     ATA      ST18000NE000-3G6 EN01 PQ: 0 ANSI: 6
[101053.231544] scsi 0:0:59:0: SATA: handle(0x002e), sas_addr(0x500304800121580e), phy(14), device_name(0x0000000000000000)
[101053.231549] scsi 0:0:59:0: enclosure logical id (0x500304800121583f), slot(2) 
[101053.231642] scsi 0:0:59:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[101053.231647] scsi 0:0:59:0: qdepth(32), tagged(1), scsi_level(7), cmd_que(1)
[101053.239770] sd 0:0:59:0: Power-on or device reset occurred
[101053.240360] sd 0:0:59:0: [sdab] 35156656128 512-byte logical blocks: (18.0 TB/16.4 TiB)
[101053.240366] sd 0:0:59:0: [sdab] 4096-byte physical blocks
[101053.241381] sd 0:0:59:0: [sdab] Write Protect is off
[101053.241384] sd 0:0:59:0: [sdab] Mode Sense: 7f 00 10 08
[101053.242361] sd 0:0:59:0: [sdab] Write cache: enabled, read cache: enabled, supports DPO and FUA
[101053.257517] sd 0:0:59:0: Attached scsi generic sg30 type 0
[101053.257627]  end_device-0:5:29: add: handle(0x002e), sas_addr(0x500304800121580e)
[101053.318871] sd 0:0:59:0: [sdab] Attached SCSI disk

It would seem that the drive is being detected, but immediately dropped by mpt2sas. The error code, according to this post, relates to a timeout:

Value           31110101h
Type:           30000000h       SAS
Origin:         01000000h       PL
Code:           00110000h       PL_LOGINFO_CODE_RESET See Sub-Codes below (PL_LOGINFO_SUB_CODE)
Sub Code:       00000100h       PL_LOGINFO_SUB_CODE_OPEN_FAILURE
SubSub Code:    00000001h       PL_LOGINFO_SUB_CODE_OPEN_FAILURE_NO_DEST_TIMEOUT

This error allegedly means "Failed to open connection with error Open Reject (No Destination). Retried for 50milliseconds" but I have yet to track down the 2009 LSI PDF referenced. The solution to the user's problem in that post doesn't work in my situation as the /dev/sdX device is never created and so I cannot adjust its timeout.

I first noticed this when I tried to add a new Seagate Ironwolf Pro 18TB, and thought this could be some 3.3V pin weirdness. But the backplane is powered by only molex connectors which don't provide 3.3V, and I've now confirmed this issue affects known working drives - if I pull a working drive from one slot and insert it into an affected slot, it fails to connect.

After playing musical hard drives I've confirmed this appears to affects every slot in one of my BPN-SAS2-846EL2. I have two chassis, both 847s, with one having the 2U rear motherboard tray. All backplanes are connected via dual links cascading from a single LSI2008-based controller, the 9207-8i. Testing these drives on all other backplanes results in the expected recognition of the drive - because of this I suspect the problem is with the backplane, not the controller. I'll need to confirm the cabling to see if this is the first backplane in sequence, in case that makes a difference, but from memory it goes HBA=826EL2=846EL2=(external)=847EL2=846EL2.

But it gets weirder: after playing around with rebooting I noticed that drives which are connected at the time the backplane powers on are recognized and their slots can be hot-swapped as usual; any empty slot at power-up does not allow hot-swapping. Merely rebooting the server is not enough: it has to power down and then back on, which I suspect is necessary to perform a power cycle of the backplane. Because of this, and that it affects multiple slots across different rows and columns, I'm fairly confident this isn't an issue with the power supplies or molex connectors.

Poking around with lsiutil doesn't reveal any obviously useful options - expert mode lists an option for accessing the SAS Expander UART Console but I'm unfamiliar with that and google has been of no help. This console also shows nothing when I plug or unplug a drive. Making things more challenging is I'm unsure when the problem began - I can't recall a time I ran this backplane without all the bays populated until now, so it's entirely possible this behavior has been present since I got it on eBay a few years ago. I have also just made some hardware changes, adding the second 847 chassis and so shuffled drives around, flashing the HBA firmware to 20.00.07.00 from 16.00.01.00, and upgrading from OMV 5 to 6 a few months ago. I have tried rolling back the linux kernel from 6.0.0 to 5.19.0 (the linux-image deb I had cached) to no avail.

That the backplane otherwise works, and that no other backplane I have exhibit this behavior, almost makes it seem like some kind of setting needs to be changed. I was under the impression these expanders don't have "settings" that can be changed. A quick review of the backplane manual lists a few jumpers described as "factory setting, do not change" or "debug, for Supermicro internal use only" - I'll need to take things apart to confirm jumper positions on my two 846 backplanes but have no idea if these could be impacting it.

So after this wall of text I have a few questions:

  • Has anyone seen this behavior before?
  • How do you go about debugging problems with a Supermicro backplane?
  • Do backplanes have "settings"?
  • What do these jumpers do?
  • What else should I be checking?

My next steps I think are to disconnect the other backplanes in case there's some weirdness with cascading them, and perhaps try a bootable ISO of another distro to see if it is also affected.

Thanks in advance for any advice.

UPDATE: comparing jumpers, I found PRI_MODE2 in a different position: the working backplane has this across pins 2 and 3, the default position according to the manual, however on the affected backplane it was incorrectly install half way on pin 3 only. Moving to pins 2 and 3 had no effect.

UPDATE 2: removing the external link to the second chassis and connecting only a single drive had no effect.

UPDATE 3: connecting only the affected backplane to the HBA and inserting only a single drive works?! Progress, but a confusing result.

FINAL UPDATE: It's working now. Either I fixed it, or more likely the gremlins have moved on to harass someone else (my apologies in advance). While playing around with cabling, I confirmed that the affected backplane is connected through the 826EL2 in the rear of the case, and that cascading by only a single link from the primary expander port resulted in the affected backplane not being detected. I was able to confirm the cable worked, and re-seating it didn't appear to have any effect. I confirmed the primary expander's input on the affected backplane worked when connected to the HBA directly, so suspected a problem with the primary expander output port on the 826EL2 backplane. Connecting the primary expander on the affected backplane through the secondary expander on the 826EL2 didn't work (still confused about this, a new error message I forgot to write down). However a second attempt at re-seating the cable between the primary expander output on the 826EL2 and the primary expander input on the affected backplane (after some compressed air for good measure) has made the problem go away.

How I'm rationalizing this is that because I had all the backplanes cascading via dual links, a bad connection between the primary expander of the first and second backplane had no impact on the third and fourth backplanes as they would simply reroute through the secondary expander instead. However because I'm using SATA drives, which only connect to one expander, drives on the affected backplane would be unable to reroute through the secondary expander on the affected backplane to reach the HBA. I'm still unsure why, if connected at power-up, drives on the affected backplane were accessible, unless maybe the backplane was smart enough to select a working route for these at power-up, but drives inserted into new bays after power-up would default to the primary expander.

So tl;dr it was either a bad connection between the primary expander on the first and second backplanes, or gremlins.

Posted Jan 7, 2023, 8:12 PM UTC · edited

30

No comments yet

Nobody commented on this post, or the comments weren't captured.