LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS restart problem (https://www.linuxquestions.org/questions/linux-networking-3/nfs-restart-problem-566213/)

linux2man 07-03-2007 02:32 AM

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

MS3FGX 07-03-2007 06:52 PM

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
Which will mount all NFS servers listed in your fstab file (which is how they are mounted at boot).

linux2man 07-03-2007 11:53 PM

Thanks for help;

I'm asking If client ran before server how make client attempts to connect to the server automatically.

MS3FGX 07-04-2007 07:19 AM

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.