Login    Register

Graphical control for disk usage ...

Post/Debate your Suggestions & Requests of NAS4Free here. This ONLY pertains to NAS4Free.
Forum rules
Set-Up GuideFAQsForum Rules
  • Author
    Message

Graphical control for disk usage ...

Postby drnicolas » 05 Mar 2014 03:33

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. :o
HP Proliant N54L - Bios Mod -6GB ECC-RAM - ZFS RAIDZ1 (3x3TB)
PowerUser
drnicolas
 
Posts: 60
Joined: 15 Aug 2013 12:03

Re: Graphical control for disk usage ...

Postby raulfg3 » 05 Mar 2014 11:20

perhaps is not enought with info show in status | system ?

http://wiki.nas4free.org/doku.php?id=do ... tus_system

dataset can show info ( not graphical) on : http://wiki.nas4free.org/doku.php?id=do ... nformation
and volumes on : http://wiki.nas4free.org/doku.php?id=do ... nformation
Site Admin
raulfg3

User avatar
 
Posts: 4059
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: Graphical control for disk usage ...

Postby drnicolas » 05 Mar 2014 17:54

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
HP Proliant N54L - Bios Mod -6GB ECC-RAM - ZFS RAIDZ1 (3x3TB)
PowerUser
drnicolas
 
Posts: 60
Joined: 15 Aug 2013 12:03

Re: Graphical control for disk usage ...

Postby crest » 05 Mar 2014 21:07

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 ...
NAS1: NAS4Free 9.1.0.1 (revision 847) x86-embedded; AMD Sempron(tm) Processor LE-1250 2048MiB RAM - 5x HDD - BitTorrent Sync - Jails: Subsonic - miniDLNA - pyLoad - udpxy - OwnCloud
NAS2: NAS4Free 9.3.0.1 - Shigawire (revision 225) x64-embedded; AMD Athlon(tm) II X2 250 Processor 3327MiB RAM - 3x HDD - BitTorrent Sync - miniDLNA - Jails (theBrig): OwnCloud
PowerUser
crest

User avatar
 
Posts: 146
Joined: 02 Jul 2012 20:25
Location: Vienna, Austria

Re: Graphical control for disk usage ...

Postby drnicolas » 07 Mar 2014 06:02

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.
HP Proliant N54L - Bios Mod -6GB ECC-RAM - ZFS RAIDZ1 (3x3TB)
PowerUser
drnicolas
 
Posts: 60
Joined: 15 Aug 2013 12:03

Re: Graphical control for disk usage ...

Postby crest » 09 Mar 2014 04:12

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, ...
NAS1: NAS4Free 9.1.0.1 (revision 847) x86-embedded; AMD Sempron(tm) Processor LE-1250 2048MiB RAM - 5x HDD - BitTorrent Sync - Jails: Subsonic - miniDLNA - pyLoad - udpxy - OwnCloud
NAS2: NAS4Free 9.3.0.1 - Shigawire (revision 225) x64-embedded; AMD Athlon(tm) II X2 250 Processor 3327MiB RAM - 3x HDD - BitTorrent Sync - miniDLNA - Jails (theBrig): OwnCloud
PowerUser
crest

User avatar
 
Posts: 146
Joined: 02 Jul 2012 20:25
Location: Vienna, Austria

Re: Graphical control for disk usage ...

Postby drnicolas » 10 Mar 2014 06:38

Under ZFS -> Datasets -> Information is a lot of information available; but only as text.
HP Proliant N54L - Bios Mod -6GB ECC-RAM - ZFS RAIDZ1 (3x3TB)
PowerUser
drnicolas
 
Posts: 60
Joined: 15 Aug 2013 12:03

Re: Graphical control for disk usage ...

Postby crest » 11 Mar 2014 17:41

As far as I know there are reservations/quotas only on datasets and volumes, not on pools, right?
NAS1: NAS4Free 9.1.0.1 (revision 847) x86-embedded; AMD Sempron(tm) Processor LE-1250 2048MiB RAM - 5x HDD - BitTorrent Sync - Jails: Subsonic - miniDLNA - pyLoad - udpxy - OwnCloud
NAS2: NAS4Free 9.3.0.1 - Shigawire (revision 225) x64-embedded; AMD Athlon(tm) II X2 250 Processor 3327MiB RAM - 3x HDD - BitTorrent Sync - miniDLNA - Jails (theBrig): OwnCloud
PowerUser
crest

User avatar
 
Posts: 146
Joined: 02 Jul 2012 20:25
Location: Vienna, Austria

Re: Graphical control for disk usage ...

Postby crest » 13 Mar 2014 07:40

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
NAS1: NAS4Free 9.1.0.1 (revision 847) x86-embedded; AMD Sempron(tm) Processor LE-1250 2048MiB RAM - 5x HDD - BitTorrent Sync - Jails: Subsonic - miniDLNA - pyLoad - udpxy - OwnCloud
NAS2: NAS4Free 9.3.0.1 - Shigawire (revision 225) x64-embedded; AMD Athlon(tm) II X2 250 Processor 3327MiB RAM - 3x HDD - BitTorrent Sync - miniDLNA - Jails (theBrig): OwnCloud
PowerUser
crest

User avatar
 
Posts: 146
Joined: 02 Jul 2012 20:25
Location: Vienna, Austria

Re: Graphical control for disk usage ...

Postby raulfg3 » 13 Mar 2014 08:50

thanks for your efforts, your contribution are welcome.
Site Admin
raulfg3

User avatar
 
Posts: 4059
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: Graphical control for disk usage ...

Postby crest » 14 Mar 2014 06:33

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
You do not have the required permissions to view the files attached to this post.
NAS1: NAS4Free 9.1.0.1 (revision 847) x86-embedded; AMD Sempron(tm) Processor LE-1250 2048MiB RAM - 5x HDD - BitTorrent Sync - Jails: Subsonic - miniDLNA - pyLoad - udpxy - OwnCloud
NAS2: NAS4Free 9.3.0.1 - Shigawire (revision 225) x64-embedded; AMD Athlon(tm) II X2 250 Processor 3327MiB RAM - 3x HDD - BitTorrent Sync - miniDLNA - Jails (theBrig): OwnCloud
PowerUser
crest

User avatar
 
Posts: 146
Joined: 02 Jul 2012 20:25
Location: Vienna, Austria

Return to Suggestions & Requests

Who is online

Users browsing this forum: No registered users and 2 guests