From owner-freebsd-questions@FreeBSD.ORG Sun Jul 9 10:46:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C921916A4DA for ; Sun, 9 Jul 2006 10:46:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D46443D49 for ; Sun, 9 Jul 2006 10:46:06 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 91EE35DB3; Sun, 9 Jul 2006 06:46:05 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y8cmwQ-v+qGR; Sun, 9 Jul 2006 06:46:04 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-117-245.ny325.east.verizon.net [68.161.117.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 4781D5C32; Sun, 9 Jul 2006 06:46:04 -0400 (EDT) Message-ID: <44B0DE66.3080406@mac.com> Date: Sun, 09 Jul 2006 06:45:58 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Jerlique Bahn References: <010201c6a323$e5a7cc80$0101a8c0@WKSTN501> In-Reply-To: <010201c6a323$e5a7cc80$0101a8c0@WKSTN501> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: lost+found 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: Sun, 09 Jul 2006 10:46:06 -0000 Jerlique Bahn wrote: > If I pull the power on my server whilst its doing heavy IO, should I get > files in lost+found if my raid card has battery backed cache? Yes, it's still possible. > I was under the understanding that the file operations were atomic, and > hence freebsd's file system should have no corrupted files on the reboot. > The raid card says that it is flushing the cache of the card, yet freebsd > still experiences the corrupt files. The cache on the RAID card will be flushed OK, but any in-process operations by live processes will be interrupted in the middle if the OS goes away. While some operations are atomic (things like unlink or move), simply writing pieces out is not... > What should I be looking for? > > I would like to also know how to turn off (or check) caching on the physical > disk itself. smartmontools port? sysctl hw.ata.wc...? -- -Chuck