reservations and quotas

All your general support questions for OpenZFS on OS X.

reservations and quotas

Postby macz » Fri May 13, 2016 7:29 am

Ok.. its more an issue of not really knowing how ZFS handles this and after some reseach still confused

I am going to round off numbers and generalize for simplicity

in the past using ZFS with OS X server, lets say I had a pool with 3TB space and 3 filesystems that mounted as 'disks' that osx presented as volumes

without reservations or quotas.. OSX server would show 9tb of space available (proveded the volumes were empty) because it would see that there was the entire size of the pool availabe in each child or volume...

so I set a reservation and quota of 1TB for each dataset pool/diska, pool/diskb, etc

that showed each disk that was mounted now as a 1TB volume with get info or OSX server and as space was used on each disk, it would report space remaining correctly

now using 1.4.5 I noticed that the pool let say is 10.9TB using list

if I do a zfs list it shows the root dataset as 10.7tb not 10.9?

if I reduce the reservation and quota on any of the datasets it does not give back to the root dataset.. ie if I had in the above example set each to 1TB the root dataset should show that all 3 TB are used and that 0tb available, but if I reduce the reservation and quota on say pool/diska .. then pool should show 2.5TB used with .5tb avail and pool/diska as .5TB available and say 0 used.. ?

so what am I doing wrong here.

I dont use the root dataset although it mounts.

I want the data sets that mount to have defined sizes so that finder shows a size, used and available that is a correct slice of the underlying pool without reportd 'duplicated' free space

thanks guys
macz
 
Posts: 53
Joined: Wed Feb 03, 2016 4:54 am

Re: reservations and quotas

Postby Brendon » Fri May 13, 2016 11:45 pm

Some reference material, just in case you are trying to work out how ZFS quotas and reservations work: https://docs.oracle.com/cd/E23823_01/ht ... gazvb.html

Maybe you can try to illustrate with actual output from the zfs tools? On my system which is ~1.5.2:

Code: Select all
sudo zfs set reservation=10G tank/fs1
big-vm-mac-imac:~ zfs-tests$ sudo zfs set reservation=10G tank/fs2
cannot set property for 'tank/fs2': size is greater than available space
big-vm-mac-imac:~ zfs-tests$ sudo zfs set reservation=9G tank/fs2
big-vm-mac-imac:~ zfs-tests$ zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      19.0G   259M   992K  /Volumes/tank
tank/fs1  1.06M  10.3G  1.06M  /Volumes/tank/fs1
tank/fs2  1.06M  9.25G  1.06M  /Volumes/tank/fs2
big-vm-mac-imac:~ zfs-tests$ sudo zfs set reservation=5G tank/fs2
big-vm-mac-imac:~ zfs-tests$ zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      15.0G  4.25G   992K  /Volumes/tank
tank/fs1  1.06M  14.3G  1.06M  /Volumes/tank/fs1
tank/fs2  1.06M  9.25G  1.06M  /Volumes/tank/fs2
big-vm-mac-imac:~ zfs-tests$ sudo zfs set reservation=none tank/fs1
big-vm-mac-imac:~ zfs-tests$ zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      5.00G  14.3G   992K  /Volumes/tank
tank/fs1  1.06M  14.3G  1.06M  /Volumes/tank/fs1
tank/fs2  1.06M  19.3G  1.06M  /Volumes/tank/fs2
big-vm-mac-imac:~ zfs-tests$ sudo zfs set reservation=none tank/fs2
big-vm-mac-imac:~ zfs-tests$ zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
tank      3.18M  19.3G   992K  /Volumes/tank
tank/fs1  1.06M  19.3G  1.06M  /Volumes/tank/fs1
tank/fs2  1.06M  19.3G  1.06M  /Volumes/tank/fs2


I have been fiddling around with this a bit, and it seems that the finder Information display is not updating well enough at the moment (https://github.com/openzfsonosx/zfs/issues/505)
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: reservations and quotas

Postby macz » Sat May 14, 2016 5:47 am

Thanks for the links and yes, that is where I have been reading about quota, requota, etc.. but I think I confused myself more than made things more clear...

here are some snippets

Code: Select all
zpool list
NAME         SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
activepool  10.9T  9.37T  1.54T         -    49%    85%  1.00x  ONLINE  -

zfs list
NAME                  USED  AVAIL  REFER  MOUNTPOINT
activepool           10.7T      0   278K  /Volumes/activepool-ROOT
activepool/Archive   68.4G   132G  68.4G  /Volumes/Archive
activepool/Media     8.88T  1.12T  8.88T  /Volumes/Media
activepool/Software   426G  74.0G   426G  /Volumes/Software

NOTE activepool should be 10.9? no?

zfs get quota,reservation activepool/Media
NAME              PROPERTY     VALUE   SOURCE
activepool/Media  quota        10T     local
activepool/Media  reservation  10T     local

zfs get quota,reservation activepool/Archive
NAME                PROPERTY     VALUE   SOURCE
activepool/Archive  quota        200G    local
activepool/Archive  reservation  200G    local

zfs get quota,reservation activepool/Software
NAME                 PROPERTY     VALUE   SOURCE
activepool/Software  quota        500G    local
activepool/Software  reservation  500G    local

NO REFRESERVATON OR REQUOTA set



so to me the numbers are not adding up, and when I reduced the reservation and quota on Archive from 250 to 200, the size changed in finder but the dataset activepool stayed at 10.7 and 0 available.. i.e., nothing was added back...

thoughts?

I tried export then import on the pool, no change

I think VERY soon I will try and buy a couple 8TB drives, back everything up again, destroy these old pools that have been kicking around since like 2008 created with the original snow leopard developers ZFS code and rebuild the pools from scratch using openzfs

I have also been toying with the idea of upgrading the entire server.. my box, a gigabyte ga45 has been kicking around for at least 8 years and is getting long in the tooth.. it has served me well, running OS X server, which is also my plex server backend etc

I bought a used Rackable with 2xl5640s and 48gb ram.. which is overkill but was thinking instead of running everything in OS X server, to use a ESXI 6 / nap-it all in one where the napp-it would host the zfs pools, one for esxi vms, and the other pool for the files...

thought even of serving all data to OS X server via zvols since they could be HFS+ and work 'natively' with OS X server?

I could then run a nap-it vm for zfs, a OS X server for file shares, time machine, perhaps keep plex there, a vm for security camera, etc..

thoughts?

oh.. and on 1.4.5.. pools won't upgrade due to some previous ACL issues I think, ilovezfs worked with me a bit but just cant get it past this

NAME PROPERTY VALUE SOURCE
activepool version - default

zfs get version
NAME PROPERTY VALUE SOURCE
activepool version 3 -
activepool/Archive version 3 -
activepool/Media version 3 -
activepool/Software version 3 -
macz
 
Posts: 53
Joined: Wed Feb 03, 2016 4:54 am

Re: reservations and quotas

Postby macz » Wed May 18, 2016 6:49 am

?
macz
 
Posts: 53
Joined: Wed Feb 03, 2016 4:54 am

Re: reservations and quotas

Postby incumbent » Mon May 23, 2016 10:58 am

macz wrote:?


Personally, I assumed we had just entered Bat Country.
incumbent
 
Posts: 40
Joined: Mon Apr 25, 2016 8:52 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 25 guests