NFS mounts in /etc/fstab fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have a bunch of NFS mounts in fstab on some of my webservers. These mount perfectly well if done manually after the boot, but if I do them automatically at boot time, they cause the server to fail to boot properly.
If I comment them out of fstab, then the server reboots successfully every time.
I've tried hostnames and IP addresses in /etc/fstab, but neither work.
Example fstab entry:
10.0.41.
I'm using static networking in /etc/network/
auto eth0
iface eth0 inet static
address 10.0.41.17
netmask 255.255.255.0
network 10.0.41.0
broadcast 10.0.41.255
gateway 10.0.41.1
dns-search int.xxxxxxx.co.uk
The dmesg log looks as follows: (I've pruned out most of the boot messages)
[ 1.257789] udevd[81]: starting version 175
Begin: Loading essential drivers ... done.
Begin: Running /scripts/
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
[ 1.404157] Refined TSC clocksource calibration: 2593.390 MHz.
[ 1.424141] usb 1-1: new full-speed USB device number 2 using uhci_hcd
Begin: Running /scripts/
[ 1.653148] EXT4-fs (vda1): INFO: recovery required on readonly filesystem
[ 1.656874] EXT4-fs (vda1): write access will be enabled during recovery
[ 1.734688] FDC 0 is a S82078B
[ 1.817756] EXT4-fs (vda1): recovery complete
[ 1.822182] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/
done.
Begin: Running /scripts/
[ 2.898556] EXT4-fs (vda1): re-mounted. Opts: (null)
rpcbind: Cannot open '/run/rpcbind/
rpcbind: Cannot open '/run/rpcbind/
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/tecom/docs [345] terminated with status 32
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/eolts/docs [337] terminated with status 32
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /mnt [341] terminated with status 32
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/pgw/docs [339] terminated with status 32
This has nothing to do with rpcbind; reassigning.
The error in your log is:
mount.nfs: rpc.statd is not running but is required for remote locking. theatrepeople/ docs [350] terminated with status 32
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: Network is unreachable
mountall: mount /var/www/
What version of Ubuntu are you using, and what version of nfs-common is installed? Does /var/log/ upstart/ statd.log exist? If so, what are its contents (note: only readable as root)? Do you have a /var/log/ upstart/ statd-mounting- _var_www_ theatrepeople_ docs.log?