<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">1) Usage of gluster volume heal command
: <br>
<br>
To see list of files that requires self-heal : "gluster volume
heal <volume_name> info" <br>
<br>
To see files that were self-healed : "gluster volume heal
<volume_name> info healed" <br>
<br>
To see files which were failed to self-heal : "gluster volume
heal <volume_name> info heal-failed" <br>
<br>
To see if files are in split-brain state : "gluster volume heal
<volume_name> info split-brain" <br>
<br>
2 and 3) Even after executing "gluster volume heal
<volume_name>" or "gluster volume heal <volume_name>
full" which will trigger self-heal , you will be seeing stale
entries when you execute "gluster volume heal <volume_name>
info heal-failed" from the previous execution .If you want to
overcome this <br>
<br>
a) restart glusterd on all storage nodes : "service glusterd
restart"<br>
<br>
b) Trigger self-heal : "gluster volume heal <volume_name>"
or "gluster volume heal <volume_name> full"<br>
<br>
c) Execute : "gluster volume heal <volume_name> info
heal-failed" to check if self-heal has been failed on certain
files. <br>
<br>
4) Under "/var/log/glusterfs" check glustershd.log file for any
self-heal related logs. <br>
<br>
-Shwetha<br>
<br>
On 11/28/2013 08:15 AM, <a class="moz-txt-link-abbreviated" href="mailto:glusted@netcourrier.com">glusted@netcourrier.com</a> wrote:<br>
</div>
<blockquote
cite="mid:ea-mime-5296ae5f-4bfd-52cdb66f@w-5.netcourrier.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<br>
<div> Hi Couilles-de-Loups!
<div>After a few unsuccessful attempts to get answers on the
gluster chat, I turn to email.</div>
<div>
<div><br>
</div>
<div>I have Glusterfs version 3.4.0.</div>
<div><br>
</div>
<div>1) What is the correct usage of command: gluster volume
heal myvolume info heal-failed ?</div>
<div><br>
</div>
<div>When I type this command, I get a list of files:</div>
<div>Ex:</div>
<div>
<div><br>
</div>
<div>2013-11-14 03:07:52
<gfid:fd1d018e-38ae-444c-a069-91528b9871dd>/10.jpg</div>
<div>2013-11-14 03:07:51
<gfid:fd1d018e-38ae-444c-a069-91528b9871dd>/1.jpg</div>
</div>
<div><br>
</div>
<div>In fact, I get this:</div>
<div>
<div><br>
</div>
<div>[bob@server]# gluster volume heal myvolume info
heal-failed | grep -i number</div>
<div>Number of entries: 6</div>
<div>Number of entries: 68</div>
</div>
<div><br>
</div>
<div>So on my 2 bricks, I have a total of 74 "heal-failed"
files.</div>
<div><br>
</div>
<div>2) When I do gluster volume heal myvolume and/or gluster
volume heal myvolume full, then I type again the gluster
volume heal myvolume info heal-failed, I get the same
number...</div>
<div>In fact it is saying that the command was successful <i>(Launching
Heal operation on volume myvolume has been successful Use
heal info commands to check status)...</i></div>
<div><br>
</div>
<div><br>
</div>
<div>3) How to I remove those files so they don't appear in
"heal-failed"? Do I want to remove them? My understanding is
that this command should only show the files who have not
been healed, not some relics of the past.</div>
<div><br>
</div>
<div>4) About logging which log should I check to know why I
have "heal-failed"? </div>
<div>I found the log directory, but I have plenty of logs,
including brick1 and brick2 logs.</div>
<div>I looked at them, but have not found the root cause, yet.</div>
<div><br>
</div>
<div>5) I can not find those files marked as "heal-failed",
can someone tell me a hint or explanation? (for example what
is this: gfid:fd1d018e-38ae-444c-a069-91528b9871dd)</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
<br>
</body>
</html>