<div dir="ltr">I second this! Please make this happen.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 12:59 AM, Joe Julian <span dir="ltr">&lt;<a href="mailto:joe@julianfamily.org" target="_blank">joe@julianfamily.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes please! Also some indication of the status of a &quot;heal ... full&quot; would be helpful. I hate not knowing, if it&#39;s finished or not.<div class="HOEnZb">
<div class="h5"><br>
<br>
On 01/10/2013 10:48 PM, Venkatesh Somyajulu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Description of problem:<br>
------------------------<br>
In a replicate volume , When there are files to be self-healed and  an offline brick comes online,  the glustershd.log file doesn&#39;t report any log messages on start of crawl and  end of crawl.<br>
<br>
Currently Available options for checking files to be self-healed:-<br>
------------------------------<u></u>------------------------------<u></u>----<br>
1. Number of files that has to be self-healed can be obtained from the gluster cli command : &quot;gluster volume heal &lt;vol_name&gt; info&quot;<br>
<br>
2. Number of files that got self-healed (Only 1023 entries reported)can be obtained from the gluster cli command : &quot;gluster volume heal     &lt;vol_name&gt;   info healed&quot;<br>
<br>
3. To check pending self-heals other option is to keep monitoring &quot;.glusterfs/indices/xattrop&quot; directory of the source brick.<br>
    file. It would be helpful if number of files that got self-healed (only the count) is also reported in the glustershd.log file.<br>
<br>
<br>
New Implementation:<br>
-------------------<br>
A new glusterd command is proposed which will give the last 50 crawls information.<br>
<br>
Below I am describing the initial design plan and need suggestions for the same.<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------<br>
<br>
<br>
Command Name:<br>
------------------------------<u></u>------<br>
gluster volume crawlinfo &lt;Volname&gt;<br>
<br>
Output [Example is for a replicate volume of replica count 2. Bricks are on two different Machines]<br>
--------<br>
Volume Name: Volname<br>
Volume ID:   66cf8864-af11-4b69-9a6a-<u></u>267011e7f879<br>
Number of Bricks: 1x2 = 2<br>
<br>
Crawl info for Brick Number: 1<br>
Brick Info: 192.168.122.1:/volume/brick1<br>
<br>
Crawl Number: 1<br>
Start of crawl:  &lt;TIME&gt;<br>
End of crawl:        &lt;TIME&gt;<br>
Number of entires to be healed: &lt;Number&gt;  //Here Number of entries are count of entries in the xattrop file.<br>
<br>
<br>
Crawl Number: 2<br>
Start of crawl: &lt;TIME&gt;<br>
End of crawl:   &lt;TIME&gt;<br>
Number of entries to be healed: &lt;Number&gt;<br>
<br>
<br>
Crawl info for Brick Number: 2<br>
Brick Info: 192.168.122.2:/volume/brick2<br>
<br>
Crawl Number: 1<br>
Start of crawl:  &lt;TIME&gt;<br>
End of crawl:        &lt;TIME&gt;<br>
Number of entires to be healed: &lt;Number&gt;<br>
<br>
<br>
Crawl Number: 2<br>
Start of crawl: &lt;TIME&gt;<br>
End of crawl:   &lt;TIME&gt;<br>
Number of entries to be healed: &lt;Number&gt;<br>
<br>
<br>
         <br>
If in case crawl is still going on for a brick:<br>
------------------------------<u></u>-----------------<br>
Crawl info for brick Number: 1<br>
Brick Info: 192.168.122.1:/volume/brick1<br>
<br>
Start of crawl:  &lt;TIME&gt;<br>
End of crawl:        Crawl is still in progress<br>
Number of entries to be healed: &lt;Number&gt;<br>
<br>
<br>
<br>
<br>
So for every brick last 50 crawl information will be stored. And command will display those last 50 entries for every brick.<br>
<br>
<br>
Regards,<br>
Venkatesh Somyajulu<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/<u></u>mailman/listinfo/gluster-devel</a><br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/<u></u>mailman/listinfo/gluster-devel</a><br>
</div></div></blockquote></div><br></div>