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
...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!