Video Screencast Help

VCS preonline trigger and inability to -checkpartial when switching service group

Created: 19 Jul 2011 • Updated: 25 Jul 2011 | 1 comment
PauliusBulotas's picture
1 Agree
0 Disagree
+1 1 Vote
Login to vote
Status: In Review


it seems, that there is a lacking feature from VCS preonline trigger implementation (using VCS 5.1SP1 on RHEL Linux x86_64).

How preonline trigger works in few lines:
Currently there are two possible parameter values FAULT and MANUAL.
If FAULT, then to get back control to VCS I must run:
hagrp -online -nopre $ARGV[1] -sys $ARGV[0] -checkpartial $ARGV[3]
If MANUAL, then to get back control to VCS I must run (no 4th parameter in this case):
hagrp -online -nopre $ARGV[1] -sys $ARGV[0]

Suppose, that I have PARTIAL service group, I have preonline trigger and I want to switch it manually to another node.
hagrp -switch $SG -sys $SYS , trigger is invoked with parameter MANUAL, and suddenly PARTIAL service group tries to go ONLINE on $SYS instead of switching in PARTIAL state.

This situation doesn't occur if no preonline trigger is configured.

The fix would be to include system (as a forth parameter) where $SG is not OFFLINE currently when manually switching, so person writing preonline trigger could use hagrp -online -nopre -checkpartial $SYS_FROM_WHERE_WE_ARE_SWITCHING.

Maybe there is some way to get previous state and location in preonline script about which I don't know?


Comments 1 CommentJump to latest comment

arangari's picture

let me go back to labs and confirm possible solutions.

Thanks and Warm Regards,

Amit Rangari

If this post helped you resolving the issue, please mark it as solution. _____________________________________________________________________________

Login to vote