Re: about split-brain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,
Thank you for your reply.My answer is below.



1) In your case, does 'public_html/cello/ior_files' show itself up in the output of `gluster volume heal <VOL> info split-brain`?
Answer:
No.the heal in spit-brain show as below.
#gluster volume heal c_glusterfs info split-brain
Brick 10.32.1.144:/opt/lvmdir/c2/brick
Number of entries in split-brain: 0

Brick 10.32.0.48:/opt/lvmdir/c2/brick
Number of entries in split-brain: 0

2) And what version of gluster are you using?
Answer:
My glusterfs version is 3.7.6.

3) Could you share the output of `gluster volume info`?
Answer:
Volume Name: gv0                                                                                                                                                                                
Type: Replicate                                                                                                                                                                                 
Volume ID: 04dad182-26f9-468e-b012-bf3c84f09910                                                                                                                                                 
Status: Started                                                                                                                                                                                 
Number of Bricks: 1 x 2 = 2                                                                                                                                                                     
Transport-type: tcp                                                                                                                                                                             
Bricks:                                                                                                                                                                                         
Brick1: 10.32.1.144:/opt/lvmdir/c2/brick                                                                                                                                                     
Brick2: 10.32.0.48:/opt/lvmdir/c2/brick                                                                                                                                                          
Options Reconfigured:                                                                                                                                                                           
storage.build-pgfid: on                                                                                                                                                                         
nfs.disable: on                                                                                                                                                                                 
performance.readdir-ahead: on 

4) nameroot.ior is a regular file, correct? Could you confirm that?
Answer:
Yes.it is regular file.



On Thu, Mar 10, 2016 at 1:03 PM, songxin <songxin_1980@xxxxxxx> wrote:
Hi all,
I have a file has a problem of gfid-mismatch as below.

stat: cannot stat '/mnt/c//public_html/cello/ior_files/nameroot.ior': Input/output error 
Remote: 

getfattr -d -m . -e hex opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior 
# file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior 
trusted.afr.dirty=0x000000000000000000000000 
trusted.bit-rot.version=0x000000000000000256ded2f6000ad80f 
trusted.gfid=0x771221a7bb3c4f1aade40ce9e38a95ee 

Local: 

getfattr -d -m . -e hex opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior 
# file: opt/lvmdir/c2/brick/public_html/cello/ior_files/nameroot.ior 
trusted.bit-rot.version=0x000000000000000256ded38f000e3a51 
trusted.gfid=0x8ea33f46703c4e2d95c09153c1b858fd 


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 split-brain due to gfid-mismatch); and finally determining which of the bricks contains the 'good copy' of the file.

So the gfid-mismatch is also a split-brain.
But I found that "gluster volume heal gv0 info split-brain" can't show split-brain entry due to gfid-mismatch.

My question is following:
1.Which command can be used to show split-brain due to gfid-mismatch?
2.How to heal it?Is it same as data split-brain?


Thanks,
Xin


 


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users



 

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux