LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-25-2003, 01:17 PM   #1
KendersPlace
Member
 
Registered: Feb 2003
Location: Phoenix, AZ - USA
Distribution: RedHat 8, Micro$haft
Posts: 33

Rep: Reputation: 15
Fault tolerant boot? Power outages?


We put out a line of inexpensive web servers with a pre-packaged specialy web app loaded on it. (It controls some specialized machienery via a web application). We build the boxes on RedHat 8.0 distributions with minimal components - basically just apache, mysql, and php support.

Now that it's monsoon season here in the southwest, there are a lot of short term power outages, almost nightly. These power outages are corrupting our systems. There doesn't seem to be any hardware damage, it's just file system errors and problems due to the loss of power and improper shut down.

Linux has always been WAY more stable than windows, but I've killed power to windows machines hundreds of times over the years and never had any problem getting one to boot right back up. However, these linux boxes are having boot problems nearly any time they loose power.

Is there some way I can make a linux box more fault tolerant to this? I know adding a UPS power supply is the first obvious solution, and we will pursue this, but it bothers me that linux seems so finickey over improper shutdowns.

I'd like some startup options to specify that cause the OS to automatically diagnose and repair simple file errors on bootup. The console shows "improper shutdown, force check of file systems?" or something to that effect, but it doesn't perform this task by default.

I am using a combination of ext3 and ReiserFS partitions. The ReiserFS partitions seem to be just fine, but the ext3's are having problems.

Help???
 
Old 07-25-2003, 01:34 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
Maybe look here: http://www.netadmintools.com/art178.html (especially the 'data=journal' option for Ext3). I haven't tried it myself, but it looks it may help.
 
Old 07-25-2003, 07:47 PM   #3
Eudyptes
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2
Posts: 3

Rep: Reputation: 0
Have you considered a UPS (Uninterruptable Power Supply)? Most of the modern ones can be setup to cleanly shutdown your system after a power failure (after a certain amount of failure time). Plus they condition the line, and if the PCs are connected to a circuit with heavy machinery (esp. motors), this will greatly increase the life of the PC equipment.
 
Old 07-25-2003, 10:38 PM   #4
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Slackware 10
Posts: 93

Rep: Reputation: 15
You've GOT TO, GOT TO (one more time) GOT TO have a UPS with Linux.

Dunno about Windows, but with Linux, writes to the disk are often cached, meaning they are not written immediatly to the disk, but are stored in memory, and written to the disk at intervals. This means that if the power goes out unexpectedly, your files can (and probably will) become corrupt.

You can get an inexpensive UPS for about 60 bucks. Look for one with a USB port and cable, which you can plug into your box. It's fairly straightforward to set up Linux to sense when the power goes out, and shut down safely.

One more time. You've GOT TO get a UPS. Anyone who does not have a UPS under Linux is begging for trouble.
 
Old 07-25-2003, 10:44 PM   #5
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Slackware 10
Posts: 93

Rep: Reputation: 15
Quote:
Originally posted by Eudyptes
Have you considered a UPS (Uninterruptable Power Supply)? Most of the modern ones can be setup to cleanly shutdown your system after a power failure (after a certain amount of failure time).
You don't even need a 'modern' UPS to get your system to shut down after a power failure... you can use the dumbest UPS in the world, and still have your system shut down safely when the power goes out. Here's the idea:

http://www.tldp.org/HOWTO/UPS-HOWTO-7.html

The idea here is that you find an old serial modem, and hook it up. Tell 'powerd' that the serial modem is your UPS. When the modem loses power, 'powerd' does it's thing, and brings your system to a safe shut-down. This is not as nice as having a 'smart' UPS, but it works great for me!
 
Old 07-26-2003, 12:28 AM   #6
Eudyptes
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2
Posts: 3

Rep: Reputation: 0
Thumbs up

Quote:
Originally posted by jlangelier:
The idea here is that you find an old serial modem ....
Now that's cool. Would never thought to try that.

Thanks.

Last edited by Eudyptes; 07-26-2003 at 12:32 AM.
 
Old 07-26-2003, 03:13 PM   #7
KendersPlace
Member
 
Registered: Feb 2003
Location: Phoenix, AZ - USA
Distribution: RedHat 8, Micro$haft
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you!!

Thanks for the help. I'll check into the ext3 journal options, might not be a bad idea.

I didn't realized linux cached so much write data for the drive - this actually makes a LOT of sense over windows, it also explains why our systems are getting messed up.

I didn't realize it was so easy to get a UPS to tell the linux box that power had gone away. Now if I can get a UPS to tell more than one PC that power went away (usually we hook up 2 or 3 of them, and getting that many UPS units is kinda silly) I'll be all set.

Thanks again for some good info.
 
Old 07-27-2003, 01:38 AM   #8
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Post Special Note on UPS

There are many different kinds of UPS. The ones that cost less than 100 US dollars are stand-by UPS. These are not truly UPS because when the power goes out it switches off for a few milliseconds to switch to the battery. A true UPS device is an in-line. These UPS are always hooked up to the battery. If the power goes out or the voltage levels goes lower than 100 volts, your system will still get the normal AC voltage 120/240.

You can always change to a different filesystem like reiserfs, xfs, jfs....
 
Old 07-27-2003, 03:21 AM   #9
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,053
Blog Entries: 2

Rep: Reputation: 47
Thumbs up I agree/ network advice possible

You must have a UPS. Our power doesn't go out it just blinks a lot. I have a home system and my UPS went out. It's will be here soon. Linux usually empties cache about every 30 to 60 seconds depending on how much data there is.
I plan to buy one made by Cyberpower. It's about $150.00. It's a bit of overkill but since I have a large power hungry 19" monitor. . . .

I read somewhere that you can make a whole network of systems shutdown when power fails. I think it's upsmon? I'm not sure. If not pm me and I'll look to see if I can find it. It's on my system somewhere, I think.

Good luck.

 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fault tolerant IMAP server setup mikenac Linux - Software 2 02-27-2005 10:52 AM
segmentation fault during boot up peterheutz Linux - Software 6 10-02-2004 06:30 PM
Fault during boot. T3DLuke Fedora 2 04-06-2004 05:01 PM
Cannot boot; Segmentation Fault Error Evan P. Linux - Newbie 2 11-24-2003 09:06 AM
Cannot boot; Segmentation fault. Can I ftp? Evan P. Linux - Newbie 1 11-21-2003 09:36 PM


All times are GMT -5. The time now is 11:17 AM.

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