Bug 859424 - Log messages for start of crawl, end of crawl and number of files self-healed has to be reported in glustershd.log file
Summary: Log messages for start of crawl, end of crawl and number of files self-healed...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: replicate
Version: 2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: vsomyaju
QA Contact: spandura
URL:
Whiteboard:
: 868107 (view as bug list)
Depends On: 868107
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 14:09 UTC by spandura
Modified: 2016-09-17 12:11 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 868107 949400 (view as bug list)
Environment:
Last Closed: 2015-02-25 05:59:00 UTC
Embargoed:


Attachments (Terms of Use)
glustershd.log file. (4.02 MB, text/x-log)
2012-09-21 14:09 UTC, spandura
no flags Details

Description spandura 2012-09-21 14:09:11 UTC
Created attachment 615457 [details]
glustershd.log file.

Description of problem:
------------------------

In a replicate volume , When there are files to be self-heal when a offline brick comes online,  the glustershd.log file doesn't report any log messages on start of crawl and  end of crawl. 

Currently Available options for checking files to be self-healed:-
----------------------------------------------------------------
Number of files that has to be self-healed can be obtained from the gluster cli command : "gluster volume heal <vol_name> info" 

Number of files that got self-healed (Only 1023 entries reported)can be obtained from the gluster cli command : "gluster volume heal <vol_name> info healed" 

To check pending self-heals other option is to keep monitoring ".glusterfs/indices/xattrop" directory of the source brick. 


Expected Output:-
------------------
We would like to see the start time of the crawl and End time of the crawl in the glustershd.log file. It would be helpful if number of files that got self-healed (only the count) is also reported in the glustershd.log file. 

Version-Release number of selected component (if applicable):
------------------------------------------------------------
glusterfs 3.3.0rhs built on Sep 10 2012 00:49:11

(glusterfs-3.3.0rhs-28.el6rhs.x86_64)


Steps to Reproduce:
--------------------
1.Create a replicate volume (1x2). Start the volume
2.Bring down brick2
3.Create a fuse mount. Create 10k of files and directories from the mount point.
4.Bring back brick2 online
5.Check glustershd.log file for self-heal information. 

Actual Result:-
---------------
No messages related to start of crawl, end of crawl is reported.

Comment 2 Sudhir D 2012-10-19 05:06:34 UTC
In the bz scrum, it was agreed to log the start and end of crawl immediately and this bug will be kept open for furture to log the number of files that got self healed.

Comment 3 Vijay Bellur 2012-12-17 05:58:50 UTC
Let us record the last 50 start and end crawl timestamps per brick and provide a new command to dump this information out.

Comment 4 vsomyaju 2013-03-12 10:15:46 UTC
*** Bug 868107 has been marked as a duplicate of this bug. ***

Comment 5 krishnan parthasarathi 2013-09-23 06:23:18 UTC
vsomyaju,

Could you add a comment with the review url for the patch(es) which fix this issue? I am moving the bug state to ASSIGNED. The necessary criteria for a bug to be in POST state is that patches that fix the bug needs to be merged into upstream master branch. Once you have added the review url and a summary of the root cause, you could move the bug to POST state.

Comment 6 Pranith Kumar K 2014-02-18 08:47:08 UTC
gluster volume heal <volname> statistics is introduced to address this.

Comment 7 vsomyaju 2014-02-18 09:01:44 UTC
http://review.gluster.org/#/c/4790/

Comment 8 Nagaprasad Sathyanarayana 2014-05-19 10:56:16 UTC
Setting flags required to add BZs to RHS 3.0 Errata


Note You need to log in before you can comment on or make changes to this bug.