Bug 1501398

Summary: [RFE] Need volume capacity utilization from CLI that is consistent across all Gluster utilities and console
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Ju Lim <julim>
Component: glusterfsAssignee: Amar Tumballi <atumball>
Status: CLOSED NOTABUG QA Contact: Bala Konda Reddy M <bmekala>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.3CC: asrivast, jefbrown, julim, mbukatov, mkudlej, rhs-bugs, ssaha, vbellur
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.4.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-24 20:58:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ju Lim 2017-10-12 13:51:23 UTC
Description of problem:
Currently, there are multiple ways to try to derive or obtain volume capacity utilization information, but they all seem to conflict in some way or other.

With the new console (RHGS Web Admin), we are unable to reliably tell what is the proper capacity utilization for a volume as output differs when using various tools including gstatus, getstate (and aggregating the brick information), samba, etc.

Ideally, this ought to be solved at the Gluster underlying infrastructure layer and gets bubbled up through the various tools/utilities with a consistent number.

It would also be nice to have a "df" like mechanism in the CLI to quickly find out what the capacity utilization (total, free, available/free) for a volume is that might be part of the "gluster volume" CLI command.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Ju Lim 2017-10-12 14:06:05 UTC
Just wanting to mention related BZ's here:

[RFE] Gluster get state command should provide volume and cluster utilization related information - https://bugzilla.redhat.com/show_bug.cgi?id=1488018

FutureFeature: Capacity information provided in the volume view in the console --
 https://bugzilla.redhat.com/show_bug.cgi?id=844321

Comment 3 Amar Tumballi 2017-10-16 11:07:41 UTC
We recommend to collect the 'volume utilization' on top of the mounted volume by 'df' (or with libgfapi ('gfapi_statfs()'). This is the right way because Gluster's components internally can consume extra space if they want it for xattrs or any other reason. 

Also, this will work regardless of the volume type for the consumer.

Comment 4 Amar Tumballi 2017-10-24 20:58:24 UTC
Closing the bug as the 2 bugs mentioned above bz1488018 and bz844321 are both in 'VERIFIED' or 'CLOSED' state.

My comment (#3) still holds as an answer to the bug.