atom feed18 messages in org.freebsd.freebsd-fsRe: ZFS and disk usage
FromSent OnAttachments
Mark SchoutenApr 13, 2012 5:20 am 
Volodymyr KostyrkoApr 13, 2012 6:10 am 
Mark SchoutenApr 13, 2012 6:28 am 
Peter MaloneyApr 13, 2012 6:32 am 
Johannes TotzApr 13, 2012 8:26 am 
Tom EvansApr 13, 2012 8:44 am 
Freddie CashApr 13, 2012 8:45 am 
Freddie CashApr 13, 2012 8:49 am 
Volodymyr KostyrkoApr 13, 2012 9:32 am 
Ronald KlopApr 15, 2012 4:14 am 
Mark SchoutenApr 16, 2012 1:35 am 
Volodymyr KostyrkoApr 16, 2012 11:32 pm 
Mark SchoutenApr 17, 2012 1:37 am 
Volodymyr KostyrkoApr 17, 2012 2:54 am 
Mark SchoutenApr 17, 2012 3:02 am 
Volodymyr KostyrkoApr 17, 2012 3:10 am 
Mark SchoutenApr 17, 2012 3:22 am 
Mark SchoutenMay 3, 2012 2:28 am 
Subject:Re: ZFS and disk usage
From:Volodymyr Kostyrko (c.kw@gmail.com)
Date:Apr 13, 2012 9:32:36 am
List:org.freebsd.freebsd-fs

Mark Schouten wrote:

Hi,

Op Vrijdag, 13-04-2012 om 15:11 schreef Volodymyr Kostyrko:

These are fiesystems that are created with the following command. zfs create -V ${size}GB ${ZFS_ROOT}/${diskname}

`zfs create -V` withous `-s` creates reserved volume that eats all needed space immediately. Technically zfs pool is filled only for 23%, but logically you have only 138G left unassigned.

I understand. However, the created volumes should use a total of 1211GB. That's
not 1.6TB like zfs list says. But 1211 + 431 (referred) does come close to
1.6TB.n And 1.6 TB still isn't the 1.77TB that's in the zpool.

After reinventing calculator I'm just puzzled and shamed. This looks strange.

Indeed not just a single byte from this files should count directly for the main filesystem.

Just curious, what `ls -la /storage/' and `ls -la /storage/.zfs/s*` show?

I have this feeling that zfs has reserved the space for each volume, but counts
data written to the volumes in usage of the main filesystem. Mainly because zfs
list shows me that the volumes have only 16KB referenced, where /storage has
431GB referenced.