From owner-freebsd-questions Sun Jun 16 8: 9: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f145.law7.hotmail.com [216.33.237.145]) by hub.freebsd.org (Postfix) with ESMTP id A03AA37B40F for ; Sun, 16 Jun 2002 08:08:58 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 16 Jun 2002 08:08:58 -0700 Received: from 63.170.174.190 by lw7fd.law7.hotmail.msn.com with HTTP; Sun, 16 Jun 2002 15:08:57 GMT X-Originating-IP: [63.170.174.190] From: "Jon Larssen" To: fbsd-q@bzerk.org Cc: freebsd-questions@FreeBSD.ORG Subject: Re: UPS scenario; HOWTO? Date: Sun, 16 Jun 2002 11:08:57 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Jun 2002 15:08:58.0581 (UTC) FILETIME=[BD7E0850:01C21547] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, >From: Ruben de Groot >On Thu, Jun 13, 2002 at 09:34:57AM -0400, Jon Larssen typed: > > Hi, > > > > I'm adding a UPS to my FreeBSD server, and after reading docs > > and such, I think I understand the process. But I have one > > question regarding a far fetched scenario. Just imagine this: > > > > (1) Power goes out, the UPS goes into "battery" mode. > > > > (2) The power daemon notices this and allows a 5 minutes > > (complete configurable) grace time just in case > > power is restored in that chunk of time. > > > > (3) Tough luck! Nope, no AC power. The power daemon than > > signals the operating system to shutdown. > > > > (4) As was told to do so, FreeBSD will shutdown. That > > ends with a message of the like of "Press any key > > to reboot". > > > > (5) The server, then, is officially halted. We've got no > > AC power and the UPS battery will soon be drained > > out. > > > > (6) Wait! AC is restored and the UPS was still up. The > > lights go green and the buzzer finally quiets. But > > the server will be in "Press any key to reboot" mode > > indefinitely... > > > > or until wither me or one of my coworkers actually press a key. > > > > This problem has a solution? Hack? Workaround? > >When using APM you can halt the server with shutdown -p. That way >the power will be turned off completely. When AC is restored later, >the system will boot again. Hmm, no, that's not what I asked :) Look at (6) above. The problem is that AC was restored to the battery BEFORE it depleted, so technically the battery NEVER was off. And the server is down--either waiting for a key to reboot or APM'd down. Get it now? I mean, I tried friday and yes, I'm hosed if that situation arises :| Best regards, Jon Larssen. _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message