Viewing the status of Native HA queue managers
For custom-built containers, you can view the status of the Native HA instances by using the dspmq command.
About this task
You can use the dspmq command in one of the running Pods to view the operational status of a queue manager instance. The information returned depends on whether the instance is active or a replica. The information supplied by the active instance is definitive, information from replica instances might be out of date.
For a Native HA Cross-Region Replication (CRR) configuration, the information
supplied also depends on whether the instance is part of a Live or a Recovery group. The
information from the Live group is more definitive, but can still be out of date as the Recovery
group sends back only periodic information.
- View whether the queue manager instance on the current node is active or a replica.
- View the Native HA operational status of the instance on the current node.
- View the operational status of all three instances in a Native HA configuration.
View the status of the groups that the instance belongs to or is connected
to.
- ROLE
- Specifies the current role of the instance. Is one of
Active,Replica,Unknown, (for a recovery group)Leader, orNot Configured. - INSTANCE
- The name provided for this instance of the queue manager when it was created using the -lr option of the crtmqm command.
- INSYNC
- Indicates whether the instance is able to take over as the active instance if required.
- QUORUM
- Reports the quorum status in the form number_of_instances_in-sync/number_of_instances_configured.
GRPLSN- Specifies the log sequence number (LSN) that has been replicated between a quorum of instances
in the HA group, in
nnnnn:nnnnn:nnnnn:nnnnnformat. Blank if the LSN is not known.
GRPNAME- Specifies the name of the HA group. Blank if a name has not been configured.
GRPROLE- Specifies the current role of the HA group and is one of:
Live- A live groupRecovery- A recovery groupPending live- A group waiting to becomeLivePending recovery- A group waiting to becomeRecoveryNot configured- Native HA has not been configuredUnknown- The current role cannot be determined
-x parameter:- REPLADDR
- The replication address of the queue manager instance.
- CONNACTV
- Indicates whether the instance is connected to the active instance.
- BACKLOG
- Indicates the number of KB that the instance is behind the active instance.
- CONNINST
- Indicates whether the named instance is connected to this instance.
- ALTDATE
- Indicates the date when this information was last updated. Blank if it has never been updated.
- ALTTIME
- Indicates the time when this information was last updated. Blank if it has never been updated.
ACKLSN- Indicates the LSN that the instance has acknowledged as having been written to the recovery log,
in
nnnnn:nnnnn:nnnnn:nnnnnformat. Blank if the LSN value is not known.
HASTATUS-
Indicates the operational status of this instance and is one of the following values:
Normal- the instance is operating normally.Checking- the instance is being checked to ensure the consistency of the recovery log.Synchronizing- the instance is being sent data to bring it in-sync.Rebasing- a new recovery log is being sent to the instance.Disk full- the instance has a full disk.Disconnected- cannot communicate with the instance.Unknown- the instance status is unknown.
SYNCTIME- Indicates the time when this instance was last in-sync with the active queue manager, in ISO 8601 format. Blank if the time is not known.
These fields appear when group information is requested by using the
-g parameter. These fields are useful to view the status when the group is part of
a Native HA CRR configuration:
GRPNAME- Specifies the name of the HA group. Blank if a name has not been configured.
GRPROLE- Specifies the current role of the HA group and is one of:
Live- A live groupRecovery- A recovery groupPending live- A group waiting to becomeLivePending recovery- A group waiting to becomeRecoveryUnknown- The current role cannot be determinedNot configured- Native HA has not been configured
GRPADDR- The IP address that is used to connect to the group. This is set to
Unknownif the address is not known because a connection to the group has not occurred.
GRPVER- Indicates the version of the current group leader in
V.R.M.Fformat, whereV.R.M.Fis the Version, Release, Modification, and Fix Pack number. If the value is not known, this is set to?.?.?.?
CONNGRP- Indicates whether the group is connected to the local group and is one of:
yes- the group is connected.no- the group is disconnected.unknown- the connection status is unknown.suspended- the group is connected, but the group cannot replicate data until a configuration incompatibility between the groups is resolved.
This field is displayed only for groups other than the local group.
INSYNC- This is only displayed for a group with role
RecoveryorPending live. It indicates whether the group could becomeLivewith no loss of data if a failover occurred. (Note that aRecoverygroup might not be in-sync with theLivegroup very often because the log is replicated asynchronously. Use the RCOVLSN and RCOVTIME values to indicate if data loss might occur in an unplanned failover).
SYNCTIME- This is only displayed for a group with role
RecoveryorPending live. It indicates the time when this group was last in-sync with theLivegroup, in ISO 8601 format (blank if it is not known). (Note that aRecoverygroup might not be in-sync with theLivegroup very often because the log is replicated asynchronously. Use the RCOVLSN and RCOVTIME values to indicate if data loss might occur in an unplanned failover).
BACKLOG- This is only displayed for a group with role
RecoveryorPending live. It indicates the number of KB that the group is behind the live group.
GRSTATUS- Indicates the operational status of this group and is one of the following values:
Normal- the group is operating normally.Checking- the group is being checked to ensure the consistency of the recovery log.Synchronizing- the group is being sent data to bring it in-sync.Rebasing- a new recovery log is being sent to the instance.Waiting for connection- the group is waiting for a connection from a group with the roleLiveorPending Recovery.Partitioned- two groups believe they are the Live group (that is, a 'split brain' status).Unknown- the group status is unknown.
RCOVLSN- A log sequence number (LSN) that the group could recover to, in
nnnnn:nnnnn:nnnnn:nnnnnformat. Any data written to the recovery log after this point might be lost if an unplanned failover occurs. This value can be passed into the -s option of the dmpmqlog command.
RCOVTIME- A time that the group could recover to, in ISO 8601 format. Any data written to the recovery log after this time might be lost if an unplanned failover occurs. This value can be passed into the -t or -u options of the dmpmqlog command.
INITLSN- This is only displayed for a group with role
LiveorPending recovery. It indicates the log sequence number (LSN) of the last log record recovered when the Native HA group initially became live, in the formatnnnnn:nnnnn:nnnnn:nnnnn, or blank if the group is not live.
INITTIME- This is only displayed for a group with role
LiveorPending recovery. It indicates the time of the last log record recovered when the Native HA group initially became live, in ISO 8601 format. Blank, if the group is not live.
LIVETIME- This is only displayed for a group with role
LiveorPending recovery. It indicates the time the group first became the live group, in ISO 8601 format. Blank, if the group is not live.
ALTDATE- Indicates the date when this information was last updated.
ALTTIME- Indicates the time when this information was last updated.