Re: [SLUG] automated sequential boot of multiple machines

From: Eben King (eben1@tampabay.rr.com)
Date: Wed Nov 16 2005 - 18:38:41 EST


On Wed, 16 Nov 2005, Mike Branda wrote:

> On Wed, 2005-11-16 at 17:03 -0500, Eben King wrote:
> > On Wed, 16 Nov 2005, Mike Branda wrote:
> >
> > > I figure I'll put this out there. I'm starting to think of a way that I
> > > can bring machines up here in sequence when the power is out for more
> > > than the designated run time of the backups. Obviously some machines
> > > have services that need to be up before others. I've just been reduced
> > > back to a one man operation and if things go amuck I'd like to be able
> > > to run a script from a remote machine. I was starting to think of
> > > something that uses wake on lan or something combined with a check on
> > > that service before the next machine was given a "ring" to start up.
> > > Anybody do this in Linux yet?? Is there a project out there or a piece
> > > of hardware that does such a thing?? Anybody ever monkey with wake on
> > > lan??
> >
> > That seems to be basically what initscripts-6.95-1 does on my machine:
>
> This is for the local machine though. What I need is:
>
> Storm knocks power out for 2 hours. everything is off.
>
> 1.) run startservers.sh
>
> 2.) wake on lan gateway1
>
> 3.) done, return somehow or startservers.sh runs a check on the services
> that gateway1 provides.
>
> 4.) wake on lan dns_ntp1 - this box is dependent upon an internet
> connection provided by gateway1 or services will fail during init i.e.
> it cannot boot before the gateway.
>
> 5.) done, return somehow or startservers.sh runs a check on the services
> that dns_ntp1 provides.
>
> and so on.

Well, I'd say you can either do it as you've described, where each machine
kicks off the next at the appropriate time, or you can find some way to
check programmatically whether a network service is sufficiently "up", and
wait if it's not, polling the other machine periodically (I'd do it that
way, it'd be faster). I mean, there are certain tasks in the boot sequence
that aren't dependent on other machines (POST, bootloader, etc.).

> The alternative is to push 9 power buttons by hand when appropriate.

Or that, but that's a PITA.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
                  "God does not play dice" -- Einstein
          "Not only does God play dice, he sometimes throws
          them where they can't be seen." -- Stephen Hawking

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:12:00 EDT