Anyone knows what do these mean?
See other posts.
Is HADR state real peer when the HADR state is peer but the above
primary/standby log position are not the same? May I takeover the HADR
at that time, or shall wait the primary/standby log position are the
same?
The difference in log position (LSN) and apparent log gap do not affect
the HADR state nor the HADR takeover semantics. If you are running in
SYNC or NEARSYNC mode, then the standby should be able to fail over
with no transaction loss assuming the usual fine print (e.g., in
NEARSYNC, the standby didn't also fail). If you are running in ASYNC
mode, it is possible that there is some real lag between the primary
and standby in addition to the artificial lag described in my other
post. More often someone performed an online backup while things were
otherwise idle on the primary, resulting in the primary log position
being the LSN of the start of log file N+1 while the standby log
position is the LSN of the end of log file N, in which case all log
records of file N already made it to the standby.
Regards,
- Steve P.
--
Steve Pearson, IBM DB2 for Linux, UNIX, and Windows, IBM Software Group
DB2 "Portland" Development Team, IBM Beaverton Lab, Beaverton, OR, USA