<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm running 1.4rc7 (glusterfs--mainline--3.0--patch-814) and seeing some odd behavior when tailing a file that is being written to by a single process -- &nbsp;a log file in this case.<br><div><br class="webkit-block-placeholder"></div><div>The odd behaviors that I've noticed are that "tail -f" behaves like "tail" and doesn't show any updates. &nbsp;In addition, /usr/bin/less seems to show binary values (at least that's what I assume the "^@" characters are supposed to be) when the bottom of the file "G" accessed instead of the new data added to the file after less was started.</div><div><br></div><div>Is this a known issue? &nbsp;Is there a work-around?</div><div><br></div><div>Here's how I'm able to reproduce it. &nbsp;Run the script below and direct the output to a gluster-hosted file. &nbsp;Then attempt to "tail -f" or use /usr/bin/less on the file from another terminal.</div><div><br></div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Courier">$> num=0; while [ 1 ]; do echo $((num++)); sleep 1; done > /mnt/gluster/nums.txt</font></div><div><br></div><div><br class="webkit-block-placeholder"></div><div>The output from /usr/bin/less ends up looking like this:</div><div><font class="Apple-style-span" face="Courier">...</font></div><div><div><font class="Apple-style-span" face="Courier">301</font></div><div><font class="Apple-style-span" face="Courier">302</font></div><div><font class="Apple-style-span" face="Courier">303</font></div><div><font class="Apple-style-span" face="Courier">304</font></div><div><font class="Apple-style-span" face="Courier">305</font></div><div><font class="Apple-style-span" face="Courier">306</font></div><div><font class="Apple-style-span" face="Courier">307</font></div><div><font class="Apple-style-span" face="Courier">308</font></div><div><font class="Apple-style-span" face="Courier">309</font></div><div><font class="Apple-style-span" face="Courier">310</font></div><div><font class="Apple-style-span" face="Courier">311</font></div><div><font class="Apple-style-span" face="Courier">^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@</font></div></div><div><br class="webkit-block-placeholder"></div><div><br></div><div>Gluster configs are very basic:</div><div>## Server</div><div><div>volume brick</div><div>&nbsp;type storage/posix</div><div>&nbsp;option directory /glusterfs/export</div><div>end-volume</div><div><br></div><div>volume lock</div><div>&nbsp;&nbsp;type features/posix-locks</div><div>&nbsp;&nbsp;subvolumes brick</div><div>end-volume</div><div><br></div><div>volume export</div><div>&nbsp;&nbsp;type performance/io-threads</div><div>&nbsp;&nbsp;subvolumes lock</div><div>&nbsp;&nbsp;option thread-count 4 # default value is 1</div><div>end-volume</div><div><br></div><div>volume server</div><div>&nbsp;type protocol/server</div><div>&nbsp;option transport-type tcp</div><div>&nbsp;subvolumes export</div><div>&nbsp;option auth.addr.export.allow 10.10.10.*</div><div>end-volume</div><div><br></div><div><br></div><div><br></div><div>## Client</div><div><div>volume volume1</div><div>&nbsp;&nbsp;type protocol/client</div><div>&nbsp;&nbsp;option transport-type tcp/client</div><div>&nbsp;&nbsp;option remote-host &nbsp; &nbsp;10.10.10.2</div><div>&nbsp;&nbsp;option remote-subvolume export</div><div>end-volume</div><div><br></div><div>volume volume2</div><div>&nbsp;&nbsp;type protocol/client</div><div>&nbsp;&nbsp;option transport-type tcp/client</div><div>&nbsp;&nbsp;option remote-host &nbsp; &nbsp;10.10.10.3</div><div>&nbsp;&nbsp;option remote-subvolume export</div><div>end-volume</div><div><br></div><div>volume mirror1</div><div>&nbsp;&nbsp;type cluster/afr</div><div>&nbsp;&nbsp;subvolumes volume1 volume2</div><div>end-volume</div><div><br></div></div></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline"><br></div><div>-Bryan</div><div><br></div></div></span></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></body></html>