Bug 1143995

Summary: Brick utilization shows incorrect data for thinly provisioned LVs
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Sahina Bose <sabose>
Component: gluster-nagios-addonsAssignee: Darshan <dnarayan>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, dnarayan, dpati, knarra, psriniva, rhsc-qe-bugs, rjoseph, rnachimu, sharne, ssampat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gluster-nagios-addons-0.1.13-1.el6rhs Doc Type: Bug Fix
Doc Text:
Previously, when a brick was created from a thin-provisioned volume, the brick utilization would not display the actual brick utilization of the thin pool. With this fix, bricks with thin-logical volume display both the thin-logical volume utilization and the actual thin pool utilization.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-15 13:49:49 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:
Attachments:
Description Flags
screenshot none

Description Sahina Bose 2014-09-18 12:15:39 UTC
Description of problem:

When a brick is created from a thinly provisioned volume, the brick utilization does not show the actual utilization data. 

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

How reproducible:
Always

Comment 1 Sahina Bose 2014-09-18 12:18:52 UTC
Rajesh, Could you provide more details on this bug?

Comment 2 rjoseph 2014-09-23 08:27:46 UTC
We need to provide LV utilization, thin pool data and meta-data utilization for each brick. For thin provisioning just checking the brick utilization is not enough. Even though you have space in your brick the thin pool might get pool. 

Check lvs command for more details.

Comment 5 Shruti Sampat 2014-11-23 17:30:06 UTC
Failed to verify this as the graph for thin-pool utilization is not shown correctly for existing bricks after gluster-nagios-addons package is updated on the server being monitored.

For new bricks, added after the package is updated, the graph is seen correctly.

Screenshot attached with the error seen in place of the thin-pool utilization graph.

Comment 6 Shruti Sampat 2014-11-23 17:31:02 UTC
Created attachment 960492 [details]
screenshot

Comment 7 Shalaka 2014-11-27 06:24:51 UTC
Please add doc text for this bug.

Comment 8 Darshan 2014-11-27 07:19:16 UTC
Done

Comment 10 Darshan 2014-11-27 10:51:29 UTC
     As a part of fix to the update problem, we run a script to migrate the data from old rrd file to new rrd file and we set RRD_STORAGE_TYPE to MULTIPLE so that different data sets are stored in different rrd files. 
     After updating nagios-server-addons package, the graphs for brick utilization will take some time(till first set of data gets populated to new rrd file) to appear.
     Both gluster-nagios-addons and nagios-server-addons packages have to be updated for this fix to work correctly.

Comment 12 Shruti Sampat 2014-12-04 12:58:18 UTC
Verified as fixed in gluster-nagios-addons-0.1.14-1.el6rhs.x86_64

Tested by upgrading from 3.0.2 to 3.0.3

Graphs appear correctly. Alerts and notifications also work as expected for thin pool and brick utilization.

Comment 13 Pavithra 2014-12-17 06:36:07 UTC
Hi Darshan,

Can you please review the edited doc text for technical accuracy and sign off?

Comment 14 Darshan 2014-12-17 06:42:35 UTC
Looks good.

Comment 16 errata-xmlrpc 2015-01-15 13:49:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0039.html