From owner-freebsd-stable@FreeBSD.ORG Thu Jul 14 19:19:49 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0C7416A41C; Thu, 14 Jul 2005 19:19:49 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id F305143D45; Thu, 14 Jul 2005 19:19:48 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr14.xs4all.nl (8.13.3/8.13.3) with ESMTP id j6EJJh5r036686; Thu, 14 Jul 2005 21:19:43 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.3/8.13.3) with ESMTP id j6EJJg1t098665; Thu, 14 Jul 2005 21:19:42 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j6EJJgIG098664; Thu, 14 Jul 2005 21:19:42 +0200 (CEST) (envelope-from wb) Date: Thu, 14 Jul 2005 21:19:42 +0200 From: Wilko Bulte To: Kevin Oberman Message-ID: <20050714191942.GA98637@freebie.xs4all.nl> References: <42D6B117.5080302@plab.ku.dk> <20050714191449.A8A615D07@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050714191449.A8A615D07@ptavv.es.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: dangerous situation with shutdown process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 19:19:49 -0000 On Thu, Jul 14, 2005 at 12:14:49PM -0700, Kevin Oberman wrote.. > > Date: Thu, 14 Jul 2005 20:38:15 +0200 > > From: Anatoliy Dmytriyev > > Sender: owner-freebsd-stable@freebsd.org > > > > Hello, everybody! > > > > I have found unusual and dangerous situation with shutdown process: > > I did a copy of 200 GB data on the 870 GB partition (softupdates is > > enabled) by cp command. > > It took a lot of time when I did umount for this partition exactly after > > cp, but procedure finished correctly. > > In case, if I did “shutdown –h(r)”, also exactly after cp, the shutdown > > procedure waited for “sync” (umounting of the file system) but sync > > process was terminated by timeout, and fsck checked and did correction > > of the file system after boot. > > > > System 5.4-stable, RAM 4GB, processor P-IV 3GHz. > > > > How can I fix it on my system? > > SCSI or ATA? If it's ATA, turn off write cache with (atacontrol(8) or > the sysctl. > > The problem is that disks lie about whether they have actually written > data. If the power goes off before the data is in cache, it's lost. > > I am not sure if write-cache can be turned off on SCSI, but SCSI drives > seem less likely to lie about when the data is actually flushed to the > drive. At least you can set FUA if you want to force the data onto the platter. -- Wilko Bulte wilko@FreeBSD.org