[solved] How to pass parameters to kernel (for NFS lockd)
Posted: 08 Jun 2012, 14:44
Hello all.
On my Bubba 2, I would like to run NFS (starting with a simple setup, using NFSv3). At the same time, I would like to use a tight firewall (default deny, only specified ports opened). Therefore the rpc.* daemons need to be informed about the ports that are to be used. The settings can be checked "rpcinfo -p":
In here, rpc.mountd uses port 15002, rpc.statd uses port 15000. But how do I tell rpc.lockd (=> nlockmgr) which port to use? According to the NFS howto on the net (nfs.sourceforge.net): "lockd is started by the kernel when it is needed." Using either module parameters if loaded as module; or using kernel boot parameters if compiled into the kernel. On my B2 it is compiled into the kernel ("CONFIG_LOCKD=y" in /proc/config.gz).
So, how can I give according parameters (lockd.udpport=15004 lockd.tcpport=15004) to the kernel booted on my B2?
Thank you & Best regards
Manfred
On my Bubba 2, I would like to run NFS (starting with a simple setup, using NFSv3). At the same time, I would like to use a tight firewall (default deny, only specified ports opened). Therefore the rpc.* daemons need to be informed about the ports that are to be used. The settings can be checked "rpcinfo -p":
Code: Select all
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 15000 status
100024 1 tcp 15000 status
100021 1 udp 59036 nlockmgr
100021 3 udp 59036 nlockmgr
100021 4 udp 59036 nlockmgr
100021 1 tcp 60598 nlockmgr
100021 3 tcp 60598 nlockmgr
100021 4 tcp 60598 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100005 1 udp 15002 mountd
100005 1 tcp 15002 mountd
100005 2 udp 15002 mountd
100005 2 tcp 15002 mountd
100005 3 udp 15002 mountd
100005 3 tcp 15002 mountd
So, how can I give according parameters (lockd.udpport=15004 lockd.tcpport=15004) to the kernel booted on my B2?
Thank you & Best regards
Manfred