Jatin Davey
2015-Jul-04 06:27 UTC
[CentOS] Gracefully powering off system in case of power failure
Hi I am using the system as shown below. ********************************* [root at localhost sbin]# cat /etc/*release LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphi cs-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Red Hat Enterprise Linux Server release 6.5 (Santiago) Red Hat Enterprise Linux Server release 6.5 (Santiago) [root at localhost sbin]# uname -a Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux [root at localhost sbin]# ********************************** In case of power failure on this server , how can i make the system to shutdown gracefully so that it unmounts the file-system and cleans up the required buffers. My server does have a battery backup so it will help in shutting down the system more gracefully. I tried looking at this link: https://www.olimex.com/forum/index.php?topic=3326.0 But it did not help. Appreciate if someone can help me in this regard. Thanks Jatin
On 07/04/15 01:27, Jatin Davey wrote: <>> In case of power failure on this server , how can i make the system to > shutdown gracefully so that it unmounts the file-system and cleans up > the required buffers. > > My server does have a battery backup so it will help in shutting down > the system more gracefully.use what is already packaged for centos: apcupsd - apc ups http://www.apcupsd.com or nut - network ups tools http://www.networkupstools.org/ apcupsd is designed to run with apc brand ups. nut is designed to run with apc and other brands. both monitor ups and will shut system down via shutdown command. i use apcupsd on my system with an apc back-ups rs 800 and have never had problems. during a 5 day power outage, i had change config so i could run system when i used a gas powered generator to supply mains and voltage would drop to a low of around 90 v. hth. -- peace out. -+- If Bill Gates got a dime for every time Windows crashes... ...oh, wait. He does. THAT explains it! -+- in a world with out fences, who needs gates. -+- CentOS GNU/Linux 6.6 tc,hago. g .
John R Pierce
2015-Jul-04 07:01 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/3/2015 11:27 PM, Jatin Davey wrote:> I am using the system as shown below. > > ********************************* > [root at localhost sbin]# cat /etc/*release > ... > Red Hat Enterprise Linux Server release 6.5 (Santiago)yeah, they have their own support forums and stuff.> In case of power failure on this server , how can i make the system to > shutdown gracefully so that it unmounts the file-system and cleans up > the required buffers. > > My server does have a battery backup so it will help in shutting down > the system more gracefully. >if your UPS is on this list, http://www.networkupstools.org/stable-hcl.html install NUT (Network UPS Tools), available from the EPEL repository, and configure it to talk to your UPS. NUT documentation: http://www.networkupstools.org/docs/user-manual.chunked/index.html> I tried looking at this link: > > https://www.olimex.com/forum/index.php?topic=3326.0 >that is advise for a tinylinux embedded system, not a EL 6 system. IMHO, you should never muck about with /etc/inittab on centos/rhel> But it did not help. Appreciate if someone can help me in this regard.I hope you restored your inittab to its original state. -- john r pierce, recycling bits in santa cruz
Jatin Davey
2015-Jul-04 07:28 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 12:27 PM, g wrote:> > On 07/04/15 01:27, Jatin Davey wrote: > <> > >> In case of power failure on this server , how can i make the system to >> shutdown gracefully so that it unmounts the file-system and cleans up >> the required buffers. >> >> My server does have a battery backup so it will help in shutting down >> the system more gracefully. > use what is already packaged for centos: > > apcupsd - apc ups > http://www.apcupsd.com > or > nut - network ups tools > http://www.networkupstools.org/ > > apcupsd is designed to run with apc brand ups. > > nut is designed to run with apc and other brands. > > both monitor ups and will shut system down via shutdown command. > > i use apcupsd on my system with an apc back-ups rs 800 and have never > had problems. > > during a 5 day power outage, i had change config so i could run system > when i used a gas powered generator to supply mains and voltage would > drop to a low of around 90 v. > > > hth. > >My server supports ACPI 4.0 standard , Will that be helpful ? Thanks Jatin
Reasonably Related Threads
- Gracefully powering off system in case of power failure
- Gracefully powering off system in case of power failure
- Gracefully powering off system in case of power failure
- Gracefully powering off system in case of power failure
- Gracefully powering off system in case of power failure