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">&lt;<a href="mailto:helmut.wollmersdorfer@fixpunkt.de" target="_blank">helmut.wollmersdorfer@fixpunkt.de</a>&gt;</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 &quot;Squeeze&quot; 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        = &#39;/dev/xvda2 ro&#39;</div><div>disk        = [</div><div>                  &#39;phy:/dev/drbd15,xvda2,w&#39;,</div>
<div>                  &#39;phy:/dev/drbd16,xvda1,w&#39;,</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=&quot;...&quot; xen11</div><div>node $id=&quot;...&quot; 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=&quot;drbd8_1&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;15s&quot; \</div><div><span style="white-space:pre-wrap">        </span>op start interval=&quot;0&quot; timeout=&quot;240s&quot; \</div><div><span style="white-space:pre-wrap">        </span>op stop interval=&quot;0&quot; timeout=&quot;100s&quot;</div>
<div>primitive xen_drbd8_2 ocf:linbit:drbd \</div><div><span style="white-space:pre-wrap">        </span>params drbd_resource=&quot;drbd8_2&quot; \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;15s&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>op start interval=&quot;0&quot; timeout=&quot;240s&quot; \</div><div><span style="white-space:pre-wrap">        </span>op stop interval=&quot;0&quot; timeout=&quot;100s&quot;</div>
<div><br></div><div>primitive xen_mail4 ocf:heartbeat:Xen \</div><div><span style="white-space:pre-wrap">        </span>params xmfile=&quot;/etc/xen/mail4.cfg&quot; \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;3s&quot; timeout=&quot;30s&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>op start interval=&quot;0&quot; timeout=&quot;60s&quot; \</div><div><span style="white-space:pre-wrap">        </span>op stop interval=&quot;0&quot; timeout=&quot;40s&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>meta target-role=&quot;Started&quot; allow-migrate=&quot;false&quot;</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=&quot;1&quot; master-mode-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;</div><div><br></div><div>location cli-prefer-xen_mail4 xen_mail4 \</div>
<div><span style="white-space:pre-wrap">        </span>rule $id=&quot;cli-prefer-rule-xen_mail4&quot; 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=&quot;cib-bootstrap-options&quot; \</div><div><span style="white-space:pre-wrap">        </span>dc-version=&quot;1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>cluster-infrastructure=&quot;Heartbeat&quot; \</div><div><span style="white-space:pre-wrap">        </span>stonith-enabled=&quot;false&quot; \</div><div><span style="white-space:pre-wrap">        </span>no-quorum-policy=&quot;ignore&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>last-lrm-refresh=&quot;1357656884&quot; \</div><div><span style="white-space:pre-wrap">        </span>maintenance-mode=&quot;false&quot;</div><div>rsc_defaults $id=&quot;rsc-options&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>resource-stickiness=&quot;100&quot;</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>