nfs, stale file handle

33 views
Skip to first unread message

Calle Kabo

unread,
Feb 17, 2018, 10:14:17 PM2/17/18
to GnuBee
I've managed to install `nfs-kernel-server` and configured `/etc/exports`
/data/data1/Temp        *(rw,all_squash,insecure,async,no_subtree_check)

# showmount --exports
Export list for libreNAS:
/data/data1/Temp      *
# nfsstat -s
Server rpc stats:
calls      badcalls   badfmt     badauth    badclnt
528        125        125        0          0

Server nfs v3:
null             getattr          setattr          lookup           access
270      51%     0         0%     0         0%     0         0%     0         0%
readlink         read             write            create           mkdir
0         0%     0         0%     0         0%     0         0%     0         0%
symlink          mknod            remove           rmdir            rename
0         0%     0         0%     0         0%     0         0%     0         0%
link             readdir          readdirplus      fsstat           fsinfo
0         0%     0         0%     0         0%     0         0%     258      48%
pathconf         commit
0         0%     0         0%

 
However, when I try to mount the exported directory on my laptop I get this error
$ sudo mount -t nfs 172.22.22.20:/data/data1/Temp /mnt -o nfsvers=3 -vvv
mount
.nfs: timeout set for Sun Feb 18 16:06:01 2018
mount
.nfs: trying text-based options 'nfsvers=3,addr=172.22.22.20'
mount
.nfs: prog 100003, trying vers=3, prot=6
mount
.nfs: trying 172.22.22.20 prog 100003 vers 3 prot TCP port 2049
mount
.nfs: prog 100005, trying vers=3, prot=17
mount
.nfs: trying 172.22.22.20 prog 100005 vers 3 prot UDP port 32780
mount
.nfs: mount(2): Stale file handle
mount
.nfs: trying text-based options 'nfsvers=3,addr=172.22.22.20'
mount
.nfs: prog 100003, trying vers=3, prot=6
mount
.nfs: trying 172.22.22.20 prog 100003 vers 3 prot TCP port 2049
mount
.nfs: prog 100005, trying vers=3, prot=17
mount
.nfs: trying 172.22.22.20 prog 100005 vers 3 prot UDP port 32780
mount
.nfs: mount(2): Stale file handle
mount
.nfs: trying text-based options 'nfsvers=3,addr=172.22.22.20'
mount
.nfs: prog 100003, trying vers=3, prot=6
mount
.nfs: trying 172.22.22.20 prog 100003 vers 3 prot TCP port 2049
mount
.nfs: prog 100005, trying vers=3, prot=17
mount
.nfs: trying 172.22.22.20 prog 100005 vers 3 prot UDP port 32780
mount
.nfs: mount(2): Stale file handle
^C

If I SSH into the GnuBee PC2 and run `ll /data/data1/Temp` I get a nice listing of the things in that directory, no problems.

What's going on??

GnuBee PC2, libreCMC v1.4.2


Calle Kabo

unread,
Feb 17, 2018, 10:53:37 PM2/17/18
to GnuBee
Maybe it's some sort of issue with btrfs?
mkdir /tmp/test
touch
/tmp/test/t
# add /tmp/test to /etc/exports

Works fine mounting on my laptop.

Calle Kabo

unread,
Feb 17, 2018, 10:54:19 PM2/17/18
to GnuBee
Aha!

I needed to add fsid= to my exports options!

This whole thing only took about 12 hours more than it should have...
Reply all
Reply to author
Forward
0 new messages