SAS - Need to implement Kernel Workaround

Rubikz91

Cadet
Joined
May 18, 2023
Messages
1
I am unable to use my LSI 9200-8E with TrueNas Scale v22.12.1

I've done some troubleshooting (see below) and am pretty certain the issue lies with a bug in the kernel (it appears others have the same issue). The solution I've found online is to add mpt3sas.max_queue_depth=10000 as a kernel parameter in the grub file. From what I have gathered, the way to do this would be to open shell and run the command:
Code:
midclt call system.advanced.update '{ "GRUB_CMDLINE_LINUX_DEFAULT="mpt3sas.max_queue_depth=10000" }'


Unfortunately this does not work, and yields the response:
Code:
[EINVAL] system_advanced_update: A dict was expected


I am pretty novice and am guessing I am entering the command incorrectly, or using the wrong command. Any ideas?
Being such a novice, if you have a solution, could you please break it down for me?

Troubleshooting done so far:
-Ensure the LSI 9200-8E is on the latest IT mode firmware (v20).
-Ensure that the card detects the HDDs attached to it in the SAS bios.
-Ensure that TrueNas Scale sees the LSI 9200-8E via shell command: "lspci | grep LSI", which yields output:
Code:
01:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03)

-See that no Kernel driver is in use via the shell command: "lspci -s 01:00.0 -vv | more". After running this, at the bottom, I should see "Kernel driver in use", but that is missing entirely.
-See the messages related to attempting to load the driver via shell command: "dmesg | grep mpt", which yields output:
Code:
[    0.017266]   Device   empty
[    0.219107] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[    4.440353] mpt3sas version 39.100.00.00 loaded
[    4.441057] mpt3sas 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[    4.444066] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (16316120 kB)
[    4.444360] mpt2sas_cm0: sending diag reset !!
[    4.611703] mpt2sas_cm0: Invalid host diagnostic register value
[    4.611827] mpt2sas_cm0: System Register set:
[    4.618188] mpt2sas_cm0: diag reset: FAILED
[    4.618686] mpt2sas_cm0: failure at drivers/scsi/mpt3sas/mpt3sas_scsih.c:12336/_scsih_probe()!


Any help is GREATLY appreciated. Thank you!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I suspect what you're trying to edit isn't a CMDLINE DEFAULT and is perhaps rather a sys module parameter:

Something like this might be where to look:
echo SIZE_IN_BYTES >> /sys/module/...


You can just cd into /sys/module and look around and use cat /sys/module/... to see the current value if there is one.

On a separate note, I don't feel like you should really need to be messing with anything to use a perfectly standard card which has no doubt been tested to work already.
 
Top