Problem mounting NFS during startup

Kernels & Hardware, configuring network, installing services

Problem mounting NFS during startup

Postby Consystor » 2011-10-28 19:38

Hello all!

I try to set up a slave "diskless" node (cluster2=
with an nfsroot (from NFS-server cluster1=
During the startup it also should mount the right /usr directory.
The mount of the nfsroot works fine but the mount of /usr doesn't.

Code: Select all
That's the /etc/export of master node:
/usr          ,ro,no_root_squash,no_all_squash)

These are the kernel args of the slave node:
root=/dev/nfs rw nfsroot= ip=

And that's the /etc/fstab of the slave node:        /         nfs     sync,rw    0 0                     /usr      nfs     sync,ro    0 0

I get these messages during the boot phase:
Setting parameters of disc: (none).
Activating swap...
[ 1121.415141] Adding 2930672k swap on /dev/sda4. Priority:-1 extents:1 across:2930672k
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...
[ 1121.858462] loop: module loaded
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...done.
Starting portmap daemon....
Starting NFS common utilities: statd
[ 1125.418440] Installing knfsd (copyright (C) 1996
Waiting for /usr...

And after ~1min. the system gives up and proceeds:
Waiting for /usr...failed.
Cleaning up temporary files....
[ 1222.186306] fuse init (API version 7.13)
Setting kernel variables ...done.

If I login, I only see these mounts:
Filesystem 1K-blocks Used Available Use% Mounted on 67425560 14437340 49563164 23% /
tmpfs 16544944 0 16544944 0% /lib/init/rw
udev 10240 304 9936 3% /dev
tmpfs 16544944 0 16544944 0% /dev/shm

And if I try to "mount /usr" manually, then it works: 67426304 14437376 49563648 23% /usr

So the NFS server seems to be configured in the right way.
Does anyone of you have an idea what could be wrong?

Regards and many thanks for any help!

I thought it could be because of the 'ifupdown' script which could bring the needed eth0 interface down for a certain time.
I don't know a way to avoid the reconfiguration of eth0. So I've removed the links /etc/rcS.d/*ifupdown* and /etc/rcS.d/*networking*. But this had no effect.
So I think the eth0 interface is up during the whole startup phase...
Posts: 6
Joined: 2011-10-28 18:34

Re: Problem mounting NFS during startup

Postby Consystor » 2011-10-29 06:11


Maybe it's a bug because the NFS mounts should be done during startup after ifup of all network interfaces which are listed in /etc/network/interfaces to be brought up. But this doesn't work here...
So I've set ASYNCMOUNTNFS=no in /etc/default/rcS .
Now the NFS mounts are mounted during boot time... :)

Posts: 6
Joined: 2011-10-28 18:34

Return to System configuration

Who is online

Users browsing this forum: djk44883 and 11 guests