Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-02-2009, 11:33 AM   #1
Registered: May 2007
Posts: 75

Rep: Reputation: 15
if power off unexpected is it any where logged ?

I have failed our servers and did not know how it goes down unexpected, can is there any way if power off unexpected is it any where logged on linux ?
Old 09-02-2009, 11:48 AM   #2
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
If the power goes off unexpectedly, the server would have to power to write that into a log.

I think the best you can probably do is check when the last entries in the "/var/log" files were made. That would give you approximate time of shutdown. And, might give you a clue as to what was running when it died. If you are wondering about it being a hardware failure, knowing when it died and what was running might help you track down the problem.

If it was a simple power failure, then without a battery backup which can communicate with the server itself, there's no way I know of to know when exactly the system shut down.
Old 09-02-2009, 12:00 PM   #3
Registered: May 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks for advise, can is it a way to know about powerfailure or linux logging any where ?
Old 09-02-2009, 12:02 PM   #4
Senior Member
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you have a UPS that linux talks to, it will shut down the server "normally" and you can add a marker in your shutdown script. If you do not have a UPS, the OS (whichever you use) will not have time to write anything.
Old 09-02-2009, 12:06 PM   #5
Registered: May 2007
Posts: 75

Original Poster
Rep: Reputation: 15
Yes! sure, Thanks all of you


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
power company idiots cut power while system was on, now hangs at boot with # prompt shroomy_bee Linux - Newbie 10 07-04-2008 01:12 AM
LXer: Linux Networx partners with CEI to power 2X visualization power of ... LXer Syndicated Linux News 0 04-26-2006 04:03 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 02:17 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 05:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 PM.

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