add a module option using cli tool.

crashpb

Cadet
Joined
Jul 1, 2022
Messages
3
what is the proper way to add a load option to modules in scale?
so I've been looking around but couldn't find a proper way to add a load option to a module (hpsa in my instance), ie via CLI; cause using standard Debian method (add arg in modprobe.d then regenerate initramfs) doesn't seem to work for me.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
So, I think you are looking to add a iSCSI driver for the HP Smart Array?

You might want to describe what you are doing and why.... it might be a developer-type question for the discord channel.
 

crashpb

Cadet
Joined
Jul 1, 2022
Messages
3
there is a method to use some old hp smart array raid cards in hba mode however for the system to see drives in HBA mode kernel (hpsa driver) needs some patches . (more info here hpsahba )

I am compiling truenas scale with the said patches pre applied, how ever I need to load hpsa driver with an option for the changes to come to effect, typical debian method seems to not work properly.

basically I want equivalent of doing the below code done via cli :


Code:
echo "options hpsa hpsa_use_nvram_hba_flag=1" > /etc/modprobe.d/hpsa.co
update-initramfs -u
 
Top