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) > > >
John R Pierce
2015-Jul-04 08:25 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 1:02 AM, Jatin Davey wrote:> [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 ?I've never heard of a UPS built into a server, every one I've ever seen has been external... the mains power cable(s) for the server are plugged into the UPS. The UPS communications can be over ethernet, or USB, or serial signaling cable, depending on what sort of UPS. for an example, in my lab, each of my two racks has a pair of 7KVA UPS's in the bottom of the rack. these UPS's also have network cards, and are plugged into my management LAN. for my servers to talk to these UPS's, I need to know the IP address that the UPS is configured for. -- john r pierce, recycling bits in santa cruz
Jatin Davey
2015-Jul-04 08:26 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 1:32 PM, Jatin Davey wrote:> 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) >> >> >> > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >I dont seem to have a battery in my server. ********************************** [root at node-103 ~]# ls /proc/acpi/battery/ [root at node-103 ~]# ********************************** Thanks Jatin
Jatin Davey
2015-Jul-04 08:32 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 1:55 PM, John R Pierce wrote:> On 7/4/2015 1:02 AM, Jatin Davey wrote: >> [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 ? > > I've never heard of a UPS built into a server, every one I've ever > seen has been external... the mains power cable(s) for the server are > plugged into the UPS. The UPS communications can be over ethernet, > or USB, or serial signaling cable, depending on what sort of UPS. > for an example, in my lab, each of my two racks has a pair of 7KVA > UPS's in the bottom of the rack. these UPS's also have network cards, > and are plugged into my management LAN. for my servers to talk to > these UPS's, I need to know the IP address that the UPS is configured > for. > > >No , i was referring to the battery backup unit within the server. Since the server was installed by someone else across geographies i am not aware of its details. I have found that the server does not have a battery backup unit as seen from the output below: ********************************** [root at node-103 ~]# ls /proc/acpi/battery/ [root at node-103 ~]# ********************************** As of the UPS connectivity over LAN , I dont think this is done for the server that i am using currently. Thanks Jatin
John R Pierce
2015-Jul-04 17:22 UTC
[CentOS] Gracefully powering off system in case of power failure
On 7/4/2015 1:26 AM, Jatin Davey wrote:> I dont seem to have a battery in my server. > > ********************************** > [root at node-103 ~]# ls /proc/acpi/battery/ACPI would report on the sort of battery that a LAPTOP has. -- john r pierce, recycling bits in santa cruz
Apparently Analagous 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