OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: ejprice on July 08, 2022, 06:34:25 PM

Title: How to switch HBA driver?
Post by: ejprice on July 08, 2022, 06:34:25 PM
Greetings everyone!

We're running OpnSense on a Dell T340 with a PERC H730 controller. OpenSense is giving some hardware errors with the mfi driver.

mfi0: I/O error, cmd=0xfffffe00d9307540, status=0x3c, scsi_status=0
mfi0: sense error 0, sense_key 0, asc 0, ascq 0


On the 21.7, fixing it was as simple as adding mrsas_load="YES" to the /boot/loader.conf.local file and that resolved the issue.

The file still exists on the system after a command line upgrade to 22.1 - HOWEVER, FreeBSD/OpnSense is back to loading the mfi driver, causing the above error.

mfisyspd1 on mfi0
mfisyspd1: 457862MB (937703088 sectors) SYSPD volume (deviceid: 1)
mfisyspd1:  SYSPD volume attached
mfi0: 9143726 (boot + 28s/0x0002/info) - Inserted: PD 20(c None/p1) Info: enclPd=20, scsiType=d, portMap=00, sasAddr=53cea0f09900f200,0000000000000000
mfi0: 9143727 (boot + 28s/0x0002/info) - Inserted: PD 00(e0x20/s0)
mfi0: 9143728 (boot + 28s/0x0002/info) - Inserted: PD 00(e0x20/s0) Info: enclPd=20, scsiType=0, portMap=00, sasAddr=4433221106000000,0000000000000000
mfi0: 9143729 (boot + 28s/0x0002/info) - Inserted: PD 01(e0x20/s1)
mfi0: 9143730 (boot + 28s/0x0002/info) - Inserted: PD 01(e0x20/s1) Info: enclPd=20, scsiType=0, portMap=01, sasAddr=4433221107000000,0000000000000000
mfi0: 9143731 (boot + 28s/0x0020/info) - Controller operating temperature within normal range, full operation restored
mfi0: 9143732 (710612434s/0x0020/info) - Time established as 07/08/22 16:20:34; (28 seconds since power on)
mfi0: 9143733 (710612471s/0x0020/info) - Host driver is loaded and operational
Trying to mount root from zfs:zroot/ROOT/default []...



Does anyone know how to force the loading of the mrsas driver over the mfi driver?

Thanks in advance!