[Linux-HA] How to stop monitoring operations on specific hosts
Alexander Strachan
astrachan at inter-systems.com.au
Fri Dec 8 20:36:44 MST 2006
Quoting Andrew Beekhof <beekhof at gmail.com>:
> anything with monitor_0 is us checking the resource is active on a
> newly started node.
> this is not optional.
Hopefully I can pass a parameter to the monitor operation to help distinguish
which monitor is being run; either
op id="drbddisk_itsapaims1_drbd_mon"
or
op id="drbddisk_itsapaims2_drbd_mon"
Will monitor_0 honour any parameters that are configured ?
Is there an environment variable which exists when a monitor script is called
which can be related back to the 'op id' ?
Currently when drbddisk monitor is being called, it doesn't know if it is from
drbddisk_itsapaims1_drbd_mon or drbddisk_itsapaims2_drbd_mon
The location rules defined should mean that the resource cannot run on some
nodes so why monitor ?
e.g. we have ORacle running on two of the nodes (4 node cluster), they have
identical SID's so the monitor for either resource will return true. Hmmmm
>
> for any recurring monitors, you can cancel them by removing them or
> setting disabled="true" for the operation.
>
> On 12/8/06, Alex Strachan <astrachan at inter-systems.com.au> wrote:
> > I have the following
> >
> >
> >
> > drbd on epsilona1, epsilona2; runs as part of group group_itsapaims2
> >
> >
> >
> > drbd on canopus, deneb; runs as part of group group_itsapaims1
> >
> >
> >
> > are identical setups. All four hosts are in 1 cluster. On startup and
> > continuing on I see that monitor operations for both resources are being
> > done on all hosts.
> >
> >
> >
> > How do I stop monitoring of operation
> >
> > op id="drbddisk_itsapaims1_drbd_mon"
> >
> > on hosts epsilona1, epsilona2?
> >
> >
> >
> > Location rules are being used to restrict where the resource can run but
> how
> > can this be applied to operations ?
> >
> >
> >
> > Heartbeat version 2.0.7 CRM-Stable-4a0d4e40eeb0 is being used.
> >
> >
> >
> >
> >
> > Dec 8 14:08:07 epsilona1 crmd: [4749]: info: process_lrm_event: LRM
> > operation (2) monitor_0 on resource_itsapaims1_drbd complete
> >
> > Dec 8 14:08:07 epsilona1 crmd: [4749]: info: process_lrm_event: LRM
> > operation (4) monitor_0 on resource_itsapaims1_vip complete
> >
> > Dec 8 14:08:08 epsilona1 crmd: [4749]: info: process_lrm_event: LRM
> > operation (3) monitor_0 on resource_itsapaims1_fs complete
> >
> >
> >
> >
> >
> > ============
> >
> > Last updated: Fri Dec 8 15:16:01 2006
> >
> > Current DC: epsilona2 (ec74bd17-2016-4d32-a694-0f6983121cd9)
> >
> > 4 Nodes configured.
> >
> > 2 Resources configured.
> >
> > ============
> >
> >
> >
> > Node: epsilona2 (ec74bd17-2016-4d32-a694-0f6983121cd9): online
> >
> > Node: epsilona1 (b757aece-0e47-41e5-92b7-6a80b4f3eea7): online
> >
> > Node: deneb (86898087-484c-40b8-8e6b-5d3558abb86a): online
> >
> > Node: canopus (08607c1c-1e36-435a-88bb-f43ae832f017): online
> >
> >
> >
> > Full list of resources:
> >
> >
> >
> > Resource Group: group_itsapaims1
> >
> > resource_itsapaims1_drbd (heartbeat:drbddisk): Started deneb
> >
> > resource_itsapaims1_fs (heartbeat::ocf:Filesystem): Started
> > deneb
> >
> > resource_itsapaims1_vip (heartbeat::ocf:IPaddr): Started
> > deneb
> >
> > Resource Group: group_itsapaims2
> >
> > resource_itsapaims2_drbd (heartbeat:drbddisk): Started epsilona1
> >
> > resource_itsapaims2_fs (heartbeat::ocf:Filesystem): Started
> > epsilona1
> >
> > resource_itsapaims2_vip (heartbeat::ocf:IPaddr): Started
> > epsilona1
> >
> > Inactive resources:
> >
> >
> >
> >
> >
> >
> >
> > Cib.xml section for drbd primitive
> >
> >
> >
> > <group ordered="true" collocated="true" id="group_itsapaims1">
> >
> > <primitive id="resource_itsapaims1_drbd" class="heartbeat"
> > type="drbddisk" provider="heartbeat" restart_type="ignore" node="deneb">
> >
> > <instance_attributes
> > id="resource_itsapaims1_drbd_instance_attrs">
> >
> > <attributes>
> >
> > <nvpair name="1" value="r0"
> > id="707ee03d-4c90-464d-9a5b-982353ee80e0"/>
> >
> > </attributes>
> >
> > </instance_attributes>
> >
> > <operations>
> >
> > <op id="drbddisk_itsapaims1_drbd_mon" name="monitor"
> > interval="60s" timeout="60s" on_fail="fence"/>
> >
> > </operations>
> >
> > <instance_attributes id="resource_itsapaims1_drbd">
> >
> > <attributes>
> >
> > <nvpair id="resource_itsapaims1_drbd-target_role"
> > name="target_role" value="started"/>
> >
> > </attributes>
> >
> > </instance_attributes>
> >
> > </primitive>
> >
> > <snip>
> >
> > <group ordered="true" collocated="true" id="group_itsapaims2">
> >
> > <primitive id="resource_itsapaims2_drbd" class="heartbeat"
> > type="drbddisk" provider="heartbeat" restart_type="ignore">
> >
> > <instance_attributes
> > id="resource_itsapaims2_drbd_instance_attrs">
> >
> > <attributes>
> >
> > <nvpair name="1" value="r0"
> > id="5bfa7ae6-7967-4c75-ab39-f94ffc638b96"/>
> >
> > </attributes>
> >
> > </instance_attributes>
> >
> > <operations>
> >
> > <op id="drbddisk_itsapaims2_drbd_mon" name="monitor"
> > interval="60s" timeout="60s" on_fail="fence"/>
> >
> > </operations>
> >
> > <instance_attributes id="resource_itsapaims2_drbd">
> >
> > <attributes>
> >
> > <nvpair id="resource_itsapaims2_drbd-target_role"
> > name="target_role" value="started"/>
> >
> > </attributes>
> >
> > </instance_attributes>
> >
> > </primitive>
> >
> > <snip>
> >
> > <constraints>
> >
> > <rsc_location id="run_itsapaims1_drbd_canopus"
> > rsc="resource_itsapaims1_drbd">
> >
> > <rule id="prefered_run_itsapaims1_drbd_canopus" score="100"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="canopus"
> > id="40de9af8-48d6-4a42-9710-1bfbde8d3ad4"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims1_drbd_deneb"
> > rsc="resource_itsapaims1_drbd">
> >
> > <rule id="prefered_run_itsapaims1_drbd_deneb" score="100"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="deneb"
> > id="868d9946-76a7-4638-b489-707a4e94a225"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims1_drbd_epsilona1"
> > rsc="resource_itsapaims1_drbd">
> >
> > <rule id="prefered_run_itsapaims1_drbd_epsilona1"
> score="-INFINITY"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="epsilona1"
> > id="b2892fef-8130-45b3-a310-b9efc9668b95"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims1_drbd_epsilona2"
> > rsc="resource_itsapaims1_drbd">
> >
> > <rule id="prefered_run_itsapaims1_drbd_epsilona2"
> score="-INFINITY"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="epsilona2"
> > id="8b7357dc-5f6b-4c34-992f-ad084b29676a"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> >
> >
> > <rsc_location id="run_itsapaims2_drbd_canopus"
> > rsc="resource_itsapaims2_drbd">
> >
> > <rule id="prefered_run_itsapaims2_drbd_canopus" score="-INFINITY"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="canopus"
> > id="51eb3f22-4c95-4075-875b-41d23d42df79"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims2_drbd_deneb"
> > rsc="resource_itsapaims2_drbd">
> >
> > <rule id="prefered_run_itsapaims2_drbd_deneb" score="-INFINITY"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="deneb"
> > id="972509f1-139a-431c-bdd6-82791a2f9969"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims2_drbd_epsilona1"
> > rsc="resource_itsapaims2_drbd">
> >
> > <rule id="prefered_run_itsapaims2_drbd_epsilona1" score="100"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="epsilona1"
> > id="19a74fae-1950-4d3b-a20c-51a175fe8dcb"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> > <rsc_location id="run_itsapaims2_drbd_epsilona2"
> > rsc="resource_itsapaims2_drbd">
> >
> > <rule id="prefered_run_itsapaims2_drbd_epsilona2" score="100"
> > boolean_op="or">
> >
> > <expression attribute="#uname" operation="eq" value="epsilona2"
> > id="6258fd99-470b-4d6d-9482-dd824a99e4d0"/>
> >
> > </rule>
> >
> > </rsc_location>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> >
> >
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list