From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 16:34:31 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0237016A419 for ; Fri, 9 Nov 2007 16:34:31 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) Received: from ppsw-6.csi.cam.ac.uk (ppsw-6.csi.cam.ac.uk [131.111.8.136]) by mx1.freebsd.org (Postfix) with ESMTP id 8D72713C4B3 for ; Fri, 9 Nov 2007 16:34:30 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from gw.cjkey.org.uk ([88.97.163.222]:2965 helo=[192.168.2.186]) by ppsw-6.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:465) with esmtpsa (PLAIN:cjk32) (TLSv1:DHE-RSA-AES256-SHA:256) id 1IqWoE-0002m8-Jn (Exim 4.67) for questions@freebsd.org (return-path ); Fri, 09 Nov 2007 16:34:18 +0000 Message-ID: <47348BDE.9090206@cam.ac.uk> Date: Fri, 09 Nov 2007 16:33:34 +0000 From: Christopher Key User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: OT: Looking for some inpiration with UPS setup 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: Fri, 09 Nov 2007 16:34:31 -0000 Hello, Apolgies for the slightly OT post, but I'm hoping that some of the ammased expertise might be able to suggest a solution. I've a FreeBSD fileserver, a solid state router (Linksys box running OpenWRT) and a couple of gigabit switches that I'd like to move onto a UPS (I'm primarily looking at the APC Smart-UPS line). The requirements for the FreeBSD system are pretty simple, it's not likely to be of any use if the power's out, so after a few minutes to allow any files open over the network to be saved, it should perform an orderly shutdown and remain off until the power returns. However, the router is a little different. It maintains some state information in RAM (dhcp leases etc) that I'd prefer not to lose during a short power outage, and it would also be useful to retain internet access, so ideally I'd like the router and switches to stay up for as long as the battery lasts in the UPS. Space and budget are limited, so ideally I'd like to achieve all this with a single UPS, which is where the problems arise. As I understant it, when the UPS wants to wake the attached machines up, it power cycles its output. This however will reset the router, which was what I was hoping to avoid. I've thought around the problem for some time, but not come up with any convincing solutions: 1) Use some sort of WOL command from the router to the FreeBSD system rather than having the UPS power cycle its output. How does the router know the power's returned? Can the UPS be set not to power cycle its power output when the power returns? 2) Use a second cheap UPS to 'protect' the router whilst the primary UPS cycles its power output. This seems rather crude, and would presumably reduce the battery life of the primary UPS due the losses in the second UPS. 3) Have the UPS wake the PC via some other means. USB would seem to ideal choice, but the motherboard won't do a wake on USB from S5, and I'm can't find a UPS with an ethernet interface. 4) KISS. Buy two smaller, cheapers UPS units. Does anyone have any clever ideas for a solution? Any thoughts much appreciated. -- Regards, Chris