Rewrite the scripts with a wrapper that determines where the service group is online and makes the decision to run only if it the service group affected by this script is on the local system.
For example:
Only run script if OracleDG is online on local system. To figure out how to script this look at some code in the existing VCS bin directory, for example, fdsetup has this:
my ($sta) = split('\n', `$HAGRP -value $CFG{RSG} State $fields[5]`);
if (!($sta =~ /ONLINE/)) {
_die("Please run this wizard on the node where $CFG{RSG} is onli
ne", 31, 1018, "$CFG{RSG}");
So in your case, it would if /OFFLINE/ that would cause the script to die, whereas ONLINE would be where you want it to run.
There are some really cooling scripting features in VCS commands, one of my favorites is "wait", from fdsched:
`$HAGRP -wait $fd State ONLINE -sys $attempt{$fd} -time 600`;
In this case we are waiting until the state of service group ($fd) is at a State of ONLINE, with a 600 second timeout.
Sorry this stupid web software converts a left paren into a smiley. It must be a Windows thing that I don't quite comprehend.
Message Edited by Gene Henriksen on 04-19-200708:52 AM
Message Edited by Gene Henriksen on 04-19-200708:53 AM