onstat -g dri command: Print high-availability data replication information
Use the onstat -g dri command, either alone or with the ckpt or que options, to print information about high-availability data replication statistics on the current server.
Use the onstat -g dri command to print information about HDR server states and HDR-related configuration parameters.
Example output and output description for onstat -g dri
- Type
- Current® type of server: primary, secondary, or standard
- State
- on or off
- Paired server
- Name of the primary or secondary server that this server is paired with
- Last DR CKPT
- Last checkpoint ID and page
- Supports Proxy Writes
- Displays whether the server is configured to allow secondary server updates. Y = supports secondary server updates, N = does not support secondary server updates.
- DRINTERVAL
- The value of the configuration parameter in the onconfig file.
- DRTIMEOUT
- The value of the configuration parameter in the onconfig file.
- DRAUTO
- The value of the configuration parameter in the onconfig file.
- DRLOSTFOUND
- The value of the configuration parameter in the onconfig file.
- DRIDXAUTO
- The value of the configuration parameter in the onconfig file.
- ENCRYPT_HDR
- The value of the configuration parameter in the onconfig file.
- Backlog
- Number of log pages in the HDR data replication buffer that are not yet sent to the HDR secondary server
- Last Send
- The time that the last message was sent to the peer node
- Last Receive
- The time that the last message was received from the peer node
- Last Ping
- The time of the last ping
- Last log page applied(log id,page)
- The log ID and page number of the last applied log
Example output and output description for onstat -g dri ckpt
Use the onstat -g dri ckpt command to print information about nonblocking checkpoints in HDR servers.
- Save State
- B (buffering) when the server is adding logs to the staging area
- Pages Saved
- Displays the number of log pages saved in the staging area that have yet to be applied.
- Save Area
- Displays the location of the staged log files.
- Received log id, page
- Displays the last log ID and page that were received from the primary server.
- Processed log id, page
- Displays the last log ID and page that are queued to the recovery pipeline.
- Saved log id, page
- Displays the last log ID and page that was stored in the staging area (if stage state is either B or D).
- Drain log id, page
- Displays the last log ID and page that were removed from the staging area.
- Pending checkpoints
- Displays the number of checkpoints that are staged but not yet applied.
- Pending ckpt log id, page
- Displays the position of any pending checkpoint records.
Example output and output description for onstat -g dri que
Use the onstat -g dri que command to print information that is related to nearly synchronous HDR replication.
- Pending message to send
- The number of unprocessed data replication buffers queued to the drprsend thread.
- ACK QUEUE
- The log unique value, the page number, and the value 0xfff for the most recently paged log.
- thread
- The pointer to the thread-control block (TCB), the thread id in parentheses, and the log sequence number (LSN) of the commit that was performed by that thread
- Applied QUEUE
- The LSNs of commits that are waiting for acknowledgement of being received on the HDR secondary.