I have Ubuntu 20.04 clients here. I have integrated them into the UCS domain using ADS-Join. The clients get their home directory from the UCS master. Mounting works with a started kernel 5.4.
root@pc002:~# showmount -e srv01.gehr.local
Export list for srv01.gehr.local:
/home gss/krb5i
root@pc002:~# mount |grep /home
srv01.gehr.local:/home/g.kopf on /home/g.kopf type nfs4 (rw,nosuid,nodev,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=krb5i,clientaddr=192.168.24.93,fsc,local_lock=none,addr=192.168.24.5,_netdev)
If I now start on the same machine with kernel 5.11, I cannot mount the home directory via NFS.
root@pc002:~# mount -vvvv -t nfs4 -o sec=krb5 srv01.gehr.local:/home /home
mount.nfs4: timeout set for Wed Jul 14 14:03:43 2021
mount.nfs4: trying text-based options 'sec=krb5,vers=4.2,addr=192.168.24.5,clientaddr=192.168.24.93'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting srv01.gehr.local:/home
Does anyone have an idea what the problem could be?
I have also tested it with 5.13 (with system on which it works with 5.8) and it does not work.
I have not tried updating the nfs service pricipal user / server keytab. I would first have to see how to do that. The installation/setup was already a while ago.
I have continued to try to solve the problem or have solved it. Now I have to see how I solved it.
I have installed a completely new UCS5 environment in KVM as a test site and tried various solutions from the internet. Now an NFSv4 with Kerbereos (/home) is running on the UCS5 that I can mount from clients with kernel >= 5.10 with “Kerb5i” without any problems.
I have tested this with “KDE Neon - User” and Ubuntu 22.04 (Beta). Both use kernel 5.13.
Now I have to see what I did differently to make it work. I will let you know.
The problem has taken care of itself. I don’t know exactly with which kernel version, I think since 5.15, it works without problems. Currently I use 6.1