<div dir="ltr"><div>Hi!</div><div><br></div><div>Just a follow up to this issue. I also noticed if I try to touch the blank file, sometimes I get a PHP warning</div><div><br></div><div>PHP Warning:  touch(): Utime failed: Permission denied etc etc<br>
</div><div><br></div><div style>So I can&#39;t even guarantee that touching a file brings its contents back.</div><div style><br></div><div style>Any ideas on what might be happening?</div><div style><br></div><div style>
Its quite confusing, because most of the time, everything looks great. Files get replicated &amp; it just works.</div><div style><br></div><div style>cheers</div><div style>Daryn</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 12, 2013 at 2:24 PM, Daryn Hanright <span dir="ltr">&lt;<a href="mailto:daz@planetnz.com" target="_blank">daz@planetnz.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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><span class="HOEnZb"><font color="#888888"><div>Daryn</div></font></span></div>
</blockquote></div><br></div>