Re: split brain: how should it be cured?

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

 



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@xxxxxxxxxx>
To: "Pranith Kumar Karampuri" <pkarampu@xxxxxxxxxx>
Cc: gluster-devel@xxxxxxxxxx
Sent: Tuesday, June 19, 2012 7:31:16 AM
Subject: Re: split brain: how should it be cured?

Pranith Kumar Karampuri <pkarampu@xxxxxxxxxx> 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@xxxxxxxxxx



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

  Powered by Linux