Dee-Nee Forums

General => News => Topic started by: Gantry on 07/07/06, 04:55:42 PM

Title: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 04:55:42 PM
I am going to install a new UPS today at 6pm.  To do so, I have to shut dee-nee down and plug it into the new UPS.  After that I want to test the battery on this bad boy, as well as the shutdown software.  It's a cheap-ass noname chinese UPS and the software has me worried...

Hell, at this point I'll be happy with 5 minutes of uptime and a safe server shutdown if the battery runs out...

The biggest downtime issue with dee-nee right now is power problems.  More specifically, my current UPS (a low-end APC powerstrip with a battery) has terrible battery life and I don't have the equipment to properly shutdown if the battery is low.  What happens as a result is that the server just turns off two minutes into a blackout.  The problem is that, upon getting power back, the server has to check the filesystem because of the bad shutdown - it takes a good 5-10 minutes to do so.  Even worse, it sometime prompts me for something during the check - meaning if I'm not at the office, it just sits there until I come in and press enter...

All in all a shitty system that hopefully gets resolved today with one of the lowest-grade hardware/software combos ever.  But it's a free UPS and hopefully will do the trick...
Title: Re: Dee-Nee going down at 6pm
Post by: Big Hath on 07/07/06, 04:57:56 PM
what will brown do for us?
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 05:02:49 PM
Oh yeah!  In case you have non idea what I'm talking about:

http://en.wikipedia.org/wiki/Uninterruptible_power_supply

Basically a power strip with a battery that will keep the server up for an extra 5-15 minutes in a power outage.  This particular unit comes with a cable that attaches to my computer and talks to the UPS.  If the battery gets too low, the software properly shuts down the server so everything is kosher when power returns and it's time to come back up...
Title: Re: Dee-Nee going down at 6pm
Post by: Mike D. on 07/07/06, 05:12:26 PM
Don't you dare shut down Dee-Nee.
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 05:33:19 PM
It's for the greater good, like peeing in the radiator to avoid those pesky Soviets...
Title: Re: Dee-Nee going down at 6pm
Post by: nightwulf on 07/07/06, 05:56:46 PM
Quote from: Gantry on 07/07/06, 04:55:42 PM
The problem is that, upon getting power back, the server has to check the filesystem because of the bad shutdown - it takes a good 5-10 minutes to do so.

http://en.wikipedia.org/wiki/Ext3
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:10:47 PM
We had that discussion (http://forums.dee-nee.com/index.php?topic=13502.msg263740#msg263740) before and it's on the todo list.  Still needs a working battery backup system in place regardless.  But it will get done, oh yes it will get done...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:11:52 PM
Oh yeah, server now going down at 6:15...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:20:27 PM
On battery power now, so exciting!
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:28:04 PM
New battery lasting like a champ!
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:34:46 PM
OK, we are back up...  The system shut down properly and the battery lasted the full 500 seconds it was configured for before it shut down.  Since it also has a "shutdown on low battery" setting, I'm going to bump that "standard #" up to a full 20 minutes.  If the battery can't last that long, the low-battery shutdown should kick in.  This will be a big help for future power outages, the biggest scourge of dee-nee...

Next up, figuring out if I really have ext3, backing everything up and converting the filesystem over...
Title: Re: Dee-Nee going down at 6pm
Post by: nightwulf on 07/07/06, 06:43:25 PM
You have /sbin/fsck.ext3, so I bet all the utilities are installed. Next step is to check the kernel ...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:46:45 PM
See the other thread, ext3 is not in /proc/filesystems yet fsck.ext3 is present.  Heck, I'll dig a little deeper now, post if you find out anything...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:50:24 PM
BOOYAH!  I had to load the ext3 module first before it showed up in /proc/filesystems.  Now to do a quick emergency backup of the databases, websites, etc onto my laptop...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 06:51:07 PM
If you can save me time and have the mechanism in place, go ahead and backup your site nightwulf...
Title: Re: Dee-Nee going down at 6pm
Post by: nightwulf on 07/07/06, 06:55:12 PM
Back up to where? Over the internets?
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 07:00:09 PM
That's what I was thinking, I though maybe you had an FTP/Rsync backup already in place.  Don't worry about it, I'll backup to my laptop.  I'm on the same switch as the server so I'll just do a mass copy of /home...
Title: Re: Dee-Nee going down at 6pm
Post by: nightwulf on 07/07/06, 07:01:32 PM
I can do it, if you can wait for bzip2 ... tar archive is 567695360 bytes ...
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 07:04:33 PM
You can go ahead then and take care of that (is that for your folder or all of /home?) - I'll starting workingn on dee-nee proper.   Databases backed up...
Title: Re: Dee-Nee going down at 6pm
Post by: TempoGL on 07/07/06, 07:06:25 PM
so if dee-nee is the city...is nightwulf's site a suburb?
Title: Re: Dee-Nee going down at 6pm
Post by: nightwulf on 07/07/06, 07:07:32 PM
That would be just my home directory. Evidently I need to clean up a bit.
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 07:11:15 PM
Space-a-plenty, no worries...

Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/07/06, 09:12:00 PM
We are officially on ext3, POOYAN!!!!! 
Title: Re: Dee-Nee going down at 6pm
Post by: Gerlost on 07/07/06, 11:30:16 PM
You hear that, Dee-Nee?  You're goin DOWN!!
Title: Re: Dee-Nee going down at 6pm
Post by: Flood on 07/13/06, 08:38:39 PM
Does Dee-Nee swallow?
Title: Re: Dee-Nee going down at 6pm
Post by: Gantry on 07/14/06, 09:51:14 AM
You're lucky I like your wife, plenty of savage quips to this question...
Title: Re: Dee-Nee going down at 6pm
Post by: Flood on 07/14/06, 11:00:49 AM
Quote from: Gantry on 07/14/06, 09:51:14 AM
You're lucky I like your wife, plenty of savage quips to this question...

and you're lucky Princess has been "fixed"