<div dir="ltr"><div>Hi</div><div><br></div><div>Have found an issue with our installation of gluster, and need some advice on how to procede.</div><div><br></div><div>I wrote out a bug report detailing the issue.</div><div>
<br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=971630">https://bugzilla.redhat.com/show_bug.cgi?id=971630</a></div><div><br></div><div><br></div><div>I&#39;m not sure if its a gluster configuration problem, or an actual bug. Or even a VM thing. Or combination of both.</div>
<div><br></div><div>Will briefly describe the issue I am seeing (bug report above more detailed).</div><div><br></div><div>In an application I&#39;m developing on a 2 brick gluster installation (2 Centos 6 VM&#39;s), occasionally I&#39;d see a file that appeared to exist in both.</div>
<div><br></div><div>The permissions on both files exactly the same. Also the timestamp. I would however notice in the application logs a few &quot;permission denied&quot; errors occuring, I&#39;m assuming because my application is trying to read a file thats currently being written.</div>
<div><br></div><div>This is the strange bit. When I cat/less the file, on 1 server its blank. On the other the content of the file is fine. If I &#39;touch&#39; the blank file the content of the file comes back.</div><div>
<br></div><div>So I wrote a couple of quick &amp; dirty PHP scripts effectively duplicating what the application tries todo.</div><div><br></div><div>write.php - this basically opens and write a file to a directory (in a loop - 100 files). I read its contents in. I then move the file to another gluster directory.</div>
<div>read.php -  finds files in both directories &amp; tries to read contents in. In a loop with no time delay in reading</div><div><br></div><div>Every single time, I end up with at least 1 file (mostly more than 1) which has the characteristics I&#39;ve described in both the original directory, and the directory where the file was moved. Indicating that either a file-&gt;open-&gt;write or a file-&gt;mv AND reading the files at the same time causes it.</div>
<div><br></div><div>It would be nice if I could figure out what might be happening here. Is it a bug? Maybe a config issue?</div><div><br></div><div># gluster volume info</div><div><br></div><div>Volume Name: prxvol</div>
<div>Type: Replicate</div><div>Volume ID: b5879503-3c6b-4556-b6ee-e600208150a7</div><div>Status: Started</div><div>Number of Bricks: 1 x 2 = 2</div><div>Transport-type: tcp</div><div>Bricks:</div><div>Brick1: 10.178.19.254:/data</div>
<div>Brick2: 10.177.17.23:/data</div><div>Options Reconfigured:</div><div>auth.allow: 10.178.19.254,10.177.17.23</div><div>diagnostics.brick-log-level: INFO</div><div>diagnostics.client-log-level: INFO</div><div>cluster.data-self-heal-algorithm: diff</div>
<div><br></div><div><br></div><div><br></div><div>cheers</div><div>Daryn</div></div>