Re: discrepancies in used space after cpio

From: Paul Wootton <paul_at_fletchermoorland.co.uk>
Date: Mon, 18 May 2009 13:55:26 +0100
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?
Received on Mon May 18 2009 - 10:55:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC