Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Am 26.02.2013 um 22:57 schrieb Felipe Gutierrez:
>
> 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.
Heartbeat+Pacemaker+Xen+DRBD on Debian 6 "Squeeze" works stable here.
All installed packages are stock-Debian from stable.
The device stack:
- RAID10
- LVM-PV
- LVM-LV for *each* device of the Xen-Guests (i.e. root and swap)
- each LV is a DRBD-device
- each DRBD-device is mapped to a Xen xvda
from # cat /etc/xen/mail4.cfg:
#
# Physical volumes
#
root = '/dev/xvda2 ro'
disk = [
'phy:/dev/drbd15,xvda2,w',
'phy:/dev/drbd16,xvda1,w',
]
root at xen10:/etc/drbd.d# grep -ri drbd15 /etc/drbd.d/
/etc/drbd.d/drbd8_1.res: device /dev/drbd15;
from # cat /etc/drbd.d/drbd8_1.res
resource drbd8_1 {
meta-disk internal;
device /dev/drbd15;
on xen10 {
disk /dev/vg1/lv_drbd8_1;
address 10.10.10.10:7802;
}
on xen11 {
disk /dev/vg1/lv_drbd8_1;
address 10.10.10.11:7802;
}
net {
#allow-two-primaries;
}
startup {
#become-primary-on both;
}
}
relevant parts from root at xen10:/etc/drbd.d# crm configure show
node $id="..." xen11
node $id="..." xen10
primitive xen_drbd8_1 ocf:linbit:drbd \
params drbd_resource="drbd8_1" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="100s"
primitive xen_drbd8_2 ocf:linbit:drbd \
params drbd_resource="drbd8_2" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="100s"
primitive xen_mail4 ocf:heartbeat:Xen \
params xmfile="/etc/xen/mail4.cfg" \
op monitor interval="3s" timeout="30s" \
op start interval="0" timeout="60s" \
op stop interval="0" timeout="40s" \
meta target-role="Started" allow-migrate="false"
group group_drbd8 xen_drbd8_1 xen_drbd8_2
ms DrbdClone8 group_drbd8 \
meta master_max="1" master-mode-max="1" clone-max="2" clone-node-
max="1" notify="true"
location cli-prefer-xen_mail4 xen_mail4 \
rule $id="cli-prefer-rule-xen_mail4" inf: #uname eq xen11
colocation xen_mail4_and_drbd inf: xen_mail4 DrbdClone8:Master
order xen_mail4_after_drbd inf: DrbdClone8:promote xen_mail4:start
property $id="cib-bootstrap-options" \
dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
cluster-infrastructure="Heartbeat" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
last-lrm-refresh="1357656884" \
maintenance-mode="false"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
HTH (Hope That Helps)
Helmut Wollmersdorfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130228/05d36d9d/attachment.htm>