From owner-freebsd-questions@freebsd.org Tue Sep 4 14:47:57 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E483FFF18F3 for ; Tue, 4 Sep 2018 14:47:56 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 953407289C for ; Tue, 4 Sep 2018 14:47:56 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) by kicp.uchicago.edu (Postfix) with ESMTP id 3E453718086; Tue, 4 Sep 2018 09:47:50 -0500 (CDT) Subject: Re: APC UPS BackUPS Pro (BX1500M) To: Daniel Feenberg Cc: Chris Gordon , C Gray , FreeBSD References: <9B877978-297C-499C-86CE-99B68B570245@council124.org> <92A53B5A-BEC2-4A8C-828F-0AD180E30BD0@theory14.net> <59593.108.68.162.197.1536028420.squirrel@cosmo.uchicago.edu> From: Valeri Galtsev Message-ID: <69d5da40-b66e-a962-5946-052f87b7897c@kicp.uchicago.edu> Date: Tue, 4 Sep 2018 09:47:50 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 14:47:57 -0000 On 9/4/18 8:34 AM, Daniel Feenberg wrote: > > > On Mon, 3 Sep 2018, Valeri Galtsev wrote: > >> >> To solve this last trouble I configure since forever in BIOS power ON >> after AC power is returned. Usually if UPS has drained battery, after >> power returns, it powers itself ON, provides power to outputs and starts >> charging battery. We had this situation once, outage longer that UPS's on > > What happens if power returns during the shutdown sequence? The power > never goes off, therefore never turns on, and the computer remains off. > Is there a solution other than remote control? You are absolutely right. So, as far as I remember apcupsd will try to abort shutdown, and if the machine didn't go too far in shutdown sequence, all will stay. Someone who read apcupsd more recently that I did, please, correct me if I'm wrong here. Incidentally, if on battery run is 20 min and shutdown starts 2 min before battery drained, the chance of outage to be exactly that long is at least 10 times smaller that outage shorter than that. But, exactly as you said, the machine may get shut down, and stay if outage duration in in that narrow range. Now, if this happens, you deal with the situation from external box. This is the case when you need more important machine that is behind UPS with much longer on battery run time. And if you run something like nagios (or other host/service watch system), that box can send WOL (Wake On LAN) signal some 5 min after it notices that machine is off line. Now you have really robust system. I hope, this helps. Valeri > > Daniel Feenberg > NBER -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++