Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th March 2013, 09:54 PM
manueln19 Offline
Registered User
 
Join Date: Feb 2013
Location: usa
Posts: 25
windows_xp_2003firefox
Question Server shuts down suddenly *HELP*

Hi. I have a Server running fedora core 8.
The client is a small office.
The server is used for storage only.

They doesn't work 24hours, for this reason, at the moment they close the office, they put the breakers down. Turn Off the office complete.

The server is always shuts down suddenly.

So, i edited the file: /etc/rc.d/rc.sysinit
and add this line at the begining:

/sbin/fsck -y

I did this, so, everyday when the server start, when boot process, before mount the disk, clean the disk for possibles errors. And it does!.

But sometimes it doesn't work, because sometimes the server says:

Code:
*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required. "
 *** /etc/selinux/config indicates you want to manually fix labeling"
*** problems. Dropping you to a shell; the system will reboot"
*** when you leave the shell."
...
...
..etc
so, i need to run manually:

umount /dev/sda1
fsck -y /dev/sda1
reboot

Then the system boot normally.

What I want?
I want this never happen! I want the server always boot without any issue, at least is not a physical problem.
How can i solve this?
Reply With Quote
  #2  
Old 13th March 2013, 10:08 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930
windows_xp_2003chrome
Re: Server shuts down suddenly *HELP*

Simple. Tell then to stop turning off all of the power. Tell them that when they do that the server, and their data, risk serious damage. They need to leave the power on for the server.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 14th March 2013, 12:01 AM
manueln19 Offline
Registered User
 
Join Date: Feb 2013
Location: usa
Posts: 25
windows_xp_2003firefox
Re: Server shuts down suddenly *HELP*

Can someone give another solution?

---------- Post added at 11:01 PM ---------- Previous post was at 10:45 PM ----------

The error is something like this:

************* FILESYSTEM CHECK FAILED ************
*
* Please repair manually and reboot. Note that the root
* file system is currently mounted read-only. To remount
* it read-write type: mount -n -o remount,rw /
* when you exit the maintenance shell the system will
* reboot automatically.
*
*************************************************

Give root password for maintenance
(or type Control-D to continue):
Reply With Quote
  #4  
Old 14th March 2013, 12:26 AM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
linuxfirefox
Re: Server shuts down suddenly *HELP*

Quote:
Originally Posted by manueln19 View Post
Can someone give another solution?
Yes, two:
1) Add small UPS to the server so it shuts down cleanly on power failure
2) Don't bother, they want to screw their systems, let them unless you make a small fortune from cleaning up their mess all the time
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #5  
Old 14th March 2013, 02:08 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Server shuts down suddenly *HELP*

A small UPS is one solution, another solution is if they shut off the power at the same time every day, then power down the system normally before they do so. You could schedule a job with cron to run after the work day ends but before they shut off the power to shut down the server.

Another option would be to add fsck.mode=force as a kernel parameter to force a filesystem check upon every boot.

Edit:
I forget exactly which kernel version they added the fsck.mode parameter to. If it's not an option for your older kernel, you could always do a touch /forcefsck upon each boot so that a check would be forced.
Reply With Quote
  #6  
Old 14th March 2013, 03:04 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: Server shuts down suddenly *HELP*

The problem is that some filesystem corruption cannot be fixed automatically. And forcing a "y" to fsck can destroy your data (a thousand errors reported... a "y" puts a lost directory in lost+found... system fails completely due to loss of /bin.

Or worse, the directory inode gets cleared... leaving thousands of lost files... in addition to a lost /bin.
Reply With Quote
  #7  
Old 14th March 2013, 05:30 PM
manueln19 Offline
Registered User
 
Join Date: Feb 2013
Location: usa
Posts: 25
windows_xp_2003firefox
Re: Server shuts down suddenly *HELP*

Ok, The office close at 6PM but the boss sometimes keep working to 10PM.
So, I I program a Cron job to automatically shutdown the server, the server will be always shut down at 6PM. But, The boss still working using files in the server sometimes to 10PM.

What Can i do?
Reply With Quote
  #8  
Old 14th March 2013, 07:07 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Server shuts down suddenly *HELP*

I would tell the boss exactly what it's doing to the server by them shutting off the power every night.

It's possible that whoever shuts the power off could do a clean shut down of the server before they hit the breaker. Or they might be able to change how they do things and leave the power up.

You pretty much have your options here in this thread
Reply With Quote
  #9  
Old 14th March 2013, 08:15 PM
manueln19 Offline
Registered User
 
Join Date: Feb 2013
Location: usa
Posts: 25
windows_xp_2003firefox
Re: Server shuts down suddenly *HELP*

And what to do if instead a Server for storage, is a PBX based on Linux.
A phone system.

What can i do in case is a PBX ?
A PBX is always ONLINE because you probably want to make a call whenever you want.
Reply With Quote
  #10  
Old 15th March 2013, 06:52 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Server shuts down suddenly *HELP*

In that case, you would not shut off the power to it. It isn't going to be online if you shut off the power, unless you have a good UPS.

If it's critical that the server be up, then get a good UPS and don't go flipping off the breakers.
Reply With Quote
Reply

Tags
server, shuts, suddenly

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
suddenly , X server doesn't work anymore ,, Fedora12 SinaR Using Fedora 2 15th December 2009 10:47 PM
Fedora 11 shuts down itself daacosta Hardware & Laptops 5 10th July 2009 07:12 AM
PC shuts down ssharma Using Fedora 6 11th August 2008 12:31 PM
server suddenly using swap machielr Using Fedora 7 22nd October 2007 04:37 PM
Server sporadically shuts down Anadarwheels Using Fedora 3 11th April 2007 09:42 PM


Current GMT-time: 15:37 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat