<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; font-size: medium; "><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><blockquote type="cite"><div><font class="Apple-style-span" 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><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 10.10.10.10:7802;</div><div> }</div><div> on xen11 {</div><div> disk /dev/vg1/lv_drbd8_1;</div><div> address 10.10.10.11:7802;</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 class="Apple-tab-span" style="white-space:pre">        </span>params drbd_resource="drbd8_1" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval="15s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op start interval="0" timeout="240s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op stop interval="0" timeout="100s"</div><div>primitive xen_drbd8_2 ocf:linbit:drbd \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params drbd_resource="drbd8_2" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval="15s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op start interval="0" timeout="240s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op stop interval="0" timeout="100s"</div><div><br></div><div>primitive xen_mail4 ocf:heartbeat:Xen \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params xmfile="/etc/xen/mail4.cfg" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval="3s" timeout="30s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op start interval="0" timeout="60s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op stop interval="0" timeout="40s" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </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 class="Apple-tab-span" style="white-space:pre">        </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 class="Apple-tab-span" style="white-space:pre">        </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 class="Apple-tab-span" style="white-space:pre">        </span>dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cluster-infrastructure="Heartbeat" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>stonith-enabled="false" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>no-quorum-policy="ignore" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>last-lrm-refresh="1357656884" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>maintenance-mode="false"</div><div>rsc_defaults $id="rsc-options" \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>resource-stickiness="100"</div></div><div><br></div><div><br></div><div>HTH (Hope That Helps)</div><div><br></div><div>Helmut Wollmersdorfer</div><div><br></div><div><br></div></body></html>