Date: Mon, 18 May 2009 14:12:08 +0200 From: Christof Schulze <christof.schulze@gmx.net> To: freebsd-current@freebsd.org Subject: Re: discrepancies in used space after cpio Message-ID: <200905181412.11460.christof.schulze@gmx.net> In-Reply-To: <4A1123C5.3070507@fletchermoorland.co.uk> References: <4A1123C5.3070507@fletchermoorland.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1432878.lPTJxlB0vN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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= =20 disk usage correctly on raidz. But of course different compression algorithms come into play as well. Regards, Christof > > Cheers > Paul > > > > demophon# uname -a > FreeBSD demophon 8.0-CURRENT FreeBSD 8.0-CURRENT #14: Fri May 15 > 16:48:17 BST 2009 paul@demophon:/usr/obj/usr/src/sys/DEMOPHON amd64 > > > > demophon# zpool status > pool: DemoPool > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > DemoPool ONLINE 0 0 0 > raidz1 ONLINE 0 0 0 > ad20p3 ONLINE 0 0 0 > ad18p3 ONLINE 0 0 0 > ad16p4 ONLINE 0 0 0 > > errors: No known data errors > > pool: zfsroot > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > zfsroot ONLINE 0 0 0 > ad16p3 ONLINE 0 0 0 > > errors: No known data errors > > > > demophon# mount > zfsroot/root on / (zfs, local) > devfs on /dev (devfs, local) > DemoPool on /DemoPool (zfs, local) > DemoPool/root on /DemoPool/root (zfs, local) > DemoPool/tmp on /DemoPool/tmp (zfs, local) > DemoPool/usr on /DemoPool/usr (zfs, local) > DemoPool/var on /DemoPool/var (zfs, local) > zfsroot/tmp on /tmp (zfs, local) > zfsroot/usr on /usr (zfs, local) > zfsroot/var on /var (zfs, local) > > > > demophon# pwd > /DemoPool/var/tmp/kdecache-paul/kpc > demophon# ls -lah > total 1282522 > drwx------ 2 paul paul 25B May 15 19:35 . > drwx------ 11 paul paul 16B May 15 19:36 .. > -rw-r--r-- 1 paul paul 5.0M May 6 16:47 kapman_cache.data > -rw-r--r-- 1 paul paul 1.3M May 6 16:47 kapman_cache.index > -rw-r--r-- 1 paul paul 15M May 15 17:52 kde-icon-cache.data > -rw-r--r-- 1 paul paul 4.1M May 15 19:35 kde-icon-cache.index > -rw-r--r-- 1 paul paul 0B May 15 19:35 kde-icon-cache.updated > -rw-r--r-- 1 paul paul 5.0M May 6 16:48 kdiamond-cache.data > -rw-r--r-- 1 paul paul 1.3M May 6 16:48 kdiamond-cache.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:54 plasma_theme_Atelier.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:54 plasma_theme_Atelier.index > -rw-r--r-- 1 paul paul 120M May 4 18:18 plasma_theme_Aya.data > -rw-r--r-- 1 paul paul 32M May 4 18:18 plasma_theme_Aya.index > -rw-r--r-- 1 paul paul 120M May 15 18:20 plasma_theme_Elegance.data > -rw-r--r-- 1 paul paul 32M May 15 19:01 > plasma_theme_Elegance.index -rw-r--r-- 1 paul paul 120M Mar 22 > 19:17 plasma_theme_Glassified.data -rw-r--r-- 1 paul paul 32M Mar > 22 20:05 plasma_theme_Glassified.index -rw-r--r-- 1 paul paul 120M > Mar 20 08:53 plasma_theme_Led > revolution.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:54 plasma_theme_Led > revolution.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:54 plasma_theme_Oxyook.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:55 plasma_theme_Oxyook.index > -rw-r--r-- 1 paul paul 120M May 4 18:19 plasma_theme_default.data > -rw-r--r-- 1 paul paul 32M May 4 18:19 plasma_theme_default.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:55 plasma_theme_spoons.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:55 plasma_theme_spoons.index > demophon# du -h . > 1.2G . > demophon# > > > > demophon# pwd > /var/tmp/kdecache-paul/kpc > demophon# ls -lah > total 7833 > drwx------ 2 paul paul 25B May 18 09:37 . > drwx------ 11 paul paul 16B May 18 09:12 .. > -rw-r--r-- 1 paul paul 5.0M May 6 16:47 kapman_cache.data > -rw-r--r-- 1 paul paul 1.3M May 6 16:47 kapman_cache.index > -rw-r--r-- 1 paul paul 15M May 18 09:37 kde-icon-cache.data > -rw-r--r-- 1 paul paul 4.1M May 18 09:37 kde-icon-cache.index > -rw-r--r-- 1 paul paul 0B May 18 09:37 kde-icon-cache.updated > -rw-r--r-- 1 paul paul 5.0M May 6 16:48 kdiamond-cache.data > -rw-r--r-- 1 paul paul 1.3M May 6 16:48 kdiamond-cache.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:54 plasma_theme_Atelier.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:54 plasma_theme_Atelier.index > -rw-r--r-- 1 paul paul 120M May 4 18:18 plasma_theme_Aya.data > -rw-r--r-- 1 paul paul 32M May 4 18:18 plasma_theme_Aya.index > -rw-r--r-- 1 paul paul 120M May 18 09:37 plasma_theme_Elegance.data > -rw-r--r-- 1 paul paul 32M May 18 09:37 > plasma_theme_Elegance.index -rw-r--r-- 1 paul paul 120M Mar 22 > 19:17 plasma_theme_Glassified.data -rw-r--r-- 1 paul paul 32M Mar > 22 20:05 plasma_theme_Glassified.index -rw-r--r-- 1 paul paul 120M > Mar 20 08:53 plasma_theme_Led > revolution.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:54 plasma_theme_Led > revolution.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:54 plasma_theme_Oxyook.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:55 plasma_theme_Oxyook.index > -rw-r--r-- 1 paul paul 120M May 4 18:19 plasma_theme_default.data > -rw-r--r-- 1 paul paul 32M May 4 18:19 plasma_theme_default.index > -rw-r--r-- 1 paul paul 120M Mar 20 08:55 plasma_theme_spoons.data > -rw-r--r-- 1 paul paul 32M Mar 20 08:55 plasma_theme_spoons.index > demophon# du -h . > 7.6M . > demophon# > > > > demophon# zfs > list > NAME USED AVAIL REFER > MOUNTPOINT > DemoPool 66.8G 382G 30.6K > /DemoPool > DemoPool/root 1.67G 382G 1.67G /DemoPool/root > DemoPool/tmp 3.03G 382G 3.03G /DemoPool/tmp > DemoPool/usr 59.6G 382G 59.6G /DemoPool/usr > DemoPool/var 2.51G 382G 2.51G /DemoPool/var > zfsroot 79.0G 145G 18K > none > zfsroot/root 1.78G 145G 1.78G > / > zfsroot/tmp 3.67G 145G 3.67G > /tmp > zfsroot/usr 72.1G 145G 59.2G > /usr > zfsroot/usr@auto.... (removed huge list for email) > zfsroot/var 1.50G 145G 1.18G /var > zfsroot/var@auto.... (removed huge list for email) > demophon# > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --nextPart1432878.lPTJxlB0vN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkoRUJsACgkQpZfyPAmdZJkPGgCgkSs3EY3DBMZnvgU6Hcho0cik QaEAoPdoc08cBMHTU2/DamiNA+rQgjQW =+jfq -----END PGP SIGNATURE----- --nextPart1432878.lPTJxlB0vN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905181412.11460.christof.schulze>