NFS restart problem
Hello;
I have directory shared by NFS on server1 this directory mounted at startup on server2. problem happened when twice servers restarted and server2 started before server1. directory not mounted I must mount it manually. __________________ Thanks; Ali Hamed Linux Administrator www.linuxman.host.sk |
If you are asking how to manually mount NFS servers from /etc/fstab, the easiest way would be to run:
Code:
mount -a -t nfs |
Thanks for help;
I'm asking If client ran before server how make client attempts to connect to the server automatically. |
You can't, not normally anyway. Your boot scripts only connect to the remote shares at initial startup, it doesn't go back and poll the server to see if it comes back up later.
To do that you would either need to make a cron job that attempts to remount the shares every few minutes (which is usually what I do, at least when I know the server will be up almost all the time), or use autofs to mount the share when the user attempts to access it (though this will do nothing to actually verify the server is up). |
All times are GMT -5. The time now is 09:55 AM. |