Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163210 - net-fs/autofs should have an nfs-useflag or depend on nfs-utils
Summary: net-fs/autofs should have an nfs-useflag or depend on nfs-utils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
: 380909 (view as bug list)
Depends on: 346537
Blocks:
  Show dependency tree
 
Reported: 2007-01-22 09:51 UTC by Kai Krakow
Modified: 2011-09-14 17:54 UTC (History)
5 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 Kai Krakow 2007-01-22 09:51:56 UTC
I reinstalled my desktop workstation to replace my Windows/SuSE installation and use autofs to mount home dirs dynamically from my server. But KDE startup took half an hour, dmesg should that statd could not be reached and lockd cannot be reached due to timeout. But rpcinfo showed statd running. It took me two days to figure out that I needed to also install nfs-utils (which installs rpc.statd on the client) and add it to the runlevel.

So I suggest that the autofs ebuild includes a useflag "nfs" to depend on nfs-utils and modify the init script to depend on the nfsmount service (probably only if the auto maps include nfs mappings).

That would be nice.

Reproducible: Always

Steps to Reproduce:
1. Compile client and server with kernel nfs support
2. Install nfs-utils on the server to export /home as nfs share
3. Install autofs on the client to import the home share
4. Start KDE or another software that uses file locking on the share

Actual Results:  
Accesses to the server rpc.lockd time out because there is no local rpc.statd running. This makes the KDE startup take half an hour or more with almost no application running correctly.

Expected Results:  
KDE (or other software using file locking) should work as expected: fast startup similar to local home directories.
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:40:08 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-04 22:37:18 UTC
I guess the problem you state is the reason the init-script contains "use nfs".  I however do not think it's autofs's responsibility to make sure all necessary mounting mechanisms are installed and loaded (therefore I don't think the nfs USE-flag would be a particularly good idea).  
Maybe it would be useful to extend the warning associated with the ebuild.  It currently only says that portmap needs to be running for nfs mounts, but I guess that is not sufficient?
Comment 3 Kai Krakow 2008-02-07 11:26:11 UTC
(In reply to comment #2)
> Maybe it would be useful to extend the warning associated with the ebuild.  It
> currently only says that portmap needs to be running for nfs mounts, but I
> guess that is not sufficient?

I suppose that would be sufficient. 

Comment 4 Peter Volkov (RETIRED) gentoo-dev 2011-04-02 10:35:40 UTC
Actually this issue is very well documented in nfs howto ( http://tldp.org/HOWTO/NFS-HOWTO/client.html ):

"To begin using machine as an NFS client, you will need the portmapper running on that machine, and to use NFS file locking, you will also need rpc.statd and rpc.lockd running on both the client and the server."

Thus here is nothing autofs specific. But yea, we'll expand elog message to mention this issue with next bump that will happen pretty soon.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2011-04-03 09:51:30 UTC
elog updated in 5.0.5-r1. Fixed.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2011-09-14 17:54:07 UTC
*** Bug 380909 has been marked as a duplicate of this bug. ***