Author Topic: NFS problems  (Read 986 times)

Tim Hall

  • Victoria is my queen
NFS problems
« on: 29 January, 2017, 07:47:01 pm »
I have an NFS server running on my Pi.  After a reboot this morning (an OSMC update caused it to hang, rebooting it fixed that), the client machine isn't mounting the exported drive. On rebooting the client machine, it took a suspiciously long time to get its arse in gear.

/etc/exports on the Pi has:

Code: [Select]
/media/Expansion_Drive 192.168.1.8(rw,sync,no_subtree_check,insecure)

/etc/fstab on the client machine has
Code: [Select]
192.168.1.2:/media/Expansion_Drive             /mnt/nas     nfs     defaults,user,auto,noatime,intr   0 0
The IP addresses are correct.

rcpinfo -p on the Pi has
Code: [Select]
program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049
    100227    3   tcp   2049
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    2   udp   2049
    100227    3   udp   2049
    100021    1   udp  59146  nlockmgr
    100021    3   udp  59146  nlockmgr
    100021    4   udp  59146  nlockmgr
    100021    1   tcp  38761  nlockmgr
    100021    3   tcp  38761  nlockmgr
    100021    4   tcp  38761  nlockmgr
    100005    1   udp  33661  mountd
    100005    1   tcp  53368  mountd
    100005    2   udp  50747  mountd
    100005    2   tcp  38510  mountd
    100005    3   udp  48532  mountd
    100005    3   tcp  51467  mountd

Which suggests that all the relevant services are running on the Pi.  I've read a step by step guide to NFS with no avail.  Any clues welcome.
 
There are two ways you can get exercise out of a bicycle: you can
"overhaul" it, or you can ride it.  (Jerome K Jerome)

vorsprung

  • Opposites Attract
    • Audaxing
Re: NFS problems
« Reply #1 on: 29 January, 2017, 08:55:47 pm »
can the client ping the pi?
does the pi stil have the same address?
does the client still have the same address?
have there been any other changes to your network since the nfs server / client were last restarted?

Tim Hall

  • Victoria is my queen
Re: NFS problems
« Reply #2 on: 29 January, 2017, 09:19:22 pm »
can the client ping the pi?
does the pi stil have the same address?
does the client still have the same address?
have there been any other changes to your network since the nfs server / client were last restarted?
Yes, yes, yes, not that I recall. Idiot operator (me) realises that Xubuntu (running on the client box) had a major update.
I can transfer files by ftp.
There are two ways you can get exercise out of a bicycle: you can
"overhaul" it, or you can ride it.  (Jerome K Jerome)

Tim Hall

  • Victoria is my queen
Re: NFS problems
« Reply #3 on: 30 January, 2017, 06:48:27 pm »
Having read up on a possible fix today, I got home and turned the box on, ready to get to grips with my fstab.  But It Just Worked anyway.

<shrug>
There are two ways you can get exercise out of a bicycle: you can
"overhaul" it, or you can ride it.  (Jerome K Jerome)