On Wed, Jan 04, 2006 at 01:51:31PM -0700, Sarah Jelinek
wrote:> Hi All,
>
> I am assuming it is legal to have multiple dataset types(well I know
> snapshots and clones work ok) in one pool, including a zvol and some ZFS
> filesystems. I did this, but the output for used and available is
> confusing me, but perhaps I am reading this wrong.
>
> I did:
>
> zpool create sarah mirror c1d0s4 c1d0s5
> zfs create -b 512 -V 10GB sarah/vol1
> zfs create sarah/home
>
> so a zfs list shows:
>
> NAME USED AVAIL REFER MOUNTPOINT
> sarah 10.0G 59.0G 99.0K /sarah
> sarah/home 98.5K 59.0G 98.5K /sarah/home
> sarah/vol1 97.5K 69.0G 97.5K -
>
> Which appears to show me that there is 69.06 GB available in my volume,
> but the filesystem shows it only has the 59.06 GB available, which is
> correct. When I do a zfs list -o all I see:
The volume has a reservation of 10G in the pool. That space is unavailable
to the rest of the pool, and is recorded in the "10G" used in sarah.
Since that
space is available to sarah/vol1, it sees 69G available; everyone else
can''t
access that space, so they have only 59G available.
I did recently file an RFE:
6357511 zfs volumes should act like they have a quota = to volsize
which would make the output look more like:
NAME USED AVAIL REFER MOUNTPOINT
sarah 10.0G 59.0G 99.0K /sarah
sarah/home 98.5K 59.0G 98.5K /sarah/home
sarah/vol1 97.5K 10.0G 97.5K -
which might be closer to what you were expecting.
> NAME TYPE CREATION USED AVAIL
> REFER RATIO MOUNTED ORIGIN QUOTA RESERV VOLSIZE
> VOLBLOCK RECSIZE MOUNTPOINT SHARENFS CHECKSUM
> COMPRESS ATIME DEVICES EXEC SETUID RDONLY ZONED SNAPDIR
> ACLMODE ACLINHERIT
> sarah/vol1 volume Wed Jan 4 13:49 2006 97.5K 69.0G
> 97.5K 1.00x - - - 10.0G
> 10.0G 512 - - - on
> off - - - - off - -
> - -
>
> Which shows a 10GB reservation and a 10GB available. Which is correct.
Actually, is says 10GB reserved, and 69G available, which matches the zfs list
output.
Cheers,
- jonathan
--
Jonathan Adams, Solaris Kernel Development