From owner-freebsd-questions@FreeBSD.ORG Mon Feb 18 19:05:40 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 72B3916A417 for ; Mon, 18 Feb 2008 19:05:40 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADD013C461 for ; Mon, 18 Feb 2008 19:05:39 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so606733nfb.33 for ; Mon, 18 Feb 2008 11:05:38 -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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=ZRzu/zgF8K0e93CL2kiaS8+e0215J5INxiWpNfEq7gs=; b=nI+6RtElNiUQWsznwUP1nE7Vs9ZJmA6DtOdRh2l6npttoxQpVrnI5+INv7vC1MIectaEW+fhGJaFlOTQ8GY7V3e66AT3scval61zAMq2Eq2Mb9ELR7LL9+O/zid9f7RWpibjJejh+B8zkXxeQcS6myhC3g4SgpiJ46Kz8VKFrkQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tGiAngiEFhdeiPlbGrWeynt5/OrNZWB8XugGYUjyUmrKof+3YGW338TkGUlOOZAG4OoLouqHAerZy2Prs+VRHgAWd5oQszt37eJoDhaNe2KqPFykMLj1JSFsp4///uVYYcN9dvMWCPxaRNRutUpXnUtjlOzQELrOzDZqN/5HRSg= Received: by 10.78.97.7 with SMTP id u7mr9717449hub.50.1203361538141; Mon, 18 Feb 2008 11:05:38 -0800 (PST) Received: by 10.78.130.5 with HTTP; Mon, 18 Feb 2008 11:05:38 -0800 (PST) Message-ID: <94136a2c0802181105k41452f1br4322bcceb907923a@mail.gmail.com> Date: Mon, 18 Feb 2008 20:05:38 +0100 From: "Zbigniew Szalbot" To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: UPS / USB / system reboot 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: Mon, 18 Feb 2008 19:05:40 -0000 Hello, I am running apcupsd. Toady we had several power failures. One of them lasted longer than the UPS was able to sustain. So: Mon Feb 18 15:21:06 CET 2008 Power failure. Mon Feb 18 15:21:12 CET 2008 Running on UPS batteries. Mon Feb 18 16:40:19 CET 2008 Battery power exhausted. Mon Feb 18 16:40:19 CET 2008 Initiating system shutdown! Mon Feb 18 16:40:19 CET 2008 User logins prohibited Mon Feb 18 16:40:19 CET 2008 Attempting to kill the UPS power! Mon Feb 18 16:40:25 CET 2008 UPS will power off after 180 seconds ... Mon Feb 18 16:40:25 CET 2008 Please power off your UPS before rebooting your computer ... Mon Feb 18 16:40:57 CET 2008 apcupsd exiting, signal 15 Mon Feb 18 16:40:57 CET 2008 apcupsd shutdown succeeded First of all, I am not really sure why it says to power off UPS before reboot. It often happens that with power failuers there's no one around. Secondly, the system was unable to reboot, not sure but the culprit seems to be this entry in fstab: /dev/ad3s1d /backup ufs rw 2 2 ad3s1d is a USB hard drive. It is normally unmounted and I think it was unmounted while power failure occured. Why would it cause problem while system is resuming operation? Feb 18 16:40:25 lists apcupsd[493]: Please power off your UPS before rebooting your computer ... Feb 18 16:40:25 lists shutdown: halt by root: apcupsd initiated shutdown Feb 18 16:40:57 lists rc.shutdown: 30 second watchdog timeout expired. Shutdown terminated. Feb 18 16:40:57 lists init: /bin/sh on /etc/rc.shutdown terminated abnormally, going to single user mode Feb 18 16:40:57 lists syslogd: exiting on signal 15 The result was I had to come to the site and fsck, then comment out the /backup line in fstab. Only then the system was able to start. Otherwise it complained about not being able to find /backup or the like but I cannot now find the precise message in logs. Your advice is greatly appreciated! -- Zbigniew Szalbot