Re: discrepancies in used space after cpio

From: Dmitry Morozovsky <marck_at_rinet.ru>
Date: Mon, 18 May 2009 17:00:17 +0400 (MSD)
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_at_FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck_at_rinet.ru ***
------------------------------------------------------------------------
Received on Mon May 18 2009 - 11:00:21 UTC

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