Hello Steve, The line you refer to looks the "pingd" score (how many ping-nodes it sees, times the multiplier value (default 1), and sees if it is "lte" than zero. "lte" stands for "Less Than or Equal". So if the pingd score is 0 or less than zero, it returns "true" (and thus, the node/resource will get a "-INFINITY" score).
Hope that sheds little bit of light on your problem. Best Regards, Jonas Andradas. On Jan 24, 2008 11:37 PM, Sinnott, Steve <[EMAIL PROTECTED]> wrote: > Hi! > > So, I've got a problem. I've gone through the mailing list archives and > can't find anything that helps. > > I'm trying to setup a two-node basic failover of Oracle, using DRBD as > the shared storage. I've gotten it so that it works perfectly, fails > over, fails back, etc. > > The problem I'm having is where I setup the pingd usage. I enabled pingd > in the ha.cf file, and setup a constraint (both below). When I yank the > ethernet cable from one of the servers, it does trigger a failover. > However, the pingd failover doesn't promote the DRBD on the failover > node to be master, it leaves it as slave. Since my constraints are > looking for the master DRBD node, Oracle and whatnot fail to start. > > What I'm looking for is a constraint for pingd that will migrate from > box A to box B on ping failure, and promote the DRBD instance on box B > to master. Right now I'm using the standard pingd constraint from > http://www.linux-ha.org/pingd: > > <rsc_location id="ms_drbd0:connected" rsc="ms-drbd0"> > <rule id="ms_drbd0:connected:rule" score="-INFINITY" > boolean_op="or"> > <expression id="ms-drbd0:connected:expr:undefined" > attribute="pingd" operation="not_defined"/> > <expression id="ms-drbd0:connected:expr:zero" > attribute="pingd" operation="lte" value="0"/> > </rule> > > By the way, I can't find any documentation on what that means. Searching > the mailing list for 'pingd lte' returns 9 hits, none of which explain > what that's doing. > > Here's the ha.conf: > > logfacility daemon > keepalive 2 > deadtime 30 > warntime 10 > initdead 90 > udpport 694 > bcast eth0 > bcast eth1 > auto_failback off > node tri2-db1 > node tri2-db2 > respawn root /usr/lib/heartbeat/pingd -m 100 -d 5s > ping_group office_test 10.0.0.20 10.0.0.1 10.0.0.3 > use_logd yes > compression bz2 > compression_threshold 2 > crm yes > > Any advice/suggestions would be most welcome, I've been beating my head > on this wall for a while. > > Thanks! > > -steve > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
