Page 1 of 1
Graphical control for disk usage ...
Posted: 05 Mar 2014 04:33
by drnicolas
I am missing n informaional page, where I can see how much of my ZFS is used.
I think of a page under ZFS, where a bar graph gives information for every dataset/volume with quota.
I did not find any extension/package for this, so I think it does not exist.

Re: Graphical control for disk usage ...
Posted: 05 Mar 2014 12:20
by raulfg3
Re: Graphical control for disk usage ...
Posted: 05 Mar 2014 18:54
by drnicolas
not bad.
But I am thinking of a graphical solution.
A page with multiple bar-graphs for the different datasets and volumes - whatever can have a quota
Re: Graphical control for disk usage ...
Posted: 05 Mar 2014 22:07
by crest
drnicolas wrote:not bad.
But I am thinking of a graphical solution.
A page with multiple bar-graphs for the different datasets and volumes - whatever can have a quota
What exactly do you think about? Which values? Currently I am working on an extension with improvements for the WebGUI and I could implement graphical representations for ZFS as well. Send me a list of items you would like to see ...
Re: Graphical control for disk usage ...
Posted: 07 Mar 2014 07:02
by drnicolas
I am thinking of a page with horizontal bars showing the usage of all my datasets or volumes on zfs with quotas (or is there something else on Nas4Free whch can have quotas ?).
With a number for the size and percentage used. Maybe you can a add a warning margin (such as 80%) where the bar-graph changes from blue to red.
Re: Graphical control for disk usage ...
Posted: 09 Mar 2014 05:12
by crest
drnicolas wrote:I am thinking of a page with horizontal bars showing the usage of all my datasets or volumes on zfs with quotas (or is there something else on Nas4Free whch can have quotas ?).
With a number for the size and percentage used. Maybe you can a add a warning margin (such as 80%) where the bar-graph changes from blue to red.
Ok, I will take a look at ZFS (currently I'm running it only in a test environment without quotas) to see what I can implement, stay tuned, ...
Re: Graphical control for disk usage ...
Posted: 10 Mar 2014 07:38
by drnicolas
Under ZFS -> Datasets -> Information is a lot of information available; but only as text.
Re: Graphical control for disk usage ...
Posted: 11 Mar 2014 18:41
by crest
As far as I know there are reservations/quotas only on datasets and volumes, not on pools, right?
Re: Graphical control for disk usage ...
Posted: 13 Mar 2014 08:40
by crest
drnicolas wrote:I am thinking of a page with horizontal bars showing the usage of all my datasets or volumes on zfs with quotas (or is there something else on Nas4Free whch can have quotas ?).
With a number for the size and percentage used. Maybe you can a add a warning margin (such as 80%) where the bar-graph changes from blue to red.
There are some points I must mention in this regard:
- the maximum amount for quotas is NOT checked via ZFS. You can set ANY quota value for a dataset and it will be accepted from ZFS (eg on a 2GB pool you can put a quota for a dataset with some TB ...). In my opinion the quotas are for use to additional restrict the reserved space eg to user or groups
- in this regard I would suppose that you should better use reservations on datasets - these values are checked from ZFS and it's not possible to overbook a pool.
- there is a bug in the N4F provisioning of datasets - if you set a reservation value which is not accepted by ZFS (value to high), the WebGUI is not reporting an error but when you look at the dataset information you will see that your value is not set[/list]
My conclusion for this is,
- I will create a graphical view for dataset reservations (occupied/available, ...)
- and try to fix the bug in the WebGUI dataset provision
regards
Re: Graphical control for disk usage ...
Posted: 13 Mar 2014 09:50
by raulfg3
thanks for your efforts, your contribution are welcome.
Re: Graphical control for disk usage ...
Posted: 14 Mar 2014 07:33
by crest
raulfg3 wrote:thanks for your efforts, your contribution are welcome.
It's my pleasure!
About ...
- there is a bug in the N4F provisioning of datasets - if you set a reservation value which is not accepted by ZFS (value to high), the WebGUI is not reporting an error but when you look at the dataset information you will see that your value is not set
I found that errors are not trapped when you apply changes to datasets and volumes. Easy to repair ...
screen_20140314_074224.png
This should be done in both files
disks_zfs_dataset.php and
disks_zfs_volume.php so it would be the same as in
disks_zfs_zpool.php. Any error will be trapped and one must use correct values to be able to apply the changes.
Btw, I would propose to amend the standard function print_warning_box like ...
screen_20140314_074238.png
... to give the user a hint in case of problems he can get more information in the system log. This would look like ...
screen_20140314_071630.png
So that's for the fix.
For the graphical representation I must go deeper into the ZFS documentation because there are some more reservation/quota facilities (refreservation, refquota, user & group quota) one can use. At the moment there are not all options implemented, are there plans to do this?
regards
crest