BBB Debian nfs not automounting from fstab

Hi,

I currently have 3 BBB running as web servers, media center, file syncing tools, etc. and they used to be on Arch Linux. I recently switched one of them to Debian (3.8.13-bone47), because I was curious, and I’m struggling with the following problem:

One of the BBB-Arch has several NFS exports which are used by other machines (BBB-Arch, RPi-Rasbmc, PC-Ubuntu, PC-Manjaro, etc…). I’ve never had any trouble mounting those NFS shares from any other machine, either manually or automatically (at boot from an fstab entry).

I’ve added the following entry to fstab in BBB-Debian and using “sudo mount -a” works fine. However when I restart the board it doesn’t get mounted automatically.

`
bbbdata:/EDMS /home/michel/edms nfs rsize=8192,wsize=8192,timeo=14,_netdev 0 0

`

I’m a bit at a loss here, I went through many guides and wiki entries and couldn’t find any solution. I also tried using the server’s IP address instead of the hostname (from /etc/hosts), but the results were the same.

I did notice that it takes about 29 seconds for eth0 to become ready (from dmesg), perhaps this is too long for the NFS automatic mount?

`
[ 29.122963] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

`

Any help would be greatly appreciated!

Thanks.

Hi,

I currently have 3 BBB running as web servers, media center, file syncing
tools, etc. and they used to be on Arch Linux. I recently switched one of
them to Debian (3.8.13-bone47), because I was curious, and I'm struggling
with the following problem:

One of the BBB-Arch has several NFS exports which are used by other machines
(BBB-Arch, RPi-Rasbmc, PC-Ubuntu, PC-Manjaro, etc...). I've never had any
trouble mounting those NFS shares from any other machine, either manually or
automatically (at boot from an fstab entry).

I've added the following entry to fstab in BBB-Debian and using "sudo mount
-a" works fine. However when I restart the board it doesn't get mounted
automatically.

bbbdata:/EDMS /home/michel/edms nfs rsize=8192,wsize=8192,timeo=14,_netdev 0
0

I'm a bit at a loss here, I went through many guides and wiki entries and
couldn't find any solution. I also tried using the server's IP address
instead of the hostname (from /etc/hosts), but the results were the same.

I did notice that it takes about 29 seconds for eth0 to become ready (from
dmesg), perhaps this is too long for the NFS automatic mount?

[ 29.122963] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Any help would be greatly appreciated!

I don't have any issues with the 30 second timeout, although i'm still
forcing nfsvers mode 3.

192.168.1.95:/mnt/usb0/ /mnt/farm nfs rw,nfsvers=3,rsize=8192,wsize=8192 0 0

I have about 20 arm boards, connecting to that nfs server.

Regards,

It is more usual for clients to mount NFS volumes automatically at boot-time. NFS volumes can be specified like any others in /etc/fstab.

Like Robert, I use nfs3. nfs4 introduced new strict policies for shares that I personally dont care to take the time to learn. So, use nfs3 for simplicity, or take teh time to learn about these nfs4 policies in Debian.

Thanks for the replies, though they don’t really address my issue because:

  • Everything seems to indicate that my nfs4 server setup is functional (several clients connect succesfully both manually and at startup);
  • In addition, manual mounting from BBB-Debian works as well with nfs4, only the automounting at startup doesn’t work;
  • I’d much rather replace Debian with Arch on this BBB than change my NFS server setup, especially since several other services depend on it.

If it were a failure I’d expect to find traces of it somewhere, but I can’t find anything relevant in /var/log. Any idea?

Thanks.

Thanks for the replies, though they don't really address my issue because:

- Everything seems to indicate that my nfs4 server setup is functional
(several clients connect succesfully both manually and at startup);
- In addition, manual mounting from BBB-Debian works as well with nfs4, only
the automounting at startup doesn't work;
- I'd much rather replace Debian with Arch on this BBB than change my NFS
server setup, especially since several other services depend on it.

What do you mean? You "really" only asked one question.. We don't have
a crystal ball to figure out what you really meant! :wink:

If it were a failure I'd expect to find traces of it somewhere, but I can't
find anything relevant in /var/log. Any idea?

nfslogd

http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch14_06.htm

Regards,

Is nfslogd available on Arch Linux? It’s not installed, doesn’t seem to exist as a package, and I can’t find any reference to it in the Arch Wiki.

Thanks.