The Crystal Hall
Forum Search:
Return to the Stories


Home » The Crystal Hall » Administrative Notes » Recent downtimes (what was going on)
Recent downtimes [message #12929] Tue, 08 July 2008 12:20 Go to next message
Warren  is currently offline Warren
Messages: 1556
Registered: January 2005
Location: Wet wonderful Washington

Bob had configured the server to automatically reboot around 1 am his time. Sadly it's not working quite the way it was expected to work so it has been disabled.


Sometimes writing with geeks is like eating Jello with a chainsaw. Interesting but painful.
Re: Recent downtimes [message #12932 is a reply to message #12929 ] Tue, 08 July 2008 13:28 Go to previous messageGo to next message
Kiai  is currently offline Kiai
Messages: 58
Registered: April 2008
Location: exploring the penultimate...
If sequencing is the problem, giving a machine which stays up the job of issuing the commands might be the solution. I use something like that to control the dialup modem here, by having a script issue this at the appointed time:

ssh dialup_gateway "killall -HUP wvdial"


Even a shell script can respond to the error codes reported back by ssh commands so it's not all open-loop.

Just a thought.
Re: Recent downtimes [message #12947 is a reply to message #12929 ] Tue, 08 July 2008 21:11 Go to previous messageGo to next message
storyreader2005  is currently offline storyreader2005
Messages: 88
Registered: July 2005
Location: Ohio
Warren wrote on Tue, 08 July 2008 12:20

Bob had configured the server to automatically reboot around 1 am his time. Sadly it's not working quite the way it was expected to work so it has been disabled.

Well if Bob doesn't care about lost or unsaved data, I think that this is pretty much a universal Linux command to reboot:
/sbin/shutdown -r now

So using the cron scheduling daemon to reboot every day @ 1:30AM the entry would be:
30 1 * * * /sbin/shutdown -r now

and if you don't want to get an e-mail about the reboot you can add this to the end of the line:
 >/dev/null 2>&1

so to reboot the server @ 1:30AM every day and not get an e-mail:
30 1 * * * /sbin/shutdown -r now >/dev/null 2>&1
Re: Recent downtimes [message #12948 is a reply to message #12929 ] Tue, 08 July 2008 21:39 Go to previous messageGo to next message
Warren  is currently offline Warren
Messages: 1556
Registered: January 2005
Location: Wet wonderful Washington

I talked to him about the problem. Since I'm not a server person. he tells me it's something between CentOS and the motherboard bios that is preventing it from doing a software restart successfully. It hard boots fine.


Sometimes writing with geeks is like eating Jello with a chainsaw. Interesting but painful.
Re: Recent downtimes [message #12958 is a reply to message #12948 ] Wed, 09 July 2008 12:34 Go to previous messageGo to next message
Kiai  is currently offline Kiai
Messages: 58
Registered: April 2008
Location: exploring the penultimate...
Warren wrote on Tue, 08 July 2008 21:39

I talked to him about the problem. Since I'm not a server person. he tells me it's something between CentOS and the motherboard bios that is preventing it from doing a software restart successfully. It hard boots fine.


Okay, I get that. CentOS is Red Hat Enterprise Server relabeled. Now I'm sorry I haven't kept up with recent RedHat/Fedora releases.

Next crazy suggestion: X-10. Sending the affected server to runlevel 0 (halt), rather than 6 (reboot), makes the server put all its toys away and sit quietly waiting for lights-out. Then use X-10 to actually switch off the server's power for a minute or so. The BIOS then wakes up in a cold-boot restart.

I use an X-10 setup here to drive some lights and fans on a schedule. A 'firecracker' module plugs into a serial port to transmit wireless commands to a receiver unit which can also serve as an appliance-control module (meaning, 15-amp relay contacts rather than triacs are used to switch the power on and off, so controlling a server is no problem). 'bottlerocket' is the name of the program that wiggles the serial port's lines appropriately to do this. Googling "linux home automation" will yield more names.

I've run this on a Red Hat box successfully for nearly a decade. The only problem I've had is with wireless wall switches: recent HP computers spew out enough RF garbage to interfere with their signal from across the house. Across a server room should be no problem. The X-10 stuff is all reusable when the mobo with the pesky BIOS is reflashed, repurposed or persuaded to do its job.

Again, just a suggestion.
Re: Recent downtimes [message #12970 is a reply to message #12929 ] Wed, 09 July 2008 17:03 Go to previous messageGo to next message
Lost Ninja  is currently offline Lost Ninja
Messages: 184
Registered: June 2005
Location: Yorkshire Dales | England

Time switch on the PSU, kills power for set period and the restores it. Finding one that does very small time periods might be hard as most seem to be 15mins up...

Very Happy


Lost Ninja
Blog and Homepages
Re: Recent downtimes [message #12977 is a reply to message #12970 ] Wed, 09 July 2008 21:16 Go to previous messageGo to next message
Sir Lee  is currently offline Sir Lee
Messages: 3068
Registered: May 2005
Location: São Paulo, Brazil
OK, what about this?

- Set up the BIOS of the server to auto-start at, say, 2:00 AM;
- cron a task to shutdown the server at, say, 1:55 AM.

If all goes well, the server will cold-boot a couple minutes after shutting down.

Of course, it all depends on it being possible to set up the BIOS to auto-start *every day*, as opposed to auto-starting *just once*.

Sir Lee


Don't call me Shirley. You will surely make me surly.
--
Sent from my Bugs Industries® bPhone™
Re: Recent downtimes [message #12984 is a reply to message #12929 ] Thu, 10 July 2008 12:05 Go to previous message
barnold  is currently offline barnold
Messages: 36
Registered: January 2005

Site Admin
Thanks to everyone for your suggestions on how to deal with this problem.

The final resolution will likely be that I get a different motherboard, CPU and memory to replace the one currently in use. I have other servers that re-boot themselves with no problems at all so changing the mobo is the best resolution that I can do. The old mobo, CPU and memory will probably be used to build another development server that won't normally see production use.

Bob Arnold

P.S. - I haven't yet decided what the replacement will be. It all depends on how much I want to spend on the solution. And before anyone asks, I do not need donations to make this happen.
Previous Topic:Persistent log-in
Next Topic:Forum options
Goto Forum:
  


Current Time: Thu May 23 06:40:47 EDT 2013

Total time taken to generate the page: 0.01226 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.8.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software