LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2007, 02:32 AM   #1
linux2man
Member
 
Registered: Oct 2006
Posts: 34

Rep: Reputation: 16
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
 
Old 07-03-2007, 06:52 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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).

Last edited by MS3FGX; 07-03-2007 at 06:59 PM.
 
Old 07-03-2007, 11:53 PM   #3
linux2man
Member
 
Registered: Oct 2006
Posts: 34

Original Poster
Rep: Reputation: 16
Thanks for help;

I'm asking If client ran before server how make client attempts to connect to the server automatically.
 
Old 07-04-2007, 07:19 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable nfs to restart upon server reboot? nautz Linux - Enterprise 2 10-05-2006 03:52 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs won't restart (or start for that matter!) strong.steve Red Hat 3 04-16-2005 02:10 AM
nfs won't restart (or start for that matter!) strong.steve Fedora 1 04-15-2005 12:44 AM
Long time to restart /start the NFS alice95089 Linux - Software 0 03-30-2005 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration