[prev in list] [next in list] [prev in thread] [next in thread] 

List:       illumos-discuss
Subject:    Re: [discuss] strange du outputs
From:       "Peter Tribble" <peter.tribble () gmail ! com>
Date:       2016-03-08 11:14:00
Message-ID: CAEgYsbEkAE0GvewEDxeyOXXOeoVdOvF1od7rUPQRjskxcESdjg () mail ! gmail ! com
[Download RAW message or body]

>
> I have a strange situation with a simple zfs filesystem, no compression,
> no dedup, just a bare zfs.
> It runs almost 1T of imap storage, up since 2012.
>
> Now i found this strange du issues in some folders:
>
> /sonicle/var/spool/imap/user/edp$ du -h
> ...
> 277M ./F1/F2
> 622M ./F1
> ...
>
> then
>
> /sonicle/var/spool/imap/user/edp : du -h F1
> 1.5G F1/F2
> 1.8G F1
>
> This last one is the correct one.
> Looks like sizes are misleaded when using du on the current tree rather
> than on a specific folder...
> Just for some folders...
>
> Any idea?
>

If you have files that are hard-linked, then du will only report them once,
and they'll be accounted for the first time they're seen.

--
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/25758063-6f7f4185
Modify Your Subscription: https://www.listbox.com/member/?member_id=25758063&id_secret=25758063-83fb4fd4
Powered by Listbox: http://www.listbox.com

[Attachment #3 (text/html)]

<html><html><div dir="ltr"><div class="gmail_extra"><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px">I have a strange situation \
with a simple zfs filesystem, no compression, no dedup, just a bare zfs.</div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px">It runs almost 1T of imap \
storage, up since 2012.</div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px"><br /></div><div><font \
face="Arial"><span style="font-size:12px">Now i found this strange du issues in some \
folders:</span></font><br /><br /><font face="Arial"><span \
style="font-size:12px">/sonicle/var/spool/imap/user/edp$ du \
-h</span></font></div><div><font face="Arial"><div><span \
style="font-size:12px">...</span></div><div><span style="font-size:12px"> 277M   \
./F1/F2</span></div><div><span style="font-size:12px"> 622M   \
./F1</span></div><div><span style="font-size:12px">...</span></div><div \
style="font-size:12px"><br /></div><div style="font-size:12px">then</div><div \
style="font-size:12px"><br /></div><div \
style="font-size:12px"><div>/sonicle/var/spool/imap/user/edp : du -h F1</div><div> \
1.5G   F1/F2</div><div> 1.8G   F1</div></div></font></div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px"><br /></div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px">This last one is the \
correct one.</div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px">Looks like sizes are \
misleaded when using du on the current tree rather than on a specific \
folder...</div><div style="color:rgb(0,0,0);font-family:Arial;font-size:12px">Just \
for some folders...</div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px"><br /></div><div \
style="color:rgb(0,0,0);font-family:Arial;font-size:12px">Any idea?<br \
/></div></blockquote><div><br /></div><div>If you have files that are hard-linked, \
then du will only report them once,<br /></div><div>and they&#39;ll be accounted for \
the first time they&#39;re seen. <br /></div><div>&nbsp;</div><div>--&nbsp; <br \
/></div></div>-Peter Tribble<br /><div class="gmail_signature"><a \
href="http://www.petertribble.co.uk/" \
target="_blank">http://www.petertribble.co.uk/</a> - <a \
href="http://ptribble.blogspot.com/" \
target="_blank">http://ptribble.blogspot.com/</a></div></div></div></html><div \
bgcolor="#ffffff" id="listbox-footer" \
style="width:auto;margin:0;padding:5px;background-color:#fff;clear:both;border-top: \
1px solid #ccc;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" \
style="background-color:#fff" width="100%"><tr><td padding="4px"><font \
color="#333333" size="1" style="font-family:helvetica, sans-serif;">  \
<strong>illumos-discuss</strong> | <a \
href="https://www.listbox.com/member/archive/182180/=now" \
style="text-decoration:none;color:#669933;border-bottom: 1px solid #444444" title="Go \
to archives for illumos-discuss">Archives</a> <a border="0" \
href="https://www.listbox.com/member/archive/rss/182180/25758063-6f7f4185" \
style="text-decoration:none;color:#669933" title="RSS feed for illumos-discuss"><img \
border="0" src="http://postlink.www.listbox.com/2076089/833487e62783d55fe81f119fb93ef6 \
44/25758063/6ad03ab6.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc" \
/></a>  | <a href="https://www.listbox.com/member/?member_id=25758063&id_secret=25758063-83fb4fd4" \
style="text-decoration:none;color:#669933;border-bottom: 1px solid #444444" \
title="">Modify</a>  Your Subscription<td align="right" valign="top"><a \
href="http://www.listbox.com" style="border-bottom:none;"> <img border="0" \
src="http://postlink.www.listbox.com/2076090/3379085af0f1cf7fc3708f04b4471ae2/25758063 \
/6ad03ab6.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc" \
title="Powered by Listbox" /></a></td></font></td></tr></table></div></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic