Multiserver boot sync ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Multiserver boot sync ?
# 1  
Old 01-01-2010
Multiserver boot sync ?

Hi,

does anyone know if a "standard" service exists to synchronize boot on a multi-server system ?

I'm managing a system with four servers: a database server, an application server and two web servers. What I need is that when the system turns on (for example for a cold start due to electrical issues), the application server waits for the database server to be up and running and the web servers wait for the application server to be up and running.

Right now I'm using a timed "turn-on" with a switched PDU but since boot time is not consistent over time this method is not optimal.

Any hint ?

Thank you (and happy new year) !!
# 2  
Old 01-01-2010
You could perhaps start all 4 servers at the same time but not start the applications automatically or perhaps only the database server. The script that starts the database could have a ssh command to the application server to start the application start script. This script in turn could start the two webserver applications.

Alternatively you could start all servers at the same time and put a wait loop at the beginning of the application start script on the application server that keeps checking if the database is availably. Likewise the webserver start scripts could check if the application is available.

The second option is probably the most trouble-free.
# 3  
Old 01-01-2010
^^^
Thanks, the second option was what I was thinking too.

But do you know if a service to do this kind of things already exist or should I use custom shell scripts to wait and check for the services on the other servers ?
I always prefer to use "standards" methods if they are available.

Thank you !!
# 4  
Old 01-03-2010
I would take each service out of the rc and then have a cron ping each server, if each ping returns a result then have it run another perl script ssh and exec each init script. Make sense?
# 5  
Old 01-03-2010
Alternatively you could use telnet or e.g. nmap to test whether a service is listening at the intended port of the remote server, so that the script knows that the application is running on that server and can then break the wait loop (perhaps after an additional timeout if need be).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris stuck during boot after reconfigure boot

Hello, I have a problem with my machine that won't boot properly. The story is that I installed a software called apcupsd, which is a control application for my APC battery UPS. I have used version 3.14.10 earlier, but as part of restoring my previously crashed os harddrive I wanted to... (18 Replies)
Discussion started by: Zorken
18 Replies

2. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

3. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

4. SCO

stage 1 boot failure: error loading hd (40)/boot

hi SCO Unix 5.0.6 doesn't boot due to this problem: not a directory boot not found cannot open stage 1 boot failure: error loading hd (40)/boot Knows someone howto solve it? (16 Replies)
Discussion started by: ccc
16 Replies

5. Solaris

Sync to Green vs. Separate Sync

Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas? ... (0 Replies)
Discussion started by: psantinello
0 Replies

6. Solaris

cannot find boot device and won't boot off cdrom

I'm running solaris 2.5.1. My main development server is DEAD, i can't even boot off the cdrom, it powers up, acts like it is starting the boot process but then says cannot find boot device. I've done the search here on this site and saw the other posts, but at the ok prompt it won't even let me... (3 Replies)
Discussion started by: kymberm
3 Replies

7. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

8. UNIX for Advanced & Expert Users

Cannot boot - Boot : Panic : File size out of range (EWS-UX/V unix)

Hey ! I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range. According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies

9. Red Hat

linux will not boot, boot to grub prompt

my redhat 9 will not boot. We had a power failure and when the power came back, my redhat linux will not boot. The machine come up to grub prompt. I tried the following from grub prompt root (hd0, then press tab key partition num:0 filesystem type unknown, partition type 0x83... (7 Replies)
Discussion started by: hassan2
7 Replies
Login or Register to Ask a Question