Hello,
on Debian Wheezy (7.0) I installed pacemaker with heartbeat. When
putting multiple filesystems which depend on multiple drbd promotions,
only the first drbd is promoted and the group never comes up. However
when the promotions are not based on the individual filesystems but on
the group or probably any single entity all drbds are promoted
correctly. So to summarize:
This only promotes the first drbd and the resource group never starts:
group astorage drbd5_fs drbd8_fs nfs-common nfs-kernel-server astorage_ip
order drbd5_fs_after_drbd5 inf: ma-ms-drbd5:promote drbd5_fs:start
order drbd8_fs_after_drbd8 inf: ma-ms-drbd8:promote drbd8_fs:start
# ~~~~~~~~~~~~~~
This works:
group astorage drbd5_fs drbd8_fs nfs-common nfs-kernel-server astorage_ip
order drbd5_fs_after_drbd5 inf: ma-ms-drbd5:promote astorage:start
order drbd8_fs_after_drbd8 inf: ma-ms-drbd8:promote astorage:start
# ~~~~~~~~~~~~~~
I would like to know if that is supposed to happen. If that is the case
I would understand why this is the case. I assume it is a bug, but I'm
not sure.
Complete working config here:
primitive astorage_ip ocf:heartbeat:IPaddr2 \
params ip="10.10.50.32" cidr_netmask="24" nic="bond0.6" \
op monitor interval="60s"
primitive astorage1-fencing stonith:external/ipmi \
params hostname="astorage1" ipaddr="10.10.30.21" userid="ADMIN"
passwd="secret" \
op monitor interval="60s"
primitive astorage2-fencing stonith:external/ipmi \
params hostname="astorage2" ipaddr="10.10.30.22" userid="ADMIN"
passwd="secret" \
op monitor interval="60s"
primitive astorage_16_ip ocf:heartbeat:IPaddr2 \
params ip="10.10.16.53" cidr_netmask="24" nic="eth0" \
op monitor interval="60s"
primitive drbd10 ocf:linbit:drbd \
params drbd_resource="r10" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd10_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd10" directory="/mnt/akvm/nfs" fstype="ext4" \
op monitor interval="60s"
primitive drbd3 ocf:linbit:drbd \
params drbd_resource="r3" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd4 ocf:linbit:drbd \
params drbd_resource="r4" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd5 ocf:linbit:drbd \
params drbd_resource="r5" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd5_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd5" directory="/mnt/apbuild/astorage/packages"
fstype="ext3" \
op monitor interval="60s"
primitive drbd6 ocf:linbit:drbd \
params drbd_resource="r6" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd8 ocf:linbit:drbd \
params drbd_resource="r8" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd8_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd8" directory="/mnt/akvm/vms" fstype="ext4" \
op monitor interval="60s"
primitive drbd9 ocf:linbit:drbd \
params drbd_resource="r9" \
op monitor interval="29s" role="Master" \
op monitor interval="31s" role="Slave"
primitive drbd9_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd9" directory="/exports" fstype="ext4" \
op monitor interval="60s"
primitive nfs-common ocf:heartbeat:nfs-common \
op monitor interval="60s"
primitive nfs-kernel-server ocf:heartbeat:nfs-kernel-server \
op monitor interval="60s"
primitive target ocf:heartbeat:target \
op monitor interval="60s"
group astorage drbd5_fs drbd8_fs drbd9_fs drbd10_fs nfs-common
nfs-kernel-server astorage_ip astorage_16_ip target \
meta target-role="Started"
ms ma-ms-drbd10 drbd10 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd3 drbd3 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd4 drbd4 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd5 drbd5 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd6 drbd6 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd8 drbd8 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ma-ms-drbd9 drbd9 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
location astorage1-fencing-placement astorage1-fencing -inf: astorage1
location astorage2-fencing-placement astorage2-fencing -inf: astorage2
location cli-standby-astorage astorage \
rule $id="cli-standby-rule-astorage" -inf: #uname eq astorage2
colocation drbd10fs_on_drbd10 inf: astorage ma-ms-drbd10:Master
colocation drbd5fs_on_drbd5 inf: astorage ma-ms-drbd5:Master
colocation drbd8fs_on_drbd8 inf: astorage ma-ms-drbd8:Master
colocation drbd9fs_on_drbd9 inf: astorage ma-ms-drbd9:Master
colocation target_on_drbd3 inf: astorage ma-ms-drbd3:Master
colocation target_on_drbd4 inf: astorage ma-ms-drbd4:Master
colocation target_on_drbd6 inf: astorage ma-ms-drbd6:Master
order drbd10_fs_after_drbd10 inf: ma-ms-drbd10:promote astorage:start
order drbd5_fs_after_drbd5 inf: ma-ms-drbd5:promote astorage:start
order drbd8_fs_after_drbd8 inf: ma-ms-drbd8:promote astorage:start
order drbd9_fs_after_drbd9 inf: ma-ms-drbd9:promote astorage:start
order target_after_drbd3 inf: ma-ms-drbd3:promote astorage:start
order target_after_drbd4 inf: ma-ms-drbd4:promote astorage:start
order target_after_drbd6 inf: ma-ms-drbd6:promote astorage:start
Cheers,
Thomas
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems