Service group dependency
I have a 3 node cluster with VCS 6.0.1 and RHEL6
On the first two nodes by default different production applications are active and on the third node the acceptance applications are active.
The acceptance applications should be brought Offline, prior to the fail-over of the production applications to the tird node.
The acceptance applications should never fail-over.
I've solved this with a preonline trigger script, but I wonder if there is not another, easier, way of doing this making it less script depend.
Karel
You need an offline local dependency so make Both production service group parent of child acceptance service group so you have:
prod1_grp depends on accept_grp offline local
prod2_grp depends on accept_grp offline local
This means accept_grp must be offline on node 3 to be able to online or switch prod1_grp or prod2_grp to node3, so you will get a 'group dependency violation error' if you try to do this as the expectation is that if you manually switch or online prod1_grp or prod2_grp on node3, that you manually offline accept_grp first, BUT, if prod1_grp or prod2_grp fault and tries to switch to node3, then the service group dependency means VCS will automatically offlines accept_grp so that prod grp can online on node3 and in this instance if accept_grp can only run on node3, it will stay down.
Mike