LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2006, 08:19 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
how to avoid "your system appears to have shut down uncleanly" ?


Hi!
I run 2 Fedora Servers. One is FC5, I installed & configured it myself and it works fine. When a power breakdown happens, it just reboots fine, starts all services again, and everything works fine.
The second one is a FC3, I didn't install it myself. When a power breakdown happens, then I always get error messages like
Quote:
your system appears to have shut down uncleanly
. I have then to login as root and run fsck, then is everything ok. The problem is that it's a server, and it should be able to reboot without any problem.
Where should I look and what could I change in order to have this server rebooting alone without any problem after a power breakdown?

thanks for any suggestion.

Last edited by xpucto; 08-01-2006 at 08:21 AM.
 
Old 08-01-2006, 10:21 AM   #2
myates1980
Member
 
Registered: Jul 2006
Location: Lancaster, PA
Distribution: Slackware, FreeBSD,
Posts: 43

Rep: Reputation: 15
what filesystems are they running off of? I switched from reiserfs to ext3 because of this same problem.
 
Old 08-01-2006, 03:29 PM   #3
zytsef
Member
 
Registered: Apr 2006
Location: Vancouver, Canada
Distribution: Slackware, Ubuntu
Posts: 168

Rep: Reputation: 30
Sounds like your init scripts are messed up. The system should fsck all regular partitions whenever it tries to mount them after the system is incorrectly taken down.
 
Old 08-02-2006, 02:58 AM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
I use ext3.

Quote:
Originally Posted by zytsef
Sounds like your init scripts are messed up. The system should fsck all regular partitions whenever it tries to mount them after the system is incorrectly taken down.
What can I do? I saw somewhere a script to run fsck automatically when the error message about "shut down uncleanly" appears. Would it be a good idea to use it? Actually I'd rahter clean the mess in order not to have this error messages anymore. But I do not know how.
 
Old 08-02-2006, 11:16 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
shutdown -rF will reboot your computer and Force a fsck when it reboots.
You will need to run fsck every time your computer shuts down "uncleanly" eg with a power failure. You may still loose data, and fsck may not always be able to repair the filesystem. So it is best to avoid power failures!. If your electricity supply is unrelaible, you should consider investing in a UPS.

HTH
 
Old 08-02-2006, 11:44 AM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I second the UPS! If your data is important to you (and since it is on a server I assume it is) then it would be best. If you think that is too expensive of an option consider how much money/productivity would be lost to your organization if the server was down for an extended period of time while the OS was reloaded and data restored.
 
Old 08-03-2006, 04:00 AM   #7
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
thanks for all the answers. We already have a small ups but it only lasts a few minutes, just enough time to shut down the computers cleanly if someone is around when the power failures happens. Buying a bigger ups would be too much expensive for us. We have 3 servers. The last power failure happened on a we when nobody was there. So I would need 3 ups that are big enough to give power during at least a few hours.
The thing is: the other server doesn't have any problem with power failue. That's why I was wondering if I could not make a few things a bit cleaner on my system. But I do not know why.
I'll look for new ups though. Power failure can happen all the time and it shoudn't make such a mess as it has done so far. Is it possible to find 1 ups for 3 servers?

Last edited by xpucto; 08-03-2006 at 04:02 AM.
 
Old 08-03-2006, 04:29 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
There are UPSes with monitoring cables (serial or USB) available, some of
which have linux daemons; those will allow you to shut the machines down cleanly
while there's still power left. E.g. if the UPS has 5 minutes all together
it could start shutting the server(s) down after 2 minutes on battery.


Cheers,
Tink
 
Old 08-03-2006, 06:01 AM   #9
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Tinkster
There are UPSes with monitoring cables (serial or USB) available, some of
which have linux daemons; those will allow you to shut the machines down cleanly
while there's still power left. E.g. if the UPS has 5 minutes all together
it could start shutting the server(s) down after 2 minutes on battery.


Cheers,
Tink
Thanks for the tipp. I guess I'll try this. Any shopping suggestions? UPS that work fine with linux?
thanks.
 
Old 08-03-2006, 08:29 AM   #10
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
I think that any ups from APC that has a monitoring cable will work with linux.
 
Old 08-03-2006, 02:23 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Have a look at this one:
http://www.networkupstools.org/compat/stable.html

May have just what you want. If that's not enough options,
there's another 32 UPS projects mentioned on http://freshmeat.net


Cheers,
Tink
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
"root=" option for SATA drives to avoid kernel panic neelay1 Linux - Software 1 05-01-2006 02:18 PM
Ubuntu: "There already appears to be an X server running on display :0." enderjm Debian 3 12-29-2004 08:46 AM
System uncleanly shut down, ran e2fsck, very slow start & slow desktop brakthepoet Linux - Newbie 1 07-02-2004 02:55 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
cannot execute "/sbin/agetty" <-- appears during kernel boot process CestusGW Linux - General 2 01-10-2004 06:16 PM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration