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
John R Pierce
2015-Jul-04 07:37 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 12:28 AM, Jatin Davey wrote:>> > My server supports ACPI 4.0 standard , Will that be helpful ?does `init 0` as a root command cause it to gracefully shut down and power off ? thats all the ACPI support you need. what brand/model UPS (battery backup) do you have ? the UPS software, apcupsd and/or NUT, needs to listen to the UPS to tell it when the power has failed, then it can tell your OS to shutdown after a suitable delay (if your UPS is good for 30 minutes, you might not want to shut down until the power has failed for 15 minutes, so brief outages don't cause a shutdown) -- john r pierce, recycling bits in santa cruz
Jatin Davey
2015-Jul-04 08:02 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 1:07 PM, John R Pierce wrote:> On 7/4/2015 12:28 AM, Jatin Davey wrote: >>> >> My server supports ACPI 4.0 standard , Will that be helpful ? > > does `init 0` as a root command cause it to gracefully shut down and > power off ? thats all the ACPI support you need.[Jatin] Yes, init 0 does gracefully shutdown the server and power off.> > > what brand/model UPS (battery backup) do you have ?[Jatin] I am still reading through the documentation of my server to find out the battery backup in it. Is there any command within the OS that i can use to find out this information ?> the UPS software, apcupsd and/or NUT, needs to listen to the UPS to > tell it when the power has failed, then it can tell your OS to > shutdown after a suitable delay (if your UPS is good for 30 minutes, > you might not want to shut down until the power has failed for 15 > minutes, so brief outages don't cause a shutdown) > > >
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