From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 12:23:30 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 42F61106566B for ; Mon, 8 Sep 2008 12:23:30 +0000 (UTC) (envelope-from gunther.mayer@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id C83E98FC25 for ; Mon, 8 Sep 2008 12:23:29 +0000 (UTC) (envelope-from gunther.mayer@googlemail.com) Received: by ug-out-1314.google.com with SMTP id j3so252040ugf.39 for ; Mon, 08 Sep 2008 05:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:content-type:content-transfer-encoding:from; bh=yYMm0fuo2GnmKSeuUEFSRsIiJe4pigv+dAEI7RjVpXE=; b=WfwPMC/cCLLbR3R2r1IRzqgP/mJ3CVZ+XkyGIyij9i7ipFhNHtuo4gMl/hZ52A1SNa H1vvBiApTIwIo3ela5MwK/0IHnsEZuvGD7/bsz9QHLI41JH/HkqoUiuu5nngUHR8vhJD uuef7wSGGDWZTi9KS2sB4nfGcmb30et8+Hg1U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:content-type :content-transfer-encoding:from; b=WQN1WpNuMCmMT/fy3VFEldBfu8wLJog5M9yzQk12Au0ORhRf0fIWRF0u45VkPaebbJ 8mgjNaR9C0lXKCKtkhcE4MiOQuwi6mPBQNiREWHvDtReS+AGTMTPIyy2PIHfKYqym9Hk ILDU8L8MJIbW8oMdAPtE3XQSN60S0LHuLr0Ng= Received: by 10.210.126.18 with SMTP id y18mr18676286ebc.100.1220875286845; Mon, 08 Sep 2008 05:01:26 -0700 (PDT) Received: from ?172.25.0.181? ( [196.7.14.186]) by mx.google.com with ESMTPS id g11sm7776427gve.8.2008.09.08.05.01.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Sep 2008 05:01:26 -0700 (PDT) Message-ID: <48C51410.5090305@gmail.com> Date: Mon, 08 Sep 2008 14:01:20 +0200 User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Gunther Mayer Subject: File system corruption upon reboot with gmirror 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, 08 Sep 2008 12:23:30 -0000 Hi guys, I recently updated my FreeBSD 6.3 on our server to the latest patch with freebsd-update and seeing that it involved some kernel patches on 64bit I had to reboot. So I carried out an automated reboot during low-load times but alas, the box never came back up again. After gaining physical access to the console I realised that it choked on the unclean /usr file system and was unable to proceed as the automatic fsck failed, prompting for an emergency shell. An fsck -y followed by a reboot sorted out the issue but it caused a good 1.5h of total downtime which should have been only 4min. So, why was the file system unclean even though I rebooted properly? Afaic this only happens on a power loss or otherwise unclean shutdown but I used the "reboot" command from the shell (in a background (sleep 21600; reboot) & but that shouldn't matter). So surely it would have flushed all the buffers in time? Or is the standard 60 seconds it waits maximum for kernel tasks to finish upon reboot too low and it couldn't finish in time (in which case, how do I change that?)? To give you a bit more background, I run a gmirror(8) RAID 1 over two disks whose health seems intact (zero bad gmirror log entries): $ mount /dev/mirror/gm0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/mirror/gm0s1e on /tmp (ufs, local, soft-updates) /dev/mirror/gm0s1f on /usr (ufs, local, soft-updates) /dev/mirror/gm0s1d on /var (ufs, local, soft-updates) Gunther