Hi Helmut, first of all, thanks for your reply!<div><br></div><div>I was looking for how to work with <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ocf:heartbeat:Xen tag on pacemaker. Let me ask some questions.</span></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">1 - It is possible to add </font><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ocf:heartbeat:Xen to may configuration and keep using LVM on DRBD?</span></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">2 - I never worked with RAID. Should I modificate my configuration at some points for this or can I remain with out RAID?</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">3 - You put </font><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">/etc/xen/mail4.cfg file on etc/xen directory. What is gonna happen with the primary became out of the network and the secondary will look for cfg file to restore the VM?</span></div>
<div><font color="#222222" face="arial, sans-serif">Let me explain how I am doing it. At my configuration, a Java program on secondary machine is looking for prinmary machine. If the primary fall down, the Java program change DRBD to primary, mount the /dev/drbd7 and restore a chekpoint that is there. I have to put the files of Xen on the DRBD partition (.img, .iso, .chekpoint, .cfg).</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">if you need more information, ask please :) I am a student on Computer Science and I am working with a professor on this area. So I am quite new on it.</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Thanks</font></div><div><font color="#222222" face="arial, sans-serif">Felipe<br></font><br><div class="gmail_quote">
On Thu, Feb 28, 2013 at 10:24 AM, Helmut Wollmersdorfer <span dir="ltr"><<a href="mailto:helmut.wollmersdorfer@fixpunkt.de" target="_blank">helmut.wollmersdorfer@fixpunkt.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
<br></div></span></span></span> </span></span></span></span></span></div><br><div><div>Am 26.02.2013 um 22:57 schrieb Felipe Gutierrez:</div><div class="im"><blockquote type="cite"><div><font color="#000000"><br></font></div>
<div>Talking about stonith/fencing I was working with Corosync+Pacemaker+Xen+DRBD but the pace maker configurations got failed when I put all components together. I mean, when I was with Corosync+Pacemaker+DRBD the fencing worked well! After I put Xen together the pacemaker configuration got failed.</div>
</blockquote></div></div><div><br></div>Heartbeat+Pacemaker+Xen+DRBD on Debian 6 "Squeeze" works stable here. All installed packages are stock-Debian from stable.<div><br></div><div>The device stack:</div><div><br>
</div><div>- RAID10</div><div>- LVM-PV</div><div>- LVM-LV for *each* device of the Xen-Guests (i.e. root and swap)</div><div>- each LV is a DRBD-device</div><div>- each DRBD-device is mapped to a Xen xvda</div><div><br></div>
<div>from # cat /etc/xen/mail4.cfg:</div><div><br></div><div><div>#</div><div># Physical volumes</div><div>#</div><div>root = '/dev/xvda2 ro'</div><div>disk = [</div><div> 'phy:/dev/drbd15,xvda2,w',</div>
<div> 'phy:/dev/drbd16,xvda1,w',</div><div> ]</div></div><div><br></div><div><br></div><div><div>root@xen10:/etc/drbd.d# grep -ri drbd15 /etc/drbd.d/</div><div>/etc/drbd.d/drbd8_1.res: device /dev/drbd15;</div>
</div><div><br></div><div><br></div><div>from # cat /etc/drbd.d/drbd8_1.res</div><div><br></div><div><div>resource drbd8_1 {</div><div> meta-disk internal;</div><div> device /dev/drbd15;</div><div><br></div><div> on xen10 {</div>
<div> disk /dev/vg1/lv_drbd8_1;</div><div> address <a href="http://10.10.10.10:7802" target="_blank">10.10.10.10:7802</a>;</div><div> }</div><div> on xen11 {</div><div> disk /dev/vg1/lv_drbd8_1;</div><div> address <a href="http://10.10.10.11:7802" target="_blank">10.10.10.11:7802</a>;</div>
<div> }</div><div> net {</div><div> #allow-two-primaries;</div><div> }</div><div> startup {</div><div> #become-primary-on both;</div><div> }</div><div>}</div></div><div><br></div><div><div>relevant parts from root@xen10:/etc/drbd.d# crm configure show</div>
<div>node $id="..." xen11</div><div>node $id="..." xen10</div></div><div><div><br></div><div>primitive xen_drbd8_1 ocf:linbit:drbd \</div><div><span style="white-space:pre-wrap">        </span>params drbd_resource="drbd8_1" \</div>
<div><span style="white-space:pre-wrap">        </span>op monitor interval="15s" \</div><div><span style="white-space:pre-wrap">        </span>op start interval="0" timeout="240s" \</div><div><span style="white-space:pre-wrap">        </span>op stop interval="0" timeout="100s"</div>
<div>primitive xen_drbd8_2 ocf:linbit:drbd \</div><div><span style="white-space:pre-wrap">        </span>params drbd_resource="drbd8_2" \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval="15s" \</div>
<div><span style="white-space:pre-wrap">        </span>op start interval="0" timeout="240s" \</div><div><span style="white-space:pre-wrap">        </span>op stop interval="0" timeout="100s"</div>
<div><br></div><div>primitive xen_mail4 ocf:heartbeat:Xen \</div><div><span style="white-space:pre-wrap">        </span>params xmfile="/etc/xen/mail4.cfg" \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval="3s" timeout="30s" \</div>
<div><span style="white-space:pre-wrap">        </span>op start interval="0" timeout="60s" \</div><div><span style="white-space:pre-wrap">        </span>op stop interval="0" timeout="40s" \</div>
<div><span style="white-space:pre-wrap">        </span>meta target-role="Started" allow-migrate="false"</div><div><br></div><div>group group_drbd8 xen_drbd8_1 xen_drbd8_2</div><div><br></div><div>ms DrbdClone8 group_drbd8 \</div>
<div><span style="white-space:pre-wrap">        </span>meta master_max="1" master-mode-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div><br></div><div>location cli-prefer-xen_mail4 xen_mail4 \</div>
<div><span style="white-space:pre-wrap">        </span>rule $id="cli-prefer-rule-xen_mail4" inf: #uname eq xen11</div><div><br></div><div>colocation xen_mail4_and_drbd inf: xen_mail4 DrbdClone8:Master</div><div><br></div>
<div>order xen_mail4_after_drbd inf: DrbdClone8:promote xen_mail4:start</div><div><br></div><div>property $id="cib-bootstrap-options" \</div><div><span style="white-space:pre-wrap">        </span>dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \</div>
<div><span style="white-space:pre-wrap">        </span>cluster-infrastructure="Heartbeat" \</div><div><span style="white-space:pre-wrap">        </span>stonith-enabled="false" \</div><div><span style="white-space:pre-wrap">        </span>no-quorum-policy="ignore" \</div>
<div><span style="white-space:pre-wrap">        </span>last-lrm-refresh="1357656884" \</div><div><span style="white-space:pre-wrap">        </span>maintenance-mode="false"</div><div>rsc_defaults $id="rsc-options" \</div>
<div><span style="white-space:pre-wrap">        </span>resource-stickiness="100"</div></div><div><br></div><div><br></div><div>HTH (Hope That Helps)</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Helmut Wollmersdorfer</div>
<div><br></div><div><br></div></font></span></div><br>_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><b>--<br>-- Felipe Oliveira Gutierrez<br>-- <a href="mailto:Felipe.o.Gutierrez@gmail.com" target="_blank">Felipe.o.Gutierrez@gmail.com</a><br>-- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a></b>
</div>