[CentOS] NFS mount auto remount in case of problems.

Rafał Radecki

radecki.rafal at gmail.com
Wed Feb 20 10:29:28 UTC 2013


Hi All.

I have a setup in which I have two servers serving nfs share. The nfs
service is made highly available with pacemaker. When the primary
server goes down the secondary starts nfs service. Service IP is
floating between servers but they have NO "shared" storage/filesystem
so NFS state/connection information in case of failover is lost. I
have two clients. When the failover from primary to secondary occurs
the mount is stale and I need to manually remount the share.
Is there a way in linux/CentOS to automatically remount nfs share in
such case? Or should I just write a script which (for example) check
/proc/mounts and execute it from crontab? I am curious if it can be
done with "standard" linux services (automounter?) ;)

Best regards,
Rafal Radecki.



More information about the CentOS mailing list