[Gluster-devel] split brain: how should it be cured?

Pranith Kumar Karampuri pkarampu at redhat.com
Wed Jun 20 09:35:36 UTC 2012


I dont think they are in split-brain. For split brain the flags should be mirror images:
Example:
trusted.afr.pfs-client-0   00 00 00 00 00 00 00 00 00 00 00 00
trusted.afr.pfs-client-1   00 00 00 00 00 00 00 01 00 00 00 00

trusted.afr.pfs-client-0   00 00 00 00 00 00 00 00 00 00 00 00
trusted.afr.pfs-client-1   00 00 00 00 00 00 00 01 00 00 00 00

Procedure to reset split-brain is to remove one of the files. 3.3 release onwards we need to also delete the file from gfid-backend.
if the file is a.txt with gfid 5c71a049-a424-480e-9e69-2cdfd7a0a7a0
remove the file a.txt
remove the file <brick-path>/.glusterfs/5c/71/5c71a049-a424-480e-9e69-2cdfd7a0a7a0
the gfid path is a hardlink to a.txt

Pranith.
----- Original Message -----
From: "Emmanuel Dreyfus" <manu at netbsd.org>
To: "Pranith Kumar Karampuri" <pkarampu at redhat.com>
Cc: gluster-devel at nongnu.org
Sent: Tuesday, June 19, 2012 7:31:16 AM
Subject: Re: [Gluster-devel] split brain: how should it be cured?

Pranith Kumar Karampuri <pkarampu at redhat.com> wrote:

> regression 832305
> Patch: http://review.gluster.com/#change,3583

Um, now both bricks have the split brain flag. How removing the file on
one brick will make it recreated on the other one, but the split brain
flag is sticky!

On brick1:
trusted.gfid             6b db b7 73 cc e7 46 a8 9d fc 96 40 2c 6a fe e8
trusted.afr.pfs-client-0   00 00 00 00 00 00 00 03 00 00 00 00
trusted.afr.pfs-client-1   00 00 00 00 00 00 00 01 00 00 00 00

On brick2:
trusted.gfid             6b db b7 73 cc e7 46 a8 9d fc 96 40 2c 6a fe e8
trusted.afr.pfs-client-0   00 00 00 00 00 00 00 00 00 00 00 00
trusted.afr.pfs-client-1   00 00 00 00 00 00 00 01 00 00 00 00

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org




More information about the Gluster-devel mailing list