[Pacemaker] want resource A to start successfully (completely) then start B
Aaditya kumar
passion.for.systems at gmail.com
Mon May 31 15:40:19 UTC 2010
Hi all,
AFAIK in resource ordering order(A,B)
start A is invoked before start B.
BUT my situation demands that
NOT ONLY start A is invoked before start B
BUT ALSO start A complete successfully (return rc=0) then and only then lrmd
should invoke start B.
In my logs the resources are started as they should be BUT second resource
dosent WAIT FOR first resource's start operation to return .
I am using mysql on nfs mount .
nfs mount is invoked before mysql BUT mysql dosent wait for nfs mount to
finish and mysql dosent start (rc = 6 , resource not configured, coz the
data dir is nfs mount which
is not mounted yet)
IS THERE A WAY to WAIT for first successful start before starting second
resource ?
May 31 20:31:16 localhost crmd: [14581]: info: te_pseudo_action: Pseudo
action 3 fired and confirmed
May 31 20:31:16 localhost crmd: [14581]: info: te_rsc_command: Initiating
action 9: start failover-ip_start_0 on aadityaxcat2 (local)
May 31 20:31:16 localhost crmd: [14581]: info: do_lrm_rsc_op: Performing
key=9:5:0:800549c5-d049-45bf-9987-68423a7a95c4 op=failover-ip_start_0 )
May 31 20:31:16 localhost lrmd: [14578]: info: rsc:failover-ip:26: start
May 31 20:31:16 localhost crmd: [14581]: info: te_rsc_command: Initiating
action 11: start xcat_ha_start_0 on aadityaxcat2 (local)
May 31 20:31:16 localhost crmd: [14581]: info: do_lrm_rsc_op: Performing
key=11:5:0:800549c5-d049-45bf-9987-68423a7a95c4 op=xcat_ha_start_0 )
May 31 20:31:16 localhost lrmd: [14578]: info: rsc:xcat_ha:27: start
May 31 20:31:16 localhost crmd: [14581]: info: te_rsc_command: Initiating
action 13: start nfs_ha_start_0 on aadityaxcat2 (local)
May 31 20:31:16 localhost crmd: [14581]: info: do_lrm_rsc_op: Performing
key=13:5:0:800549c5-d049-45bf-9987-68423a7a95c4 op=nfs_ha_start_0 )
May 31 20:31:16 localhost lrmd: [14578]: info: rsc:nfs_ha:28: start
May 31 20:31:16 localhost crmd: [14581]: info: te_rsc_command: Initiating
action 17: start mysql_start_0 on aadityaxcat2 (local)
May 31 20:31:16 localhost crmd: [14581]: info: do_lrm_rsc_op: Performing
key=17:5:0:800549c5-d049-45bf-9987-68423a7a95c4 op=mysql_start_0 )
May 31 20:31:16 localhost lrmd: [14578]: info: rsc:mysql:29: start
May 31 20:31:16 localhost crmd: [14581]: info: te_rsc_command: Initiating
action 19: start apache_start_0 on aadityaxcat2 (local)
May 31 20:31:16 localhost mysql[16473]: ERROR: Datadir /mnt/nfs/mysql
doesn't exist
May 31 20:31:16 localhost crmd: [14581]: info: do_lrm_rsc_op: Performing
key=19:5:0:800549c5-d049-45bf-9987-68423a7a95c4 op=apache_start_0 )
May 31 20:31:16 localhost pengine: [15590]: WARN: process_pe_message:
Transition 5: WARNINGs found during PE processing. PEngine Input stored in:
/var/lib/pengine/pe-warn-96712.bz2
May 31 20:31:16 localhost pengine: [15590]: info: process_pe_message:
Configuration WARNINGs found during PE processing. Please run "crm_verify
-L" to identify issues.
May 31 20:31:16 localhost IPaddr[16468]: INFO: Using calculated netmask for
10.0.0.5: 255.0.0.0
May 31 20:31:16 localhost Filesystem[16470]: INFO: Running start for
unicluster:/nfs on /mnt/nfs
May 31 20:31:16 localhost lrmd: [14578]: info: RA output:
(xcat_ha:start:stdout) Xcatd starting ...
May 31 20:31:16 localhost crmd: [14581]: info: process_lrm_event: LRM
operation mysql_start_0 (call=29, rc=6, cib-update=93, confirmed=true) not
configured
May 31 20:31:16 localhost crmd: [14581]: WARN: status_from_rc: Action 17
(mysql_start_0) on aadityaxcat2 failed (target: 0 vs. rc: 6): Error
May 31 20:31:16 localhost IPaddr[16468]: INFO: eval ifconfig eth0:0 10.0.0.5
netmask 255.0.0.0 broadcast 10.255.255.255
May 31 20:31:16 localhost crmd: [14581]: WARN: update_failcount: Updating
failcount for mysql on aadityaxcat2 after failed start: rc=6
(update=value++, time=1275318076)
May 31 20:31:16 localhost crmd: [14581]: info: abort_transition_graph:
match_graph_event:272 - Triggered transition abort (complete=0,
tag=lrm_rsc_op, id=mysql_start_0,
magic=0:6;17:5:0:800549c5-d049-45bf-9987-68423a7a95c4, cib=12.187.43) :
Event failed
May 31 20:31:16 localhost crmd: [14581]: info: update_abort_priority: Abort
priority upgraded from 0 to 1
May 31 20:31:16 localhost crmd: [14581]: info: update_abort_priority: Abort
action done superceeded by restart
May 31 20:31:16 localhost crmd: [14581]: info: match_graph_event: Action
mysql_start_0 (17) confirmed on aadityaxcat2 (rc=4)
May 31 20:31:16 localhost attrd: [14580]: info: find_hash_entry: Creating
hash entry for fail-count-mysql
May 31 20:31:16 localhost attrd: [14580]: info: attrd_local_callback:
Expanded fail-count-mysql=value++ to 1
--
Regards ,
Aaditya.
I want to change the world ,But God won't give me the source code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100531/71f83143/attachment-0002.html>
More information about the Pacemaker
mailing list