[Linux-HA] NFS causing problems
thomas at mypoint.franken.de
Sun Nov 18 03:46:12 MST 2007
Beren Gamble schrieb:
> We've got heartbeat working 90%. I can fail over resources when I shut down heartbeat, but if I simulate a network problem by unplugging the cable, the system can't unmount the NFS share we connect to because it's no longer accessible. Even commands like df -k hang because it can't list the share.
> What do you suggest I do? :)
You can try to mount the NFS Share with the mount Option "soft"
man mount say:
hard The program accessing a file on a NFS mounted file system
will hang when the
server crashes. The process cannot be interrupted or
killed unless you also spec-
ify intr. When the NFS server is back online the
program will continue undis-
turbed from where it was. This is probably what you want.
soft This option allows the kernel to time out if the nfs
server is not responding for
some time. The time can be specified with timeo=time.
This option might be useful
if your nfs server sometimes doesn't respond or will be
rebooted while some pro-
cess tries to get a file from the server. Usually it just
causes lots of trouble.
More information about the Linux-HA