colocation altogether inf: apache mysql drbd_fs drbd_ms:Master 2012/2/10 Ryan Stepalavich <rstepalav...@gmail.com>
> I'm using Pacemaker to handle my cluster resources (on top of heartbeat). > Everything works except the collocation parameter. I want all of my > resources to stay on the same node at all times. > > Here's what my cluster looks like right now: > > ----------------------- > ============ > Last updated: Fri Feb 10 16:52:10 2012 > Stack: Heartbeat > Current DC: svrmntr01 (715d1b92-3849-4dab-8d4a-a3b3a4f4efc3) - partition > with quorum > Version: 1.1.5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f > 2 Nodes configured, unknown expected votes > 4 Resources configured. > ============ > > Online: [ svrmntr01 svrmntr02 ] > > Master/Slave Set: drbd_ms [drbd] > Masters: [ svrmntr01 ] > Slaves: [ svrmntr02 ] > drbd_fs (ocf::heartbeat:Filesystem): Started svrmntr01 > apache (lsb:apache2): Started svrmntr02 (unmanaged) FAILED > mysql (lsb:mysql) Started [ svrmntr01 svrmntr02 ] > > Failed actions: > apache_monitor_0 (node=svrmntr02, call=4, rc=127, status=complete): > <unknown> > apache_stop_0 (node=svrmntr02, call=6, rc=127, status=complete): > <unknown> > ----------------------------- > > Here's my current configuration: > > --------------------------------- > node $id="715d1b92-3849-4dab-8d4a-a3b3a4f4efc3" svrmntr01 > node $id="af6fe9bc-b89d-4460-9b50-3039bbd9e144" svrmntr02 \ > attributes standby="off" > primitive apache lsb:apache2 \ > meta target-role="Started" > primitive drbd ocf:linbit:drbd \ > params drbd_resource="lamp" \ > op monitor interval="60s" > primitive drbd_fs ocf:heartbeat:Filesystem \ > params device="/dev/drbd0" directory="/srv/data" fstype="ext4" > primitive mysql lsb:mysql > ms drbd_ms drbd \ > meta master-max="1" master-node-max="1" clone-max="2" > clone-node-max="1" notify="true" > location cli-standby-apache apache \ > rule $id="cli-standby-rule-apache" -inf: #uname eq svrmntr02 > colocation altogether inf: drbd_fs drbd_ms:Master apache mysql > order fs_after_drbd_then_lamp inf: drbd_ms:promote drbd_fs:start > mysql:start apa che:start > property $id="cib-bootstrap-options" \ > dc-version="1.1.5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \ > cluster-infrastructure="Heartbeat" \ > stonith-enabled="false" > ------------------------ > > > Anybody have an idea as to what I'm doing wrong? > > Thanks! > _______________________________________________ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > -- esta es mi vida e me la vivo hasta que dios quiera _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems