From owner-freebsd-current@FreeBSD.ORG Mon May 18 13:00:21 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44528106564A for ; Mon, 18 May 2009 13:00:21 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id C25988FC14 for ; Mon, 18 May 2009 13:00:20 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.3/8.14.3) with ESMTP id n4ID0HH5079992; Mon, 18 May 2009 17:00:17 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 18 May 2009 17:00:17 +0400 (MSD) From: Dmitry Morozovsky To: Paul Wootton In-Reply-To: <4A115ABE.6070904@fletchermoorland.co.uk> Message-ID: References: <4A1123C5.3070507@fletchermoorland.co.uk> <200905181412.11460.christof.schulze@gmx.net> <4A115ABE.6070904@fletchermoorland.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (woozle.rinet.ru [0.0.0.0]); Mon, 18 May 2009 17:00:17 +0400 (MSD) Cc: freebsd-current@freebsd.org, Christof Schulze Subject: Re: discrepancies in used space after cpio X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 18 May 2009 13:00:21 -0000 On Mon, 18 May 2009, Paul Wootton wrote: PW> > > I am currently in the process of moving all my data around, going from a PW> > > single zfs drive (ex-mirror) to a zfs raidz. PW> > > I have used cpio to copy the data to the new pool, but a du shows a big PW> > > difference in the results. PW> > > PW> > > Does anyone have any ideas, or does a "du -h ." not do what I think it PW> > > should? PW> > > PW> > it is a known bug (at least for the solaris folks) that du does not PW> > display disk usage correctly on raidz. PW> > PW> > But of course different compression algorithms come into play as well. PW> > PW> In this instance, the du from the raidz pool is actually correct. PW> A zfs list shows less space (incorrect) on the single drive compared to the PW> raidz. PW> Doing a tar on both directories gives 2 1.2G files so the data is actually PW> present on both packs (plus I used CPIO to copy the data from the single to PW> the raidz) PW> PW> Is it possible for data corruption on the single drive to not show the extra PW> space as being used? Ehmm, possibly stupid question: sparse files? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------