How to check and confirm whether a module option has been applied?
Issue
- What command can be used to verify that module parameters are currently applied?
- For example, the qla2xxx module is loaded into the kernel :
[root@host ~]# lsmod |grep qla2xxx
qla2xxx 1019552 235
qla2xxx_conf 310408 1
scsi_mod 152465 7 sg,sr_mod,qla2xxx,libata,megaraid_sas,usb_storage,sd_mod
[root@host ~]#
- In modprobe.conf :
[root@host ~]# grep options /etc/modprobe.conf|grep -v bond0
options qla2xxx qlport_down_retry=1 ql2xfailover=0 ConfigRequired=0
- Question on module options
- As you know, kernel driver modules can often be loaded with some options being specified. An obvious case is the bonding driver but it’s true for many other drivers as well.
- One thing I don’t seem to be able to find out is what options/parameters a module has been loaded with. We can always look in the appropriate module options file under /etc/modprobe.d but there’s no guarantee that the file hasn’t been edited after the module was loaded.
- Is there any way to interrogate the system to find out what values of the various options are in force?
Environment
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Qlogic HBA
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
