First of all, a great "thank you" Jan-Marek for pointing out the (very probable) root cause of the problem.

First, I tried to mount using minorversion=1. Unfortunately, NFS4.1 appears not to be supported:

root@bural:/home/sylvain# mount -t nfs4 real.chicoree.fr:/homes /mnt -o sec=krb5,minorversion=1
mount.nfs4: Protocol not supported

Both client & server having the same packages (Wheezy + NFS/linux-image from Jessie):
ii  libnfsidmap2:amd64 0.25-4         amd64          NFS idmapping library
ii linux-image-3.9-1- 3.9.6-1 amd64 Linux 3.9 for 64-bit PCs ii nfs-common 1:1.2.8-4 amd64 NFS support files common to client and se ii nfs-kernel-server 1:1.2.8-4 amd64 support for NFS kernel server


What is the minimum kernel/package version required to use NFS4.1 on Debian?


-------


After that, I tried to stick to NFS4.0, having both gssd and svcgssd running on the client and the server. So I installed nfs-{common,kernel-server} on both machines.

But, just installing nfs-kernel-server and editing /etc/defaults/nfs-kernel-server to force execution of rpc.svcgssd is not sufficient on the client, since the init script won't run rpc.svcgssd if there is no export.

So, I manually ran svcgssd on the client and gssd on the server ("real" is the server. "bural" the client):

root@real:~# ps -edf | grep gssd
root      3753     1  0 Jul08 ?        00:00:00 /usr/sbin/rpc.svcgssd -vvv
root      5254  5193  0 14:58 pts/0    00:00:00 grep gssd
root@real:~# /usr/sbin/rpc.gssd -fvvv
beginning poll
destroying client /var/lib/nfs/rpc_pipefs/nfsd4_cb/clntf


root@bural:/home/sylvain# ps -edf | grep gss
root     14146     1  0 14:46 ?        00:00:00 /usr/sbin/rpc.gssd -vvv
root     14246 14142  0 15:00 pts/5    00:00:00 grep gss
root@bural:/home/sylvain# /usr/sbin/rpc.svcgssd -fvvv
entering poll

As far as I can tell, both GSS servers are running on both machines. However, this does not appear to solve the issue. Despite "-vvv" option, I see no informations. But I still have the usual messages on server's syslog:

Jul 10 15:29:00 real kernel: [166575.902975] RPC: AUTH_GSS upcall timed out.
Jul 10 15:29:00 real kernel: [166575.902975] Please check user daemon is running.


Probably, there is there something I missed while launching the gss services? Maybe there is some other services to restart?


----

And now for something different:
The attached patch improves Nicolas version for the cases of NFS version
!= 4.0, where svcgssd is not needed.

This is probably a corner case, but I'm not sure Nicolas' patch will behave as expected when the client import both 4.0 and 4.x shares:

nfs40.server:/this /this nfs4 rw,sec=krb5 0 0
nfs41.server:/that /that nfs4 rw,sec=krb5,minorversion=1 0 0



-- Sylvain


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51dd672e.9050...@chicoree.fr

Reply via email to