<br><div dir="auto"><div>
Thanks Vijay for quick response. </div><div><br></div><div>On a related question if multiple vms are created using qemu GlusterFS block driver on the same volume then volume consistency is assured by the gluster driver, correct.</div>
<div><br></div>Murali Balcha<br>
<blockquote type="cite">
<div><b>From:</b> Vijay Bellur &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;vbellur@redhat.com&#39;);" target="_blank">vbellur@redhat.com</a>&gt;<br>
<b>Date:</b> September 20, 2013, 8:58:35 AM EDT<br>
<b>To:</b> Murali Balcha &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;Murali.Balcha@triliodata.com&#39;);" target="_blank">Murali.Balcha@triliodata.com</a>&gt;<br>
<b>Cc:</b> &quot;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;gluster-devel@nongnu.org&#39;);" target="_blank">gluster-devel@nongnu.org</a>&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;gluster-devel@nongnu.org&#39;);" target="_blank">gluster-devel@nongnu.org</a>&gt;<br>

<b>Subject:</b> <b>Re: [Gluster-devel] Questions on libgfapi</b><br>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>On 09/20/2013 06:36 AM, Murali Balcha wrote:</span><br>
<blockquote type="cite"><span>Hi,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>I have couple of questions on libgfapi.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>1.Can two or more clients on either same host or different hosts access</span><br>
</blockquote>
<blockquote type="cite"><span>single volume thru libgfapi?</span><br>
</blockquote>
<span></span><br>
<span>Yes, it is possible.</span><br>
<span></span><br>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>2.How do clients synchronize access to files? I believe both clients</span><br>
</blockquote>
<blockquote type="cite"><span>have their instance of client side translators loaded, right?</span><br>
</blockquote>
<span></span><br>
<span>Yes, Both clients will have their own instances of client xlators loaded. GlusterFS/libgfapi has support for advisory posix locking and applications can make use of that if multiple application instances need to synchronize access to files. If a replicated
 gluster volume is used, the afr translator makes use of a transaction framework to synchronize updates and provide consistency.</span><br>
<span></span><br>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>3.Does it use lk translator for synchronizing access to files?</span><br>
</blockquote>
<span></span><br>
<span>Yes, the lk translator loaded on the server stack is used for synchronization.</span><br>
<span></span><br>
<span>Regards,</span><br>
<span>Vijay</span><br>
<span></span><br>
<span></span><br>
</div>
</blockquote>
</div>

<br><br><br>-- <br>Muralidhar Balcha<br>508 494 5007<br>