From owner-freebsd-current@FreeBSD.ORG Tue Mar 25 18:49:14 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA0037B434 for ; Tue, 25 Mar 2003 18:49:14 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A13B4411B for ; Tue, 25 Mar 2003 18:43:43 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0212.cvx21-bradley.dialup.earthlink.net ([209.179.192.212] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18y0t9-0001Bl-00; Tue, 25 Mar 2003 18:43:40 -0800 Message-ID: <3E81138B.B536F19C@mindspring.com> Date: Tue, 25 Mar 2003 18:42:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kevin Oberman References: <20030325211426.1E1E95D08@ptavv.es.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a445fa9e871e2e51dc41c8dfee6851c952350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Spam-Status: No, hits=-21.9 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT, RCVD_IN_OSIRUSOFT_COM,RCVD_IN_UNCONFIRMED_DSBL,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@freebsd.org Subject: [Re: Unclean sync in current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 02:49:26 -0000 X-List-Received-Date: Wed, 26 Mar 2003 02:49:26 -0000 Kevin Oberman wrote: > > I've been seeing this for a couple of weeks since I updated my laptop to > CURRENT. I do a normal shutdown (-p or -r) and reboot. The shutdown > looked normal, with no problems reported with the sync, but, when the > system is rebooted, the partitions are all shown as possibly > unclean. From my dmesg: > Mounting root from ufs:/dev/ad0s3a > WARNING: / was not properly dismounted [ ... ] There was an issue reported some time back about the power being shut off before the disks had been forced to sync their write caches out to stable storage, resulting in this behaviour. I believe Soeren updated the driver to force this sync before returning, at least for ATA drives, so you may just be running stale code. Alternately, you may just have disk drives that ignore the command. I think it was controlled by a sysctl with "sync" in the name, so you might want to look it up via: sysctl -A | grep sync if you are in fact running the most recent -CURRENT. I think there was a delay factor, in seconds, involved (FWIW). Another alternative is to disable write caching on the disk, as a workaround (amazing how many times recently that that's been the answer to someone's problem...). -- Terry