Bug 949400 - 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: GlusterFS
Classification: Community
Component: replicate
Version: pre-release
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nagaprasad Sathyanarayana
QA Contact: spandura
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-08 05:36 UTC by vsomyaju
Modified: 2016-02-18 00:19 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Doc Type: Bug Fix
Doc Text:
Clone Of: 859424
Environment:
Last Closed: 2015-05-15 17:16:15 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description vsomyaju 2013-04-08 05:36:43 UTC
Description of problem:

Log messages for start of crawl, end of crawl and number of files self-healed has to be reported in glustershd.log file.

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):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
A command which can give the statistics of the crawl like start time of the crawl, end time of the crawl, type of the crawl, no of files healed etc.


Additional info:

Comment 1 Anand Avati 2013-04-08 06:06:30 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#1) for review on master by venkatesh somyajulu (vsomyaju)

Comment 2 Anand Avati 2013-07-10 10:52:06 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#2) for review on master by venkatesh somyajulu (vsomyaju)

Comment 3 Anand Avati 2013-07-10 10:54:15 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#3) for review on master by venkatesh somyajulu (vsomyaju)

Comment 4 Anand Avati 2013-09-12 07:10:36 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#4) for review on master by venkatesh somyajulu (vsomyaju)

Comment 5 Anand Avati 2013-10-07 08:36:30 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#5) for review on master by venkatesh somyajulu (vsomyaju)

Comment 6 Anand Avati 2013-10-11 07:32:53 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#6) for review on master by venkatesh somyajulu (vsomyaju)

Comment 7 Anand Avati 2013-10-11 13:39:28 UTC
REVIEW: http://review.gluster.org/6080 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#1) for review on master by venkatesh somyajulu (vsomyaju)

Comment 8 Anand Avati 2013-10-11 14:05:21 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#7) for review on master by venkatesh somyajulu (vsomyaju)

Comment 9 Anand Avati 2013-10-11 14:13:05 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#8) for review on master by venkatesh somyajulu (vsomyaju)

Comment 10 Anand Avati 2013-10-14 19:02:48 UTC
REVIEW: http://review.gluster.org/4790 (cluster/afr : Implementation of command "gluster volume heal vn statistics") posted (#9) for review on master by Anand Avati (avati)

Comment 11 Anand Avati 2013-10-14 21:42:01 UTC
COMMIT: http://review.gluster.org/4790 committed in master by Anand Avati (avati) 
------
commit 047882750e0e97f5eed21ebe3445cdb216b15a9d
Author: Venkatesh Somyajulu <vsomyaju>
Date:   Thu Sep 12 12:37:37 2013 +0530

    cluster/afr : Implementation of command "gluster volume heal vn statistics"
    
    "gluster volume heal volumename statistics" command gives the summary
    of the afr crawl done based on the entries present in the xattrop
    directory. Whenever afr crawls are attempted, the beginning time of
    crawl, end time of crawl, no of files healed, heal-failed count and
    number of files in split brain are shown along with the type of the
    crawl. If crawl is already in progress then it will give the number
    of files healed, heal failed count and number of files in split-brain
    from the beginning of the crawl and instead of telling the end time of
    the crawl, "CRAWL IN PROGRESS" message will be shown.
    
    Output format:
    command: "gluster volume heal volume-name statistics"
    Output:
    Gathering afr crawl statistics crawl statistics on volume volume-name
    has been successful
    ------------------------------------------------
    
    Crawl statistics for brick no 0
    Hostname of brick 192.168.122.248
    
    Starting time of crawl: Wed Jul 10 15:52:38 2013
    
    Ending time of crawl: Wed Jul 10 15:52:38 2013
    
    Type of crawl: INDEX
    No. of entries healed: 0
    No. of entries in split-brain: 0
    No. of heal failed entries: 0
    
    Starting time of crawl: Wed Jul 10 15:52:38 2013
    
    Ending time of crawl: Wed Jul 10 15:52:38 2013
    
    Type of crawl: INDEX
    No. of entries healed: 0
    No. of entries in split-brain: 0
    No. of heal failed entries: 0
    
    ------------------------------------------------
    
    Crawl statistics for brick no 1
    Hostname of brick 192.168.122.1
    
    Starting time of crawl: Wed Jul 10 15:52:42 2013
    
    Ending time of crawl: Wed Jul 10 15:52:42 2013
    
    Type of crawl: INDEX
    No. of entries healed: 0
    No. of entries in split-brain: 0
    No. of heal failed entries: 0
    
    Starting time of crawl: Wed Jul 10 15:52:42 2013
    
    Ending time of crawl: Wed Jul 10 15:52:42 2013
    
    Type of crawl: INDEX
    No. of entries healed: 0
    No. of entries in split-brain: 0
    No. of heal failed entries: 0
    
    --------------------------------------------------
    
    Change-Id: I10bf9d10b005741db9973fb1352e0dd59ed99aa9
    BUG: 949400
    Signed-off-by: Venkatesh Somyajulu <vsomyaju>
    Reviewed-on: http://review.gluster.org/4790
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Anand Avati <avati>

Comment 12 Niels de Vos 2014-09-22 12:31:46 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 15 Niels de Vos 2015-05-15 17:16:15 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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