From owner-freebsd-stable@FreeBSD.ORG Mon Oct 20 17:32:23 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE9481065672 for ; Mon, 20 Oct 2008 17:32:23 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net [76.96.30.96]) by mx1.freebsd.org (Postfix) with ESMTP id 926608FC1C for ; Mon, 20 Oct 2008 17:32:23 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by QMTA09.emeryville.ca.mail.comcast.net with comcast id V0tt1a00H16AWCUA95YP5G; Mon, 20 Oct 2008 17:32:23 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA06.emeryville.ca.mail.comcast.net with comcast id V5YN1a0042P6wsM8S5YNLs; Mon, 20 Oct 2008 17:32:22 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=xrMR2-It7Da1wHIE5XgA:9 a=AO5pkA_Rb4T0ThajpSxKZQx9O4UA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 00133C9432; Mon, 20 Oct 2008 10:32:21 -0700 (PDT) Date: Mon, 20 Oct 2008 10:32:21 -0700 From: Jeremy Chadwick To: JoaoBR Message-ID: <20081020173221.GA8889@icarus.home.lan> References: <200810171530.45570.joao@matik.com.br> <20081020164831.GA8016@icarus.home.lan> <45836B9A-CB6E-4B95-911E-0023230B8F82@mac.com> <200810201518.01678.joao@matik.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200810201518.01678.joao@matik.com.br> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: constant zfs data corruption 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: Mon, 20 Oct 2008 17:32:23 -0000 On Mon, Oct 20, 2008 at 03:18:01PM -0200, JoaoBR wrote: > On Monday 20 October 2008 15:03:14 Chuck Swiger wrote: > > On Oct 20, 2008, at 9:48 AM, Jeremy Chadwick wrote: > > > Hm... I thought we determined earlier in this thread that the OP is > > > not > > > getting the benefits of ZFS checksums because he's not using raidz > > > (only > > > a single disk with a single pool)? > > > > He's not getting working filesystem redundancy with the existing > > config and is vulnerable to losing data from a single drive failure, > > agreed. But the ZFS checksum mechanism should still be working to > > detect data corruption, even though ZFS cannot recover the corrupted > > data the way it otherwise would if redundancy was available. > > > > all right and understood but shouldn't something as fsck should correct the > error? No. You're using ZFS, not UFS. fsck will not work. In the case of underlying data corruption on ZFS, there is no way to fix it unless you have mirroring or raidz in use. But before you say "then ZFS sucks", realise that you have this *exact same problem* with any other filesystem -- FFS/UFS can't repair this situation either. You could fsck and it would "supposedly work" for a while, but then data would get corrupted again, etc... Silent data corruption is such a low-level problem that you cannot expect the filesystem to be able to solve it for you without some form of parity (raidz) or redundancy (mirroring) involved. FYI, we run into this problem at work using Linux on ext3fs. Some systems will occasionally see data corruption -- ext3fs is a journalling filesystem, so it detects the problem, but it cannot "solve it". In machines which have 1 disk and are not using mirroring or RAID-5, we still have to shut the box off and replace the disk. > Seems kind of problematic to me mounting zfs in single user mode, > deleting the file and restarting the OS ? As I said, you don't use fsck on ZFS. Booting into single-user won't do you any good either. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |