<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 10/14/2015 07:02 PM, Игорь Бирюлин
wrote:<br>
</div>
<blockquote
cite="mid:CAEtWxpx=Aey6S8dsGTXkLDoRENKiFaAA4K_C3gWQ-iZpViVcKw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,<br>
today in my 2 nodes replica set I've found split-brain. Command
'ls' start told 'Input/output error'.<br>
</div>
</blockquote>
<font color="#000099"><br>
</font><font color="#3366ff"><font color="#000099">What does the
mount log (/var/log/glusterfs/<path-to-mount>.log) say
when you get this error?<br>
<br>
Can you run getfattr as root for the file from *both* bricks and
share the result?<br>
`getfattr -d -m . -e hex
/storage/gluster_brick_repofiles/xxx/keyrings/debian-keyring.gpg`<br>
<br>
Thanks.<br>
Ravi</font><br>
</font><br>
<br>
<blockquote
cite="mid:CAEtWxpx=Aey6S8dsGTXkLDoRENKiFaAA4K_C3gWQ-iZpViVcKw@mail.gmail.com"
type="cite">
<div dir="ltr">But command 'gluster v heal VOLNAME info
split-brain' does not show problem files:<br>
# gluster v heal repofiles info split-brain<br>
Brick dist-int-master03.xxx:/storage/gluster_brick_repofiles<br>
Number of entries in split-brain: 0<br>
<br>
Brick dist-int-master04.xxx:/storage/gluster_brick_repofiles<br>
Number of entries in split-brain: 0<br>
#<br>
In output of 'gluster v heal VOLNAME info' I see problem files
(/xxx/keyrings/debian-keyring.gpg, /repos.json), but without
split-brain markers:<br>
# gluster v heal repofiles info<br>
Brick dist-int-master03.xxx:/storage/gluster_brick_repofiles<br>
/xxx/keyrings/debian-keyring.gpg<br>
<gfid:09ec49c9-911a-4b83-abe8-080fe79e7c69><br>
<gfid:35c51b11-a7fb-496d-9e88-6d5a54fda7da><br>
/repos.json<br>
<gfid:4f5cb2b5-30e2-43b0-a935-cfc42af883bf><br>
<gfid:9d2fc354-37c0-47a7-b9f3-379504cba797><br>
<gfid:cd86a246-9fc4-47d2-bb4d-67566677f77a><br>
<gfid:b932eed0-07e9-45c5-943e-7478e9f654b4><br>
<gfid:28bf2ffe-948c-4c7d-bce6-966242338581><br>
<gfid:ee5659ae-1335-42c5-a852-790387b4213b><br>
<gfid:fdfb6b8c-3c04-435a-b8d3-8d8341b66409><br>
Number of entries: 11<br>
<br>
Brick dist-int-master04.xxx:/storage/gluster_brick_repofiles<br>
Number of entries: 0<br>
#<br>
<br>
I couldn't solve split-brain by new standard command:<br>
# gluster v heal repofiles split-brain bigger-file /repos.json<br>
Lookup failed on /repos.json:Input/output error<br>
Volume heal failed.<br>
#<br>
<br>
Additional info:<br>
# gluster v info<br>
Volume Name: repofiles<br>
Type: Replicate<br>
Volume ID: 4b0e2a74-f1ca-4fe7-8518-23919e1b5fa0<br>
Status: Started<br>
Number of Bricks: 1 x 2 = 2<br>
Transport-type: tcp<br>
Bricks:<br>
Brick1: dist-int-master03.xxx:/storage/gluster_brick_repofiles<br>
Brick2: dist-int-master04.xxx:/storage/gluster_brick_repofiles<br>
Options Reconfigured:<br>
performance.readdir-ahead: on<br>
client.event-threads: 4<br>
server.event-threads: 4<br>
cluster.lookup-optimize: on<br>
# cat /etc/issue<br>
Ubuntu 14.04.3 LTS \n \l<br>
# dpkg -l | grep glusterfs<br>
ii glusterfs-client
3.7.5-ubuntu1~trusty1 amd64 clustered
file-system (client package)<br>
ii glusterfs-common
3.7.5-ubuntu1~trusty1 amd64 GlusterFS
common libraries and translator modules<br>
ii glusterfs-server
3.7.5-ubuntu1~trusty1 amd64 clustered
file-system (server package)<br>
#<br>
<br>
I have 2 questions:<br>
1. Why 'gluster v heal VOLNAME info split-brain' doesn't show
actual split-brain? Why in 'gluster v heal VOLNAME info' I
doesn't see markers like 'possible in split-brain'?<br>
How I can monitor my gluster installation if these commands
doesn't show problems?<br>
2. Why 'gluster volume heal VOLNAME split-brain bigger-file
FILE' doesn't solve split-brain? I understand that I can solve
split-brain remove files from brick but I thought to use this
killer feature.<br>
<br>
Best regards,<br>
Igor<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</body>
</html>