From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 23:52:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F24E016A41B for ; Thu, 10 Jan 2008 23:52:13 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by mx1.freebsd.org (Postfix) with ESMTP id C5B7213C47E for ; Thu, 10 Jan 2008 23:52:13 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so520485nzf.13 for ; Thu, 10 Jan 2008 15:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KQ6BeNw1IGbseBfxcjJSAtsWVjPDcKzZA6/2ZhLxdnM=; b=p2ES5MM4+o0zgmNgjvj8obBAaQBRDVU/zv5rRKBOG+V4GZb+G7Z7PJ8dUGBiCepz75LRhY7D1fvw+f720bFk1QGGy5MciDkFes70Pcz43kaWGpFPMngOXDUf9JWMRgkPhpMDpURewShlvDO4ukmDRPCgyjXA1C9P+Hcu7F0vVSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=StillW+s0xVSJLkHxXxy+2iLjxH7JTtGl0cHjpyz0hc4SZMqWGKcv1CqZTAQPaugvhDbW16Dxp+35U3eHsf0Oay7PACFSyTRMpx9EP/li3JeILhuvtbggkN8l1b3n3JrNfBKbwnp4gPhceOyrUv96tfkc2VrJZYpxEhDjsz/R5Y= Received: by 10.142.108.14 with SMTP id g14mr1446435wfc.52.1200009132617; Thu, 10 Jan 2008 15:52:12 -0800 (PST) Received: by 10.142.72.20 with HTTP; Thu, 10 Jan 2008 15:52:12 -0800 (PST) Message-ID: Date: Thu, 10 Jan 2008 15:52:12 -0800 From: "Kurt Buff" To: "Bob Johnson" In-Reply-To: <54db43990801101514y317a2889l7ad18fa4ffce56be@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6.0.0.22.2.20080110025841.023a9bb8@mail.computinginnovations.com> <6.0.0.22.2.20080110155430.023d29d8@mail.computinginnovations.com> <54db43990801101514y317a2889l7ad18fa4ffce56be@mail.gmail.com> Cc: Derrick Ryalls , FreeBSD Questions Subject: Re: Nut and RAID on FreeBSD 7.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 23:52:14 -0000 On Jan 10, 2008 3:14 PM, Bob Johnson wrote: > On 1/10/08, Derrick Ryalls wrote: > > > > > Perhaps I need to re-evaluate my line of thinking. Light sometime > > flicker, but power almost never goes out. When it does it is either > > back on in less than 1 minute, or out for hours. If the UPS detects > > critical correctly and gives me at least a minute before death, then > > that should be plenty of time for the system to auto-shutdown. Guess > > I will have to do some experimentation tonight. > > While you experiment, keep in mind the following sequence of events: > > -- Power fails > -- UPS signals low battery > -- System shuts down > -- Power returns before UPS shuts itself down > --> System never reboots, because it never lost power. > > Getting around this is the tricky part. I haven't used NUT in about > seven years, but back then the recommendation was to shut down to > single user mode and run a script that delayed for some time longer > than the remaining battery life of the UPS, then rebooted the system. > There didn't seem to be an easy hook for running a script after > shutting down to single user mode (maybe there is now). > > I haven't looked at NUT recently, but I expect the various flags that > you are supposed to test are another way around this problem. At which point, you either hit the power button manually, or you telnet/ssh/web to your contollable PDU and tell it to remove power from the outlet(s) for 10 seconds. Kurt