Received: with ECARTIS (v1.0.0; list xfs); Thu, 26 Jun 2008 08:24:00 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m5QFNtZi014527 for ; Thu, 26 Jun 2008 08:23:55 -0700 X-ASG-Debug-ID: 1214493894-489503d10000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from server515.appriver.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 34ACF1233969 for ; Thu, 26 Jun 2008 08:24:54 -0700 (PDT) Received: from server515.appriver.com (server515a.exghost.com [72.32.253.70]) by cuda.sgi.com with ESMTP id BXJH6gIEFnseNh3s for ; Thu, 26 Jun 2008 08:24:54 -0700 (PDT) Received: by server515.appriver.com (CommuniGate Pro PIPE 5.2.0) with PIPE id 47221258; Thu, 26 Jun 2008 10:24:53 -0500 Received: from FE1.exchange.rackspace.com ([72.32.49.5] verified) by server515.appriver.com (CommuniGate Pro SMTP 5.2.0) with ESMTP id 47221229; Thu, 26 Jun 2008 10:24:49 -0500 Received: from 34093-C3-EVS3.exchange.rackspace.com ([192.168.1.161]) by FE1.exchange.rackspace.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 26 Jun 2008 10:24:49 -0500 Received: from 192.168.1.146 ([192.168.1.146]) by 34093-C3-EVS3.exchange.rackspace.com ([192.168.1.78]) with Microsoft Exchange Server HTTP-DAV ; Thu, 26 Jun 2008 15:24:48 +0000 To: "Eric Sandeen" Reply-To: Message-ID: <22f301c8d7a0$c5e87fc0$9201a8c0@exchange.rackspace.com> Cc: "Timothy Shimmin" , "xfs-oss" , "LinuxRaid" , "NeilBrown" , X-ASG-Orig-Subj: Re: [PATCH] disable queue flag test in barrier check Subject: Re: [PATCH] disable queue flag test in barrier check Thread-Topic: [PATCH] disable queue flag test in barrier check Thread-Index: AcjXoMXoKyBbG0zmRzejZU2NS3WVIg== From: "David Lethe" Date: Thu, 26 Jun 2008 10:24:00 -0500 MIME-Version: 1.0 X-Mailer: VersaMail(R) v. 3.5.4, Copyright (c) 2001-2006 Palm, Inc. X-Sender: David@santools.com X-Priority: 3 Importance: Normal Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 26 Jun 2008 15:24:49.0971 (UTC) FILETIME=[C62E2030:01C8D7A0] X-Policy: GLOBAL - santools.com X-Policy: GLOBAL - santools.com X-Policy: GLOBAL - santools.com X-Policy: GLOBAL - santools.com X-Policy: GLOBAL - santools.com X-Policy: GLOBAL - santools.com X-Primary: david@santools.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: david@santools.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: PRIVATE->PRIVATE->UNITED STATES->UNITED STATES X-Note-Sending-IP: 72.32.49.5 X-Note-Reverse-DNS: fe1.exchange.rackspace.com X-Note-WHTLIST: david@santools.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 81 82 83 84 150 X-Note: Mail Class: ALLOWEDSENDER X-Barracuda-Connect: server515a.exghost.com[72.32.253.70] X-Barracuda-Start-Time: 1214493895 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -0.36 X-Barracuda-Spam-Status: No, SCORE=-0.36 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=MSGID_DOLLARS X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.54400 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.66 MSGID_DOLLARS Message-Id has pattern used in spam X-Virus-Scanned: ClamAV 0.91.2/6021/Wed Feb 27 15:55:48 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 16581 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: david@santools.com Precedence: bulk X-list: xfs Unflushed writes are 100% effective for losing data and corrupting file systems. Data isn't saved until it is on the magnetic media. Batterybackup modules for disk controllers help, but there is no substitute for a ups. Even with a bbu on disk controller, if the kernel hasn't flushed write to the controller, and system crashes or loses power, the kernel io queue will never reach the controllers bbu. You have a moral obligation to use a ups... And if you work for a US company, then Sarbox pretty much makes this a legal obligation and a criminal offense if you don't protect certain databases with something as reasonable and cheap as a ups -----Original Message----- From: "Eric Sandeen" Subj: Re: [PATCH] disable queue flag test in barrier check Date: Thu Jun 26, 2008 9:57 am Size: 1K To: "David Lethe" cc: "Timothy Shimmin" ; "xfs-oss" ; "LinuxRaid" ; "NeilBrown" ; "jeremy@sgi.comwe" David Lethe wrote: > Fyi - related problem is seen with solaris & zfs when users attach them > to hardware-based RAID subsystems. The vendors had > to make firmware tweaks to address solaris's > flush-to-disk-after-all-writes. > > Not sure what you mean about non-volatile vs. volatile write cache, > however. If you want to see if write cache is enabled on a disk drive, > or > Even a logical disk on a hardware-based RAId, under Linux, then google > "mode page editor" for lots of choices. Also look up zfs write cache > raid and you'll get information that you can just as easily apply to > Linux implementations of md. I'm not so interested in whether it is enabled; I'd like to know if it is safe (to varying degrees) in the event of a power failure, and I don't think there's any way we can know that. So the administrator, if she's sure that all cached writes will hit disk even if a breaker pops, can disable barriers. If it's just a 32MB cache seagate drive plugged into the wall, you probably had better be sure barriers are enabled or you may well have a scrambled filesystem post-power-outage. -Eric