You are not logged in.

#1 2018-11-21 19:31:54

alfongr
Member
Registered: 2018-11-20
Posts: 6

Since NFS server upgrade, Can't mount exported dirs from clients

After an update of my NFS server, clients can't mount exported directories.

I didn't chage the configuration of the server or clients

I readed other related therads here but I can't find an explanation of why this heppend.

The following line block the console for ever and do not mount nothing

$ sudo mount -vvv -t nfs4 -o sec=krb5,rsize=8192,wsize=8192,timeo=14,_netdev elbizco:/dir /mnt/nfs
mount.nfs4: timeout set for Wed Nov 21 19:54:42 2018
mount.nfs4: trying text-based options 'sec=krb5,rsize=8192,wsize=8192,timeo=14,addr=192.168.1.134,clientaddr=192.168.1.128'

Any help will be welcome. Thank you

Offline

#2 2018-11-22 19:48:38

alfongr
Member
Registered: 2018-11-20
Posts: 6

Re: Since NFS server upgrade, Can't mount exported dirs from clients

Each mount connection tryed from client, server stats increments the calls count and badcalls remain to cero:

https://ptpb.pw/64ie

So NFS server is listeing and counting request but don't say anything

Offline

#3 2018-11-23 19:13:17

alfongr
Member
Registered: 2018-11-20
Posts: 6

Re: Since NFS server upgrade, Can't mount exported dirs from clients

Hum... Adding

proto=tcp,port=2049

on Arch clients fstab file make mount proccess work again. But still not working on Debian clients whit the same options. Any idea?

Offline

#4 2018-11-24 17:39:29

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,175

Re: Since NFS server upgrade, Can't mount exported dirs from clients

Try

systemctl status nfs-server

it'll probably tell you to

systemctl daemon-reload

first and then

systemctl restart nfs-server

I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2018-12-09 13:33:33

alfongr
Member
Registered: 2018-11-20
Posts: 6

Re: Since NFS server upgrade, Can't mount exported dirs from clients

Hi again. How I said, the problem solved in arch nfs clients simply adding proto=tcp,port=2049 options on mount command, but persists in debian nfs clients

This is the actual situation:

Arch clients
Nothing worg. All works fine.

Debian 8 clients

The mount command stay forever hang, and never return to the shell:

$ sudo mount -vvv -t nfs4 -o sec=krb5,rsize=8192,wsize=8192,timeo=14,_netdev  elbizco:/touro /mnt/nfs
mount.nfs4: timeout set for Sun Dec  9 13:18:06 2018
mount.nfs4: trying text-based options 'sec=krb5,rsize=8192,wsize=8192,timeo=14,addr=192.168.1.134,clientaddr=192.168.1.128'

Debian 9 clients

On Debian 9 the behavior is a bit different:

/touro
meli@patxi:~$ sudo mount -vvv -t nfs4 -o sec=krb5,rsize=8192,wsize=8192,timeo=14,_netdev  elbizco:/touro /nfs/
mount.nfs4: timeout set for Sun Dec  9 13:16:54 2018
mount.nfs4: trying text-based options 'sec=krb5,rsize=8192,wsize=8192,timeo=14,vers=4.2,addr=192.168.1.134,clientaddr=192.168.1.136'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting elbizco:/touro

Arch NFS Server

The rpcinfo -p command on Arch NFS server show that info:
https://ptpb.pw/dhls

And here the exported directories:

[root@elbizco ~]# exportfs -vs
/srv/nfs4  192.168.1.0/24(sync,wdelay,hide,no_subtree_check,fsid=0,sec=krb5,rw,secure,root_squash,no_all_squash)
/srv/nfs4/touro  192.168.1.0/24(sync,wdelay,nohide,no_subtree_check,anonuid=125,anongid=125,sec=krb5,rw,insecure,root_squash,all_squash)

Last edited by alfongr (2018-12-09 13:34:11)

Offline

#6 2018-12-14 18:34:42

alfongr
Member
Registered: 2018-11-20
Posts: 6

Re: Since NFS server upgrade, Can't mount exported dirs from clients

Solved in Debian 9 machines simply adding the FQDN of the NFS server machine on mount command.

Offline

Board footer

Powered by FluxBB