<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Thank you for your reply.<br><br>I had setuped two test VM with gluster 3.7.2 on ubuntu trusty and <span lang="en"><span>repeated actions:<br></span></span></div><span lang="en"><span>1. setuped and create gluster share in replicate mode with 2 bricks;<br></span></span></div><span lang="en"><span>2. mounted share on both servers (like client) by glusterfs;<br></span></span></div><span lang="en"><span>3. create some files in share;<br></span></span></div><span lang="en"><span>4. blocked network connection between peer (gluster peer disconnected) by iptables;<br></span></span></div><span lang="en"><span>5. appended text in the same file in share from both node (file with name 'test');<br></span></span></div><span lang="en"><span>6. returned network connection bettween peer (removed iptables rule).<br></span></span></div><span lang="en"><span>7. got split-brain on edited by me file.<br><br></span></span></div><span lang="en"><span>I check </span></span>existence<span> split-brain:<br>root@dist-gl2:/# gluster volume heal repofiles info<br>Brick dist-gl1:/brick1/<br>/test <br><span class="im">/ - Is in split-brain<br><br></span>Number of entries: 2<br><br>Brick dist-gl2:/brick1/<span class="im"><br>/ - Is in split-brain<br><br></span>/test <br>Number of entries: 2<br><br>root@dist-gl2:/# gluster volume heal repofiles info split-brain<br>Brick dist-gl1:/brick1/<br>/<br>Number of entries in split-brain: 1<br><br>Brick dist-gl2:/brick1/<br>/<br>Number of entries in split-brain: 1<br><br>root@dist-gl2:/# <br><br></span></div><span>Why does split-brain showed for directory (/) only, and why doesn't show for file (/test) where real split-brain?<br><br><br><br></span></div><span>Addition info:<br>root@dist-gl2:/# cat /etc/issue<br>Ubuntu 14.04.1 LTS \n \l<br><br>root@dist-gl2:/# dpkg -l | grep gluster<br>ii glusterfs-client 3.7.2-ubuntu1~trusty1 amd64 clustered file-system (client package)<br>ii glusterfs-common 3.7.2-ubuntu1~trusty1 amd64 GlusterFS common libraries and translator modules<br>ii glusterfs-server 3.7.2-ubuntu1~trusty1 amd64 clustered file-system (server package)<br>root@dist-gl2:/# gluster volume info<span class="im"><br> <br>Volume Name: repofiles<br>Type: Replicate<br></span>Volume ID: 1d5d5d7d-39f2-4011-9fc8-d73c29495e7c<span class="im"><br>Status: Started<br>Number of Bricks: 1 x 2 = 2<br>Transport-type: tcp<br>Bricks:<br></span>Brick1: dist-gl1:/brick1<br>Brick2: dist-gl2:/brick1<br>Options Reconfigured:<br>performance.readdir-ahead: on<br>server.allow-insecure: on<br>root@dist-gl2:/#</span></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-15 14:41 GMT+03:00 Ravishankar N <span dir="ltr"><<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
This is been fixed in glusterfs 3.7, please see the thread
<a href="https://www.gluster.org/pipermail/gluster-users/2015-June/022336.html" target="_blank">https://www.gluster.org/pipermail/gluster-users/2015-June/022336.html</a><div><div class="h5"><br>
<br>
<div>On 07/15/2015 05:06 PM, Игорь Бирюлин
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hello,<br>
I have made split brain special for test (file /1 in
output).<br>
And check with command:<br>
[14:20:10] root@xxx04:/repo # gluster v heal repofiles info<br>
Brick xxx03:/storage/gluster_brick_repofiles/<br>
/ - Is in split-brain<br>
<br>
/1 <br>
Number of entries: 2<br>
<br>
Brick xxx04:/storage/gluster_brick_repofiles/<br>
/ - Is in split-brain<br>
<br>
/1 <br>
Number of entries: 2<br>
<br>
[14:20:27] root@xxx04:/repo #<br>
<br>
But when I try look for files in split-brain by command
"gluster v heal repofiles info split-brain", I don't see
entries:<br>
[14:20:27] root@xxx04:/repo # gluster v heal repofiles info
split-brain<br>
Gathering list of split brain entries on volume repofiles
has been successful <br>
<br>
Brick xxx03:/storage/gluster_brick_repofiles<br>
Number of entries: 0<br>
<br>
Brick xxx04:/storage/gluster_brick_repofiles<br>
Number of entries: 0<br>
<br>
[14:20:34] root@xxx04:/repo #<br>
<br>
The question is why I can not see files in split-brain by
the last command?<br>
<br>
Additional info:<br>
[14:20:34] root@xxx04:/repo # cat /etc/issue<br>
Ubuntu 12.04.5 LTS \n \l<br>
<br>
<br>
[14:31:32] root@xxx04:/repo # dpkg -l | grep gluster<br>
ii glusterfs-client
3.6.3-6 clustered file-system
(client package)<br>
ii glusterfs-common
3.6.3-6 GlusterFS common libraries
and translator modules<br>
ii glusterfs-server
3.6.3-6 clustered file-system
(server package)<br>
<br>
[14:31:39] root@xxx04:/repo # gluster volume info<br>
<br>
Volume Name: repofiles<br>
Type: Replicate<br>
Volume ID: 3d30a803-35b0-46c8-96a6-4ae19e21f25b<br>
Status: Started<br>
Number of Bricks: 1 x 2 = 2<br>
Transport-type: tcp<br>
Bricks:<br>
Brick1: xxx03:/storage/gluster_brick_repofiles<br>
Brick2: xxx04:/storage/gluster_brick_repofiles<br>
Options Reconfigured:<br>
server.allow-insecure: on<br>
<br>
Volume Name: share<br>
Type: Replicate<br>
Volume ID: ecf80f1a-cd26-4c5e-a9a3-71fd8d89cbf8<br>
Status: Started<br>
Number of Bricks: 1 x 2 = 2<br>
Transport-type: tcp<br>
Bricks:<br>
Brick1: xxx03:/place/share<br>
Brick2: xxx04:/place/share<br>
Options Reconfigured:<br>
server.allow-insecure: on<br>
<br>
<br>
[14:31:48] root@xxx04:/repo #<br>
<br>
</div>
Best regards,<br>
</div>
Igor<br>
<div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>