Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gluster Storage Total Size is wrong #3

Open
tleguern opened this issue Dec 13, 2018 · 1 comment
Open

Gluster Storage Total Size is wrong #3

tleguern opened this issue Dec 13, 2018 · 1 comment

Comments

@tleguern
Copy link

Hello,

The value usable_capacity returned by gstatus(1) is not the total space available but the free space remaining. Example on my cluster with my patched version of gstatus_discovery.py[1]:

# gstatus_discovery.py -k used_capacity
81097048064
# gstatus_discovery.py -k usable_capacity
37565235200

The sum of these numbers roughly equals raw_capacity.

The current item “Gluster Storage Total Size” should be renamed “Gluster Storage Free Size” and a new item of the Calculated type named “Gluster Storage Total Size” should be created with the following formula:

gluster_storage_info["used_capacity"] + gluster_storage_info["usable_capacity"]

Of course “Gluster Storage % Free Space” should adapted too.

[1]: A pull-request should come in the following days or weeks.

@MrCirca
Copy link
Owner

MrCirca commented Dec 13, 2018

Hello @Aversiste !
Thank you for issue report! I am waiting your PR!

Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants