<div dir="ltr"><div><div><div><div><div>A gfid mismatch should also be showing up in the form of a split-brain on the parent directory of the entry in question.<br><br></div>1) In your case, does <span style="background-color:rgb(255,255,255)">&#39;<span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px">public_html/cello/ior_files&#39; show itself up in the output of `gluster volume heal &lt;VOL&gt; info split-brain`?<br></span></span></div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px">2) And what version of gluster are you using?<br></span></span></div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px">3) Could you share the output of `gluster volume info`?<br></span></span></div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px">4) </span></span><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="background-color:rgb(255,255,255)">nameroot.</span><span style="background-color:rgb(255,255,255)">ior is a regular file, correct? Could you confirm that?</span><br><br></span></div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">-Krutika<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 1:03 PM, songxin <span dir="ltr">&lt;<a href="mailto:songxin_1980@126.com" target="_blank">songxin_1980@126.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi all,</div><div>I have a file has a problem of <span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">gfid-mismatch as below.</span></div><div><br></div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">stat: cannot stat &#39;/mnt/c//public_html/cello/ior_files/nameroot.ior&#39;: Input/output error </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">Remote: </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">getfattr -d -m . -e hex opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"># file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">trusted.afr.dirty=0x000000000000000000000000 </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">trusted.bit-rot.version=0x000000000000000256ded2f6000ad80f </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">trusted.gfid=0x771221a7bb3c4f1aade40ce9e38a95ee </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">Local: </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">getfattr -d -m . -e hex opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"># file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">trusted.bit-rot.version=0x000000000000000256ded38f000e3a51 </span><br style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:20px;background-color:rgb(245,245,245)">trusted.gfid=0x8ea33f46703c4e2d95c09153c1b858fd </span></div><div><br></div><div>There is a saying in link <span style="line-height:20px;color:rgb(51,51,51);font-family:Arial,sans-serif;background-color:rgb(245,245,245)"><a href="https://gluster.readthedocs.org/en/latest/Troubleshooting/split-brain/" target="_blank">https://gluster.readthedocs.org/en/latest/Troubleshooting/split-brain/</a> as below.</span></div><div><span style="line-height:20px;color:rgb(51,51,51);font-family:Arial,sans-serif;background-color:rgb(245,245,245)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">This is done by observing the afr changelog extended attributes of the file on the bricks using the getfattr command; then identifying the type of split-brain (data split-brain, metadata split-brain, entry split-brain or </span><span style="font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;color:rgb(128,0,128);background-color:rgb(252,252,252)"><b>split-brain due to gfid-mismatch</b></span><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">); and finally determining which of the bricks contains the &#39;good copy&#39; of the file.</span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">So the gfid-mismatch is also a split-brain.</span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">But I found that &quot;</span><font color="#404040" face="Lato, proxima-nova, Helvetica Neue, Arial, sans-serif"><span style="font-size:16px;line-height:24px">gluster volume heal gv0 info split-brain&quot; can&#39;t show split-brain entry due to gfid-mismatch.</span></font></div><div><br></div><div><font color="#404040" face="Lato, proxima-nova, Helvetica Neue, Arial, sans-serif"><span style="font-size:16px;line-height:24px">My question is following:</span></font></div><div><font color="#404040" face="Lato, proxima-nova, Helvetica Neue, Arial, sans-serif"><span style="font-size:16px;line-height:24px;color:rgb(0,0,0);background-color:rgb(255,255,255)">1.Which command can be used to show </span></font><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">split-brain due to gfid-mismatch?</span></div><div><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">2.How to heal it?Is it same as </span><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">data split-brain?</span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)"><br></span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">Thanks,</span></div><div><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,&#39;Helvetica Neue&#39;,Arial,sans-serif;font-size:16px;line-height:24px;background-color:rgb(252,252,252)">Xin</span></div></div><br><br><span title="neteasefooter"><p> </p></span><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>