Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Linux: passing parameters to kernel modules Post 302601610 by funksen on Friday 24th of February 2012 08:28:25 AM
Old 02-24-2012
Linux: passing parameters to kernel modules

Hi,

I need to set qlogic qla2xxx parameters in /etc/modprobe.conf
(Oracle Linux Server release 5.7, almost equal to RedHat 5.7)


two questions:
how can I pass this parameters to the module while it is loaded (fibre channel luns are in use), if possible at all

and how can I check the current used parameters by this module (modinfo shows me the possible values, but not the actual)

thanks in advance
cheers funksen

---------- Post updated at 14:28 ---------- Previous update was at 10:43 ----------

ok the second issue is solved I guess:

Code:
cd /sys/module/qla2xxx/parameters
# ls -l
total 0
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xallocfwdump
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xasynctmfenable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xdbwr
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xdontresethba
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xenabledif
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xenablehba_err_chk
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xetsenable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xextended_error_logging
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xfdmienable
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xfwloadbin
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xgffidenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xiidmaenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xloginretrycount
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xlogintimeout
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxlun
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxqdepth
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmaxqueues
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmdcapmask
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmdenable
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xmultique_tag
-rw-r--r-- 1 root root 4096 Feb 24 11:10 ql2xplogiabsentdevice
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xshiftctondsd
-r--r--r-- 1 root root 4096 Feb 24 11:10 ql2xtargetreset
-r--r--r-- 1 root root 4096 Feb 24 11:10 qlport_down_retry

I set the parameter qlport_down_retry in /etc/modprobe.conf to 14

Code:
# cat qlport_down_retry
64

the whole system has been rebootet, but the new value is not being used by the module

in /etc/modprobe.conf:
Code:
options qla2xxx ql2xmaxqdepth=16 ql2xloginretrycount=30 qlport_down_retry=14

 

10 More Discussions You Might Find Interesting

1. HP-UX

Information about kernel modules

Hi all, what do kernel modules libaudit, klog and strlog do? Specifically I want to determine if it was possible for us to determine if kernel level auditing is enabled at all? regards (0 Replies)
Discussion started by: slash_blog
0 Replies

2. UNIX for Dummies Questions & Answers

Linux kernel module parameters

Hi, Does anyone know if it is possible to know the current value of a kernel module parameters after the module is loaded. Are the values of the parameters advertised at some /proc or /sys location ? The only thing I know is modinfo, that actually looks a the module .ko and gives a... (3 Replies)
Discussion started by: macL
3 Replies

3. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

4. UNIX for Advanced & Expert Users

Kernel Modules Not geting built

I installed in VM the Mandriva Linux with 2.6.27 kernel. But presently when I fire make the modules .ko does not get built. I get the following output on firing command in the kernel module folder. $ make Building first_driver.c ... make: Entering directory... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

5. Programming

Debugging Linux Kernel Modules

I am aware of debugging linux applications using gdb and ddd. Now I have written a simple kernel module having init_module, exit _module and some functions for tasklets and workqueues. I want to debug these kernel modules like I used to debug applications setting breakpoints etc. How can I debug... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

6. UNIX for Dummies Questions & Answers

Linux kernel modules makefiles doubts

This query is regarding the makefiles of linux kernel modules. I saw at some sites on net it is suggesting to include the following path: KERNEL_SOURCE := /usr/src/linux... while at some places it is askibg to include /lib/modules path: KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

7. Red Hat

Kernel parameters problem in Linux

please tell me the list of kernel parameters in RHEL 5.7 Because we've a requirement in one project. Also tell me the importance of eah kernel parameter if possible. ==Thanks in Advance==:):D (1 Reply)
Discussion started by: vamshigvk475
1 Replies

8. Hardware

Linux Kernel Modules

Hey everyone. I have a question, doing an lsmod gives me a list of all the loaded modules for my system. But how did they know to load? my /etc/modules files is empty, so how did these modules know to load themselves on boot time? If I were to take this hard drive to another computer with a... (6 Replies)
Discussion started by: Lost in Cyberia
6 Replies

9. Linux

Disable loading kernel modules

Hi, I am running CentOS 6.5 and I want to remove auto loading 8021q and garp modules, but there are no configure files in /etc/modprobe.d define bot modules. I even added both module names to /etc/modprobe.d/blacklist.conf, both of them are still loaded after the reboot. How can I disable... (2 Replies)
Discussion started by: hce
2 Replies

10. UNIX for Beginners Questions & Answers

Missing Modules After Compiling Kernel

I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files: linux-headers-5.1.9_5.1.9-1_amd64.deb linux-image-5.1.9_5.1.9-1_amd64.deb linux-libc-dev_5.1.9-1_amd64.deb When I first booted into this... (4 Replies)
Discussion started by: Azrael
4 Replies
PIVOT_ROOT(8)						       Maintenance Commands						     PIVOT_ROOT(8)

NAME
pivot_root - change the root file system SYNOPSIS
pivot_root new_root put_old DESCRIPTION
pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. Since pivot_root(8) simply calls pivot_root(2), we refer to the man page of the latter for further details. Note that, depending on the implementation of pivot_root, root and cwd of the caller may or may not change. The following is a sequence for invoking pivot_root that works in either case, assuming that pivot_root and chroot are in the current PATH: cd new_root pivot_root . put_old exec chroot . command Note that chroot must be available under the old root and under the new root, because pivot_root may or may not have implicitly changed the root directory of the shell. Note that exec chroot changes the running executable, which is necessary if the old root directory should be unmounted afterwards. Also note that standard input, output, and error may still point to a device on the old root file system, keeping it busy. They can easily be changed when invoking chroot (see below; note the absence of leading slashes to make it work whether pivot_root has changed the shell's root or not). EXAMPLES
Change the root file system to /dev/hda1 from an interactive shell: mount /dev/hda1 /new-root cd /new-root pivot_root . old-root exec chroot . sh <dev/console >dev/console 2>&1 umount /old-root Mount the new root file system over NFS from 10.0.0.1:/my_root and run init: ifconfig lo 127.0.0.1 up # for portmap # configure Ethernet or such portmap # for lockd (implicitly started by mount) mount -o ro 10.0.0.1:/my_root /mnt killall portmap # portmap keeps old root busy cd /mnt pivot_root . old_root exec chroot . sh -c 'umount /old_root; exec /sbin/init' <dev/console >dev/console 2>&1 SEE ALSO
chroot(1), mount(8), pivot_root(2), umount(8) Linux Feb 23, 2000 PIVOT_ROOT(8)
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy