[Pacemaker] Resource Failover in 2 Node Cluster
Dejan Muhamedagic
dejanmm at fastmail.fm
Wed Aug 19 10:25:02 UTC 2009
Hi,
On Wed, Aug 19, 2009 at 10:19:42AM +0100, Darren.Mansell at opengi.co.uk wrote:
> Hello everyone. I'm a little confused about how this set up should work.
> This is my config:
>
>
>
> node gihub1
>
> node gihub2
>
> primitive stonith-SSH stonith:ssh \
>
> params hostlist="gihub1 gihub2"
>
> primitive DRBD-Disk ocf:linbit:drbd \
>
> params drbd_resource="gihub_disk" \
>
> op monitor interval="59s" role="Master" timeout="30s" \
>
> op monitor interval="60s" role="Slave" timeout="30s"
>
> primitive FileSystem ocf:heartbeat:Filesystem \
>
> params fstype="ext3" directory="/www" device="/dev/drbd0" \
>
> op monitor interval="30s" timeout="15s" \
>
> meta migration-threshold="10"
>
> primitive ProFTPD lsb:proftpd \
>
> op monitor interval="20s" timeout="10s" \
>
> meta migration-threshold="10"
>
> primitive Tomcat lsb:tomcat \
>
> op monitor interval="20s" timeout="10s" \
>
> meta migration-threshold="10"
>
> primitive Virtual-IP ocf:heartbeat:IPaddr2 \
>
> params ip="2.21.4.45" broadcast="2.255.255.255" nic="eth0"
> cidr_netmask="8" \
>
> op monitor interval="30s" timeout="15s" \
>
> meta migration-threshold="10"
>
> group Resource-Group FileSystem ProFTPD Tomcat Virtual-IP
>
> ms MS-DRBD-Disk DRBD-Disk \
>
> meta clone-max="2" notify="true" globally-unique="false"
>
> clone STONITH-clone stonith-SSH
>
> location DRBD-Master-Prefers-GIHub1 MS-DRBD-Disk \
>
> rule $id="drbd_loc_rule" $role="master" 100: #uname eq gihub1
>
> colocation Resource-Group-With-DRBD-Master inf: Resource-Group
> MS-DRBD-Disk:Master
>
> order Start-DRBD-Before-Filesystem inf: MS-DRBD-Disk:promote
> FileSystem:start
>
> property $id="cib-bootstrap-options" \
>
> dc-version="1.0.3-0080ec086ae9c20ad5c4c3562000c0ad68374f0a" \
>
> expected-quorum-votes="2" \
>
> no-quorum-policy="ignore" \
>
> start-failure-is-fatal="false" \
>
> stonith-action="poweroff" \
>
> last-lrm-refresh="1250615730" \
>
> stonith-enabled="false"
>
The configuration looks ok, apart from stonith, but I guess that
this is still testing.
> I had assumed (and I'm sure it worked like this before) that if I reboot
> gihub1, all the resources should instead start on gihub2. I have tried
> with stonith-enabled=true which doesn't seem to change anything. Can
> anyone see from my config or the attached messages log what is going on?
> I've compiled DRBD 8.3.2 and I'm using the new Libit DRBD RA. I'll try
> using the heartbeat RA in the meantime.
Can't say based on the log, you should use hb_report which would
contain pengine graphs and cib status section. I don't think that
this was due to the RA, but probably the score for that node was
very down or the failcount very high :)
Thanks,
Dejan
>
>
> Many thanks
>
> Darren Mansell
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list