Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127311 - Add a /etc/conf.d file for nfsmount to pass options to rpc.statd
Summary: Add a /etc/conf.d file for nfsmount to pass options to rpc.statd
Status: RESOLVED DUPLICATE of bug 60362
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-23 07:22 UTC by Thomas Cort (RETIRED)
Modified: 2006-03-23 08:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Cort (RETIRED) gentoo-dev 2006-03-23 07:22:26 UTC
Please add /etc/conf.d/nfsmount and modify /etc/init.d/nfsmount to allow for the configuration of rpc.statd commandline options.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 07:35:45 UTC
cat /etc/conf.d/nfs

# /etc/conf.d/nfs

# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf

# Number of servers to be started up by default
RPCNFSDCOUNT=8

# Options to pass to rpc.mountd
# ex. RPCMOUNTDOPTS="-p 32767
RPCMOUNTDOPTS=""

# Options to pass to rpc.statd
# ex. RPCSTATDOPTS="-p 32765 -o 32766"
RPCSTATDOPTS="" <------- HERE!

# Options to pass to rpc.idmapd
RPCIDMAPDOPTS=""

# Options to pass to rpc.gssd
RPCGSSDOPTS=""

# Options to pass to rpc.svcgssd
RPCSVCGSSDOPTS=""

# Timeout (in seconds) for exportfs
EXPORTFSTIMEOUT=30
Comment 2 Thomas Cort (RETIRED) gentoo-dev 2006-03-23 07:37:52 UTC
This bug is about /etc/init.d/nfsmount not /etc/init.d/nfs.
/etc/init.d/nfsmount doesn't use /etc/conf.d/nfs.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 07:43:41 UTC
(In reply to comment #2)
> This bug is about /etc/init.d/nfsmount not /etc/init.d/nfs.
> /etc/init.d/nfsmount doesn't use /etc/conf.d/nfs.

Could you explain what kind of options are you going to pass to nfsmount? It's client, there's exactly nothing you could do w/ the NFS server deamons configuration from the client side. 
Comment 4 Thomas Cort (RETIRED) gentoo-dev 2006-03-23 07:50:29 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This bug is about /etc/init.d/nfsmount not /etc/init.d/nfs.
> > /etc/init.d/nfsmount doesn't use /etc/conf.d/nfs.
> 
> Could you explain what kind of options are you going to pass to nfsmount? It's
> client, there's exactly nothing you could do w/ the NFS server deamons
> configuration from the client side. 

I have diskless clients, and on each client /var/lib/nfs is read-only while /var/local/lib/nfs is read-write. I want to configure rpc.statd (which is started in /etc/init.d/nfsmount) on the client to use a non-default state directory path. This involves passing the "-P /var/local/lib/nfs" option to rpc.statd.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 08:03:01 UTC
Well, I don't see why you need nfsmount for this. Honestly - I don't see why we to install this script at all...

All I need for 100% working mount of NFS exported directories on the client side is this line:

www.example.com:/usr/local/overlays      /mnt/nfs/overlays          nfs     auto,user,ro,nolock,tcp,hard,intr,nfsvers=3      0 0

and NFS support in kernel.

No nfs-mount run in any runlevel, no rcp* daemons running on client, portmap not running on client, nothing... That all with (properly set up) firewalls on both sides. So, I'd say we should kinda revisit this needless cruft.
Comment 6 Thomas Cort (RETIRED) gentoo-dev 2006-03-23 08:17:06 UTC
(In reply to comment #5)
> No nfs-mount run in any runlevel, no rcp* daemons running on client, portmap
> not running on client, nothing... That all with (properly set up) firewalls on
> both sides. So, I'd say we should kinda revisit this needless cruft.

In the setup here, a user has a home directory that gets automatically mounted when he/she logs in, and it gets automatically unmounted when he/she logs out.

The server's /etc/exports looks like this...
/diskless 10.1.32.0/24(ro,async,no_root_squash)
/home/user0 10.1.32.0/24(rw,root_squash,sync)
/home/user1 10.1.32.0/24(rw,root_squash,sync)
...

The clients need rpc.statd running to do file locking. For instance, openoffice.org and eclipse need to lock files in the user's home directory.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 08:27:21 UTC
(In reply to comment #6)
> The clients need rpc.statd running to do file locking. For instance,
> openoffice.org and eclipse need to lock files in the user's home directory.

Oo.org crashes badly w/ NFS here, locks or not - apparently OO.org bug I'd say. :)

I don't need locks for anything else, so I just got rid of the locks and the daemons bloat as described above (there's a small mod needed in /etc/init.d/netmount so that netmount doesn't check for for portmap w/ nfs mounts). That's it. 

I see there can be legitimate need for such stuff, but it should IMHO be optional. With a bit of tweaking and proper setup, there's no need to run all those daemons for a lot of people (I especially hate the portmap thing). netmount init script does the job quite nicely. Just my 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 08:27:21 UTC
(In reply to comment #6)
> The clients need rpc.statd running to do file locking. For instance,
> openoffice.org and eclipse need to lock files in the user's home directory.

Oo.org crashes badly w/ NFS here, locks or not - apparently OO.org bug I'd say. :)

I don't need locks for anything else, so I just got rid of the locks and the daemons bloat as described above (there's a small mod needed in /etc/init.d/netmount so that netmount doesn't check for for portmap w/ nfs mounts). That's it. 

I see there can be legitimate need for such stuff, but it should IMHO be optional. With a bit of tweaking and proper setup, there's no need to run all those daemons for a lot of people (I especially hate the portmap thing). netmount init script does the job quite nicely. Just my  0.02 :)
Comment 9 SpanKY gentoo-dev 2006-03-23 08:30:13 UTC

*** This bug has been marked as a duplicate of 60362 ***