<div dir="ltr"><div>Hi Anuradha,<br><br></div><div>I am doing the same which is mentioned in the link you shared and It has been resolved the issue.<br><br></div><div>But my question is if it is the split-brain scenario then why the command "gluster volume heal info split-brain"<br></div><div> not showing these files in the output even not the parent directory is present in split-brain.<br><br></div><div>Please find the requested logs<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 4:20 PM, Anuradha Talur <span dir="ltr"><<a href="mailto:atalur@redhat.com" target="_blank">atalur@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Abhishek,<br>
<br>
The files that are reporting i/o error have gfid-mismatch. This situation is called directory or entry split-brain. You can find steps to resolve this kind of split brain here : <a href="https://gluster.readthedocs.org/en/latest/Troubleshooting/split-brain/" rel="noreferrer" target="_blank">https://gluster.readthedocs.org/en/latest/Troubleshooting/split-brain/</a> .<br>
<br>
Ideally, the parent directories of these files have to be listed in heal info split-brain output. Can you please get extended attributes of parent directories of the files that show i/o error (Same getfattr command that you previously used.) ?<br>
<span class="im HOEnZb"><br>
----- Original Message -----<br>
> From: "ABHISHEK PALIWAL" <<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a>><br>
</span><div class="HOEnZb"><div class="h5">> To: "Anuradha Talur" <<a href="mailto:atalur@redhat.com">atalur@redhat.com</a>><br>
> Cc: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>, <a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a><br>
> Sent: Thursday, March 10, 2016 11:22:35 AM<br>
> Subject: Re: [Gluster-users] gluster volume heal info split brain command not showing files in split-brain<br>
><br>
> Hi Anuradha,<br>
><br>
> Please find the glusterfs and glusterd logs directory as an attachment.<br>
><br>
> Regards,<br>
> Abhishek<br>
><br>
><br>
><br>
> On Wed, Mar 9, 2016 at 5:54 PM, ABHISHEK PALIWAL <<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a>><br>
> wrote:<br>
><br>
> > Hi Anuradha,<br>
> ><br>
> > Sorry for late reply.<br>
> ><br>
> > Please find the requested logs below:<br>
> ><br>
> > Remote: 10.32.0.48<br>
> > Local : 10.32.1.144<br>
> ><br>
> > Local:<br>
> > #gluster volume heal c_glusterfs info split-brain<br>
> > Brick 10.32.1.144:/opt/lvmdir/c2/brick<br>
> > Number of entries in split-brain: 0<br>
> ><br>
> > Brick 10.32.0.48:/opt/lvmdir/c2/brick<br>
> > Number of entries in split-brain: 0<br>
> ><br>
> > Remote:<br>
> > #gluster volume heal c_glusterfs info split-brain<br>
> > Brick 10.32.1.144:/opt/lvmdir/c2/brick<br>
> > Number of entries in split-brain: 0<br>
> ><br>
> > Brick 10.32.0.48:/opt/lvmdir/c2/brick<br>
> > Number of entries in split-brain: 0<br>
> ><br>
> > auto-sync.sh.<br>
> > Here you can see that i/o error is detected. Below is the required meta<br>
> > data from both the bricks.<br>
> ><br>
> > 1)<br>
> > stat: cannot stat '/mnt/c//public_html/cello/ior_files/nameroot.ior':<br>
> > Input/output error<br>
> > Remote:<br>
> ><br>
> > getfattr -d -m . -e hex<br>
> > opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior<br>
> > # file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior<br>
> > trusted.afr.dirty=0x000000000000000000000000<br>
> > trusted.bit-rot.version=0x000000000000000256ded2f6000ad80f<br>
> > trusted.gfid=0x771221a7bb3c4f1aade40ce9e38a95ee<br>
> ><br>
> > Local:<br>
> ><br>
> > getfattr -d -m . -e hex<br>
> > opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior<br>
> > # file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior<br>
> > trusted.bit-rot.version=0x000000000000000256ded38f000e3a51<br>
> > trusted.gfid=0x8ea33f46703c4e2d95c09153c1b858fd<br>
> ><br>
> ><br>
> > 2)<br>
> > stat: cannot stat '/mnt/c//security/corbasecurity': Input/output error<br>
> > Remote:<br>
> ><br>
> > getfattr -d -m . -e hex opt/lvmdir/c2/brick/security/corbasecurity<br>
> > # file: opt/lvmdir/c2/brick/security/corbasecurity<br>
> > trusted.afr.dirty=0x000000000000000000000000<br>
> > trusted.bit-rot.version=0x000000000000000256ded2f6000ad80f<br>
> > trusted.gfid=0xd298b7a0c8834f3e99abb39741363013<br>
> ><br>
> > Local:<br>
> ><br>
> > getfattr -d -m . -e hex opt/lvmdir/c2/brick/security/corbasecurity<br>
> > # file: opt/lvmdir/c2/brick/security/corbasecurity<br>
> > trusted.bit-rot.version=0x000000000000000256ded38f000e3a51<br>
> > trusted.gfid=0x890df0f706184b52803fac3242a2f15b<br>
> ><br>
> > I observed that getfattr command output doesn't show all the fields all<br>
> > the times.<br>
> ><br>
> > Here you can check that gluster split-brain command hasn't reported any<br>
> > split-brains but resulted in IO errors when accessed few files.<br>
> ><br>
> > Could you please tell me if "split-brain" command doesn't reported any<br>
> > entry as output, then is there any way through which we can find out that<br>
> > the files are in split-brain if we are getting the IO error on those file.<br>
> ><br>
> ><br>
> > Regards,<br>
> > Abhishek<br>
> ><br>
> ><br>
> ><br>
> > On Thu, Mar 3, 2016 at 5:32 PM, Anuradha Talur <<a href="mailto:atalur@redhat.com">atalur@redhat.com</a>> wrote:<br>
> ><br>
> >><br>
> >><br>
> >> ----- Original Message -----<br>
> >> > From: "ABHISHEK PALIWAL" <<a href="mailto:abhishpaliwal@gmail.com">abhishpaliwal@gmail.com</a>><br>
> >> > To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>, <a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a><br>
> >> > Sent: Thursday, March 3, 2016 12:10:42 PM<br>
> >> > Subject: [Gluster-users] gluster volume heal info split brain command<br>
> >> not showing files in split-brain<br>
> >> ><br>
> >> ><br>
> >> > Hello,<br>
> >> ><br>
> >> > In gluster, we use the command "gluster volume heal c_glusterfs info<br>
> >> > split-brain" to find the files that are in split-brain scenario.<br>
> >> > We run heal script (developed by Windriver prime team) on the files<br>
> >> reported<br>
> >> > by above command to resolve split-brain issue.<br>
> >> ><br>
> >> > But we observed that the above command is not showing all files that<br>
> >> are in<br>
> >> > split-brain,<br>
> >> > even though split brain scenario actually exists on the node.<br>
> >> ><br>
> >> > Now a days this issue is seen more often and IO errors are reported when<br>
> >> > tried to access these files under split-brain.<br>
> >> ><br>
> >> > Can you please check why this gluster command is not showing files under<br>
> >> > split-brain?<br>
> >> > We can provide you required logs and support to resolve this issue.<br>
> >> Hi,<br>
> >><br>
> >> Could you paste the output of getfattr -m. -de hex<br>
> >> <path-to-files-in-split-brain> from all the bricks that the files lie in?<br>
> >><br>
> >> ><br>
> >> > Please reply on this because I am not getting any reply from the<br>
> >> community.<br>
> >> ><br>
> >> > --<br>
> >> ><br>
> >> > Regards<br>
> >> > Abhishek Paliwal<br>
> >> ><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>
> >><br>
> >> --<br>
> >> Thanks,<br>
> >> Anuradha.<br>
> >><br>
> ><br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Thanks,<br>
Anuradha.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><br><br><br><br>Regards<br>
Abhishek Paliwal<br>
</div></div>
</div>