SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I upgraded my server to Slackware 14.2 and on the NFS client (Linux Mint) I have a permanent NFS mount. And it seems to mount ok. But when I open some directories in Nemo (the default Mint/Cinnamon file manager) it takes a very long time (like a minute).
I think for the same reason it takes me a long time to log into the graphical interface on the workstation.
Strangely it seems to work fine in a terminal inside the graphical interface. I can run a find on the directory and it takes 3 seconds.
Any sugestions what could be the cause? The only change I see on the server is it seems in 13.37 NFS was version 3 and in 14.2 it's version 4.
Here's a bunch of commands I ran with no helpful results:
showmount localhost
clnt_create: RPC: Program not registered
dmesg | tail -8
[ 22.200841] r8169 0000:02:00.0 eth0: link up
[ 22.200861] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 22.940369] NFSD: the nfsdcld client tracking upcall will be removed in 3.10. Please transition to using nfsdcltrack.
[ 22.940379] NFSD: starting 90-second grace period (net ffffffff8251c780)
[ 143.242307] NFSD: Unable to end grace period: -110
[ 209.043098] NFSD: Unable to create client record on stable storage: -110
[41876.129843] NFSD: Unable to create client record on stable storage: -110
[41911.206369] NFSD: Unable to create client record on stable storage: -110
dmesg | grep -i nfs
[ 0.289435] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.327588] NFS: Registering the id_resolver key type
[ 0.327854] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 22.940369] NFSD: the nfsdcld client tracking upcall will be removed in 3.10. Please transition to using nfsdcltrack.
[ 22.940379] NFSD: starting 90-second grace period (net ffffffff8251c780)
[ 143.242307] NFSD: Unable to end grace period: -110
[ 209.043098] NFSD: Unable to create client record on stable storage: -110
[41876.129843] NFSD: Unable to create client record on stable storage: -110
[41911.206369] NFSD: Unable to create client record on stable storage: -110
ps ax | grep nfs
50 ? S< 0:00 [nfsiod]
1027 ? S< 0:00 [nfsd4_callbacks]
1030 ? S 0:00 [nfsd]
1031 ? S 0:00 [nfsd]
1032 ? S 0:00 [nfsd]
1033 ? S 0:00 [nfsd]
1034 ? S 0:00 [nfsd]
1035 ? S 0:00 [nfsd]
1036 ? S 0:00 [nfsd]
1037 ? S 0:00 [nfsd]
1631 pts/0 S+ 0:00 grep nfs
ps ax | grep rpc
27 ? S< 0:00 [rpciod]
1023 ? Ss 0:00 /usr/sbin/rpc.rquotad
1039 ? Ss 0:00 /usr/sbin/rpc.mountd
1155 ? Ss 0:00 /sbin/rpcbind -l
1160 ? Ss 0:00 /sbin/rpc.statd
1635 pts/0 S+ 0:00 grep rpc
cat /etc/nfsmount.conf | grep Defaultvers
Defaultvers=3 # I changed it to 4, made no difference
/usr/sbin/rpc.nfsd 8 -d
rpc.nfsd: knfsd is currently up
rpcinfo -p localhost
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
100024 1 udp 35338 status
100024 1 tcp 44811 status
# Workstation:
showmount -e 10.0.0.3
clnt_create: RPC: Program not registered
mount | grep nfs
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
10.0.0.3:/data on /home/andrew/data type nfs4 (rw,relatime,vers=4.0,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2 ,sec=sys,clientaddr=10.0.0.4,local_lock=none,addr=10.0.0.3)
There's some nonsense about IPv6, showmount not working, nfsd not showing in rpcinfo, but I don't know what to do now.
I have given up on nfs (since a while back - like the entirety of 14.1) - now using sshfs instead and no problems.
Yes - I had the same problems as you and in addition, when using 'apps' (for lack of a better word) to access files more than 2 levels below the mountpoint - it would fail with 'file not found'. cp, cat, ls etc worked fine, but not vi (as short examples).
In the end I gave up trying to figure out what was happening ...
Hm, I can give that a shot, thanks for the suggestion. Can you share the appropriate line from fstab? I've only ever used sshfs manually after logging in.
That was it, thanks! I added nfsvers=3 to the fstab and now it seems to work. What a relief.
Weird thing is when this all started I had nfsvers=3 (or something like it) in the fstab on my clients and they said something like "unavailable nfs version selected". Maybe I had it as nfsvers=v3 before, I can't remember.
Also the "RPC: Registered tcp NFSv4.1 backchannel transport module." was a confusing message
Good grief, all these ports in the wiki need to be opened up for NFSv3 to function correctly. Having said that you can still mount with NFSv4 as in:
Code:
sudo mount -t nfs -o vers=4 <server_ip>:/src_path /dest_path
However operations such as read/write are slow. I've had to open the rpc ports and am using NFSv3. It seems it's also impossible to boot a rootfs using NFSv4 as the kernel refuses to mount the rootfs. Again I had to resort to NFSv3 with all those rpc ports opened up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.