<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 31, 2014 at 12:02 PM, Humble Devassy Chirammal <span dir="ltr">&lt;<a href="mailto:humble.devassy@gmail.com" target="_blank">humble.devassy@gmail.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>I  second Jason, either the quorum=auto has to be disabled or just add one more server to the trusted pool and find the result .<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div><span class="HOEnZb"><font color="#888888">--Humble<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 1, 2014 at 12:22 AM, Jason Brooks <span dir="ltr">&lt;<a href="mailto:jbrooks@redhat.com" target="_blank">jbrooks@redhat.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><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Vince Loschiavo&quot; &lt;<a href="mailto:vloschiavo@gmail.com" target="_blank">vloschiavo@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br>
&gt; Sent: Thursday, July 31, 2014 9:22:16 AM<br>
&gt; Subject: [Gluster-users] Virt-store use case - HA failure issue -     suggestions needed<br>
&gt;<br>
&gt; I&#39;m currently testing Gluster 3.5.1 in a two server QEMU/KVM environment.<br>
&gt; Centos 6.5:<br>
&gt; Two servers (KVM07 &amp; KVM08), Two brick (one brick per server) replicated<br>
&gt; volume<br>
&gt;<br>
&gt; I&#39;ve tuned the volume per the documentation here:<br>
&gt; <a href="http://gluster.org/documentation/use_cases/Virt-store-usecase/" target="_blank">http://gluster.org/documentation/use_cases/Virt-store-usecase/</a><br>
&gt;<br>
&gt; I have the gluster volume fuse mounted on KVM07 and KVM08 and am using it<br>
&gt; to store raw disk images.<br>
&gt;<br>
&gt; KVM is using the fuse mounted volume as a &quot;dir: Filesystem Directory:<br>
&gt; storage pool.<br>
&gt;<br>
&gt; With setting dynamic_ownership = 0 in /etc/libvirt/qemu.conf and chown-ing<br>
&gt; the files to qemu:qemu, live migration works great.<br>
&gt;<br>
&gt; Problem:<br>
&gt; If I need to take down one of these servers for maintenance, I live migrate<br>
&gt; the VMs to the other server.<br>
&gt; service gluster stop<br>
&gt; then kill all the remaining gluster and brick processes.<br>
<br>
</div>The guide says that quorum-type=auto sets a rule such that at least half<br>
of the bricks in the replica group should be UP and running. If not,<br>
the replica group becomes read-only. I think the rule is actually 51%,<br>
so bringing down one of the two servers makes your volume read-only.<br>
<br>
If you want two servers, you need to unset this rule. Better to add a<br>
third server and a third replica, though.<br>
<br>
Regards, Jason<br>
<div><br>
<br>
&gt;<br>
&gt; At this point, the VMs die.  The Fuse mount recovers and remains attached<br>
&gt; to the volume via the other server, but the VIRT disk images are not fully<br>
&gt; synced.<br>
&gt;<br>
&gt; This causes the VMs to go into a read-only files system state, then kernel<br>
&gt; panic.  Reboots/restarts of the VMs just cause kernel panics.  This<br>
&gt; effectively brings down the two node cluster.<br>
&gt;<br>
&gt; Bringing back up the gluster node / bricks /etc, prompts a self-heal.  Once<br>
&gt; self-heal is completed, the VMs can boot normally.<br>
&gt;<br>
&gt; Question: is there a better way to accomplish HA with live/running Virt<br>
&gt; images?  The goal is to be able to bring down any one server in the pair<br>
&gt; and perform maintenance without interrupting the VMs.<br>
&gt;<br>
&gt; I assume my shutdown process is flawed but haven&#39;t been able to find a<br>
&gt; better process.<br>
&gt;<br>
&gt; Any suggestions are welcome.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -Vince Loschiavo<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
&gt; <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div>That was it.  Thank you.  I&#39;m somewhat space constrained in my lab, so I chose to disable quorum and set server-quorum to 50%.  I assume that was redundant, but it works for me.</div>
<div><br></div><div><br></div><div><br></div>-- <br>-Vince Loschiavo<br>
</div></div>