Problem
VCS agent for Hitachi TrueCopy (HTC) is not working properly.
Error Message
We cannot tell if the agent mistakenly interpreted the status as not being in the PSUEstate.
Cause
Defect, we cannot tell if we mistakenly interpreted the status as not being in PSUE.
Solution
The HTC online script discovers current state ( get_state() ), gets the pair state and finally calls failover_required functions.
The get state routine in turn runs: $self->pair_state();
Looking at pair_state routine:
We use the command: pairdisplay -l -fc -CLI -g ... to get the state value.
The return values we return from failover_required are:
10, 2, 3, 4, 5, 1 an 0
These are the failover_required exitcodes:
10 - unknown (unrecognized) local state
2 - mix of P-VOL and S-VOL in a single group
3 - S-VOL/SSUS
4 - S-VOL/PAIR & remote P-VOL in PSUE
5 - SVOL/PAIR and remote P-VOL in any other state (?)
1 - S-VOL & anything else than SSWS
0 - otherwise, meaning - hopefully - we're already primary (or S-VOL/SSWS, I believe), anyway - no need to do anything
Without the HTC logs, we cannot tell if the agent mistakenly interpreted the status as not being in the PSUE state, we are also not sure if the failover_required exited with exitcode 1, instead of 4.
Engineering will be making a fix for the issue as a part of the Q4 agent pack 09 i.e. released in Jan 2010.
Applies To
VCS 5.0 MP3 Linux RHEL 5 U3