nfs client auto reconnect

ddarko

Member
Jul 4, 2009
30
0
6
Poland
Hi,

I set up NFS storage in the cluster. However, when the NFS server was restarted clients do not remount resource.


How to set auto reconnect to the NFS clients?


# cat ./pve/storage.cfg
dir: local
path /var/lib/vz
content images,iso,vztmpl,backup,rootdir
maxfiles 1


nfs: backup
path /mnt/pve/backup
server 192.168.0.3
export /var/lib/vz/backup
options vers=3
content backup
maxfiles 4
 
Client connects to the NFS server without problems. The client and the server is running properly.
But when I restarted the NFS server, an attempt to enter into the mounted directory on the client console hung.

Apr 5 20:23:32 handy pvestatd[1919]: WARNING: command 'df -P -B 1 /mnt/pve/backup' failed: got timeout
Apr 5 20:23:32 handy pvestatd[1919]: status update time (54.722 seconds)
Apr 5 20:23:34 handy pvestatd[1919]: WARNING: command 'df -P -B 1 /mnt/pve/backup' failed: got timeout
Apr 5 20:23:44 handy pvestatd[1919]: WARNING: command 'df -P -B 1 /mnt/pve/backup' failed: got timeout
...