Comment 0 for bug 567591

Revision history for this message
Aurélien Begel (pcrider-gmail) wrote :

On my desktop computer, (which has separate volumes for /, /usr, /var, /tmp,etc.) statd fail to start, and then autofs later fails to mount NFS volumes.
This problem does not appear on my laptop computer that only has one volume for the whole filesystem, so I think that is a race condition between statd starting and /usr mounting. Indeed, reading /etc/init/statd.conf I can see that statd is ran after portmap. Portmap can start only with / mounted, because it is located in /sbin, however statd is located in /usr and so we have to wait for /usr to be mounted.

I suggest the following fix:
in /etc/init/statd.conf, replace "start on" clause (line 6) with:

start on ((started portmap and local-filesystems) or mounting TYPE=nfs)

(was: start on (started portmap or mounting TYPE=nfs)

On my computer this fixes the issue, nevertheless I am not sure whether this will suit all cases.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nfs-common 1:1.2.0-4ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed Apr 21 00:52:06 2010
ProcEnviron:
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: nfs-utils