From owner-freebsd-current@FreeBSD.ORG Mon May 18 12:55:28 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 0E537106566C for ; Mon, 18 May 2009 12:55:28 +0000 (UTC) (envelope-from paul@fletchermoorland.co.uk) Received: from hydra.fletchermoorland.co.uk (hydra.fletchermoorland.co.uk [78.33.209.59]) by mx1.freebsd.org (Postfix) with ESMTP id 94B258FC1D for ; Mon, 18 May 2009 12:55:27 +0000 (UTC) (envelope-from paul@fletchermoorland.co.uk) Received: from [192.168.0.154] (demophon.fletchermoorland.co.uk [192.168.0.154]) by hydra.fletchermoorland.co.uk (8.14.2/8.14.2) with ESMTP id n4ICtQex083533; Mon, 18 May 2009 13:55:26 +0100 (BST) (envelope-from paul@fletchermoorland.co.uk) Message-ID: <4A115ABE.6070904@fletchermoorland.co.uk> Date: Mon, 18 May 2009 13:55:26 +0100 From: Paul Wootton User-Agent: Thunderbird 2.0.0.21 (X11/20090504) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4A1123C5.3070507@fletchermoorland.co.uk> <200905181412.11460.christof.schulze@gmx.net> In-Reply-To: <200905181412.11460.christof.schulze@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 12:55:28 -0000 Christof Schulze wrote: > Am Montag 18 Mai 2009 11:00:53 schrieb Paul Wootton: > >> Hi, >> >> I am currently in the process of moving all my data around, going from a >> single zfs drive (ex-mirror) to a zfs raidz. >> I have used cpio to copy the data to the new pool, but a du shows a big >> difference in the results. >> >> Does anyone have any ideas, or does a "du -h ." not do what I think it >> should? >> > it is a known bug (at least for the solaris folks) that du does not display > disk usage correctly on raidz. > > But of course different compression algorithms come into play as well. > > Regards, > > Christof > In this instance, the du from the raidz pool is actually correct. A zfs list shows less space (incorrect) on the single drive compared to the raidz. Doing a tar on both directories gives 2 1.2G files so the data is actually present on both packs (plus I used CPIO to copy the data from the single to the raidz) Is it possible for data corruption on the single drive to not show the extra space as being used?