Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


Search this Thread
Old 01-10-2013, 07:05 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
How to reboot two Linux servers with boot delayed on NFS client server

I am new to this forum and new to Linux administration and I will be really appreciated for your help and suggestions on this issue.
I have two RHL V6.1 servers. The Server1, which is a NFS client server, has an EDI application installed. This application uses all mount points; two of them are NFS which belongs to Server2.

I like to schedule reboot of these two servers in the following way:
- Stop EDI application on the Server1
- Shut down Server1
o Reboot Server2
- Boot up Server1
- Start EDI application on the Server1
So, the Server1 should start reboot process, wait for Server2 to reboot and then boot when Server2 (NFS server) is already up and running.

Thank you!

Last edited by smesalic; 01-10-2013 at 07:07 PM.
Old 01-11-2013, 01:00 AM   #2
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,604

Rep: Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242
This is only a draft:

so you need to implement what you wrote in a shell (running on server1):
1. Stop EDI application on the Server1
2. start delayed reboot on server2, delay can be defined by measuring shutdown time
3. reboot server1 (optionally you can shutdown server1 and try to boot it from server2 if there was such possibility)
script is now completed.
during the reboot of server1 you need to insert a step before starting your app: wait for the nfs shares (to be available). If you use automounter you would only need to check the existence of those mounts in a loop.
Old 01-11-2013, 02:37 PM   #3
LQ Newbie
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the replay. Just to clarify my case:
The Server1 is a client NFS server and Server2 is a NFS server.
I would like to start with reboot process on the Server1 (NFS client) to free up NFS partitions which belongs to the Server2.
Then reboot Server2.
After Server2 is up and running, NFS mount points are available, I like to boot Server1 and start my application.

What I am looking for is a solution to delay shutdown/startup of the Server1 and give plenty of time to Server2 for the reboot process.

Thank you,
Old 01-14-2013, 02:13 AM   #4
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
A couple of solns:

1. use timing in cron eg
a) at time X, have client shutdown any processes dependent on the nfs and umount from nfs
b) at time X + T1 (eg 5 mins), have server reboot
c) at time X + T2 (eg 10 mins), have client do nfs mount & restart procs etc

2. more complex
a) as above
b) have a daemon on server check client mount has gone & reboot
c) have a daemon on client check for server nfs availability and re-mount when it is
Old 01-14-2013, 07:12 AM   #5
LQ Newbie
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you Chris

It should work in the way you suggested.
The only thing I wary about is application on client server which I think I will stop/start from cron



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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Linux NFS client <--> Leopard NFS server ACL support tplessers Linux - Networking 0 02-17-2010 04:28 AM
Windows 2003R2 NFS Server /Linux NFS client khalil_noura Linux - Networking 0 01-14-2009 11:06 AM
nfs client does not mount server-shares automatically on boot rsp Debian 2 07-29-2007 07:26 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

All times are GMT -5. The time now is 05:37 PM.

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