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=137.226.167.242)
with an nfsroot (from NFS-server cluster1=137.226.167.241).
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:
/srv/nfs/cluster2       137.226.167.242(sync,rw,no_root_squash,no_all_squash)
/usr                    137.226.167.242(sync,ro,no_root_squash,no_all_squash)

These are the kernel args of the slave node:
root=/dev/nfs rw nfsroot=137.226.167.241:/srv/nfs/cluster2 ip=137.226.167.242::137.226.167.225:255.255.255.224:cluster2:eth0:off

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


I get these messages during the boot phase:
done.
Setting parameters of disc: (none).
Activating swap...
[ 1121.415141] Adding 2930672k swap on /dev/sda4. Priority:-1 extents:1 across:2930672k
done.
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...
[ 1121.858462] loop: module loaded
done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
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 okir@monad.swb.de).
idmapd.
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
137.226.167.241:/srv/nfs/cluster2 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:
137.226.167.241:/usr 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!

PS:
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...
Consystor
 
Posts: 6
Joined: 2011-10-28 18:34

Re: Problem mounting NFS during startup

Postby Consystor » 2011-10-29 06:11

Hello!

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... :)

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


Return to System configuration

Who is online

Users browsing this forum: techsavvy and 16 guests

fashionable