[Gluster-users] split-brain files not shown in "gluster volume heal info split-brain" command

Ravishankar N ravishankar at redhat.com
Fri Aug 14 04:59:11 UTC 2015



On 08/13/2015 07:30 PM, Lakshmi Anusha wrote:
> Hello,
>
> We managed to collect below command outputs:
>
> Brick1> getfattr -d -m . -e hex 
> /opt/lvmdir/c2/brick/logfiles/security/EVENT_LOG.xml
> getfattr: Removing leading '/' from absolute path names
> # file: opt/lvmdir/c2/brick/logfiles/security/EVENT_LOG.xml
> trusted.afr.dirty=0x000000000000000000000000
> trusted.bit-rot.version=0x000000000000000255cc791e000491d6
> trusted.gfid=0x700021362c414760993055a5b67aa942
>
>
> Brick2> getfattr -d -m . -e hex 
> /opt/lvmdir/c2/brick/logfiles/security/EVENT_LOG.xml
> getfattr: Removing leading '/' from absolute path names
> # file: opt/lvmdir/c2/brick/logfiles/security/EVENT_LOG.xml
> trusted.afr.c_glusterfs-client-11=0x000000060000000000000000
> trusted.bit-rot.version=0x000000000000000455cc7df0000bdc2e
> trusted.gfid=0x344107bb14544b0a95a0d0e3af230770

> # Brick1> gluster volume heal c_glusterfs info split-brain
> Brick oamhost:/opt/lvmdir/c2/brick/
> Number of entries in split-brain: 0
>
> Brick oamhost:/opt/lvmdir/c2/brick/
> Number of entries in split-brain: 0
>

Why is the same hostname:brick being listed twice? Could you list the 
output of `gluster volume info c_glusterfs` ?

> #
> #
> # Brick1> gluster volume heal c_glusterfs info
> Brick oamhost:/opt/lvmdir/c2/brick/
> /logfiles/security/EVENT_LOG.xml
> Number of entries: 1
>
> Brick oamhost:/opt/lvmdir/c2/brick/
> Number of entries: 0
>
> We couldn't collect getfattr output on parent directory.
> We will try to reproduce the problem again and provide you the logs.
>


Thanks, a reproducer +logs would really be helpful.


> Meanwhile, can you please check and let us know
> why "gluster volume heal c_glusterfs info split-brain" is showing 
> number of entries in split-brain as zero?

Because the gfid-string of the parent directory seems to be missing from 
the <brick>/.glusterfs/indices/xattrop of the bricks.

> Regards,
> Anusha
>
> On Wed, Aug 12, 2015 at 2:08 PM, Ravishankar N <ravishankar at redhat.com 
> <mailto:ravishankar at redhat.com>> wrote:
>
>
>
>     On 08/11/2015 03:28 PM, Lakshmi Anusha wrote:
>>     From the extended attributes, an entry split-brain seems to be
>>     appeared. Since gfid is different for the original file and its
>>     replica.
>>     Can you please let us know why the split-brain files are not
>>     shown in "gluster volume heal <vol> info split-brain" command?
>
>     For gfid mismatches, 'info split-brain` should indicate that the
>     parent directory of that file is in split-brain. Strange that it
>     isn't.
>     If you still have the setup, can you provide the getfattr output
>     of the parent dir on both bricks? Also, does `gluster vol heal
>     <vol> info ` list the file or the parent dir?
>
>>     Kindly let us know if any known issue exists.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150814/0a9b4c62/attachment.html>


More information about the Gluster-users mailing list