Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change QLogic adapter parameter with ramdisk methode under SUSE Linux

Status
Not open for further replies.

raylin

MIS
Jun 7, 2001
177
CH
1) difference between insmod/modprobe and ramdisk image
2) how to change the QLogic adapter parameter persistently over reboot
3) how to display what parameter values are set
 
1) Not much, assuming the modules are the same version in each place. The ramdisk image contains the modules you want loaded at boot time (i.e. before the kernel is booted). The modprobe method allows the modules to be loaded after the kernel has booted.

2) Two ways: Create an initrd image with the correct params or edit the load params.

Edit [blue]/etc/modprobe.conf.local[/blue] and add the following lines.
[tt]alias <alias_name> <module>[/tt]
[tt]options <alias_name> <options>[/tt]
Don't edit /etc/modprobe.conf or you may loose your changes on your next update.
Reload module. All done.

If you need the initrd image, mkinitrd. Type 'man mkinitrd' for usage.

3) Don't know. The only way I know for sure which params are passed is outlined above. 'dmesg | grep <module>' may aid is seeing what params are passed.


Have Fun!

 
recapitulation to see if I understand it correctly
variant ramdisk :

- edit /etc/sysconfig/kernel file :

INITRD_MODULES="ata_piix aacraid qla2xxx_conf qla2xxx qla2400 processor thermal fan jbd ext3 edd"

- edit /etc/modprobe.conf.local with the desired options

- mk_initrd


variant after kernel boot :

- edit /etc/modprobe.conf.local with the desired adapter options

in this case will the module be loaded automatically with the entries and params in /etc/modprobe.conf.local ?

/etc/modprobe.conf.local :

options qla2xxx
ql2xfailover=0
qlport_down_retry=1

install qla2xxx /sbin/modprobe qla2xxx_conf; /sbin/modprobe --ignore-install qla2xxx
remove qla2xxx /sbin/modprobe -r --first-time --ignore-remove qla2xxx && { /sbin/modprobe -r --ignore-remove qla2xxx_conf; }

 
Essentially, yes. Make sure the options are specified on one line like so.

[tt]options qla2xxx ql2xfailover=0 qlport_down_retry=1[/tt]

I think your good to go.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top