From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 23:38:52 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 A3FE416A420 for ; Thu, 10 Jan 2008 23:38:52 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id 7D06D13C46B for ; Thu, 10 Jan 2008 23:38:52 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so866956rvb.43 for ; Thu, 10 Jan 2008 15:38:52 -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=Z1pRtvyPuIGvl6P1Zta+GojiZwDO/iW/wtw4IiBFlzA=; b=PhbePkexdAJYCQIuWiOKokY23RYgYW6fTcyqM1M9/BK+/Ur+/mnKq/qNeodUsUPWFLYgMtT9lBA+rqUT7YE+6mlH8OuLXiABELq7zvYlPrHivwFtTcOHlY15FskPl+uj05EjV17AcZcRzxagJ/XGa0ayc9ndTWiUg3wGmqQtWaQ= 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=MQPOZRFEAI4+/MSidF4hewXy8dk5N1PyTwywPjYrRRTGtDRlL0QtR3hQ5GAe01U38b0mWI1MvaDfCkEHy/oLqsBReDaJRbL+FoqtLM6THSXHHpRs2xSYCU1sEkJZZ4oFbeTJIJFUKcTAV3LOYCUUwsoFDa7SdI2UiM0dJ/3pWmY= Received: by 10.141.90.17 with SMTP id s17mr1576664rvl.241.1200006861693; Thu, 10 Jan 2008 15:14:21 -0800 (PST) Received: by 10.141.142.18 with HTTP; Thu, 10 Jan 2008 15:14:21 -0800 (PST) Message-ID: <54db43990801101514y317a2889l7ad18fa4ffce56be@mail.gmail.com> Date: Thu, 10 Jan 2008 18:14:21 -0500 From: "Bob Johnson" To: "Derrick Ryalls" In-Reply-To: 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> Cc: 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:38:52 -0000 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. - Bob