On Mon, Jul 4, 2011 at 5:19 PM, Orvar Korvar
<knatte_fnatte_tja...@yahoo.com> wrote:
> The problem is more clearly stated here. Look, 700GB is gone (the correct 
> number is 620GB)!

Somehow you remind me of the story "the boy who cried wolf" (Look,
look! The wolf ate my disk space) :P

>
> First I do "zfs list" onto TempStorage/Backup which reports 800GB. This is 
> correct.
>
> Then I do "df -h" which reports only 180GB, which is not correct. So, it 
> should be 800GB of data, but "df" reports only 180GB. This means 620GB is 
> gone. Where is it? I know there is 620GB worth of data, which I can not 
> access. Where is my data, and how can I access it?

The behaviour is perfectly normal.

>
>
>
>
> root@solaris:/mnt/TempStorage/Stuff# zfs list
> NAME                      USED  AVAIL  REFER  MOUNTPOINT
> TempStorage               916G  45,1G  37,3G  /mnt/TempStorage
> TempStorage/Backup        799G  45,1G   177G  /mnt/TempStorage/Backup   
> <-------- OBS! 800GB!
> TempStorage/EmmasFolder  78,6G  45,1G  78,6G  /mnt/TempStorage/EmmasFolder
> TempStorage/Stuff        1,08G  45,1G  1,08G  /mnt/TempStorage/Stuff
>
>
>
> root@solaris:/mnt/TempStorage/Stuff# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> TempStorage            83G   38G   46G  46% /mnt/TempStorage
> TempStorage/Backup    223G  178G   46G  80% /mnt/TempStorage/Backup    
> <------ only 200GB!!!
> TempStorage/EmmasFolder
>                      124G   79G   46G  64% /mnt/TempStorage/EmmasFolder
> TempStorage/Stuff      47G  1,1G   46G   3% /mnt/TempStorage/Stuff

I can't find the reference from the back of my head, but the short version is:
- in zfs, free space is shared (unless you do some fancy stuff like reservation)
- "Avail", as reported by "df", will match "Avail", as reported by "zfs list".
- "Used", as reported by "df", will match "Used", as reported by "zfs
list". Well, close anyway. See
http://hub.opensolaris.org/bin/view/Community+Group+zfs/faq/#HWhydoesdu1reportdifferentfilesizesforZFSandUFSWhydoesntthespaceconsumptionthatisreportedbythedfcommandandthezfslistcommandmatch
- zfs will show a "fake" number in df's "Size", to be roughly the sum
of "Used" + "Avail" for that particular filesystem. "fake", as in this
not the actual pool size.

So in short, for filesystem/dataset in the same pool, df will show the
same "Avail", but different "Used" and "Size".

-- 
Fajar
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to