可以使用 onstat -g cluster 命令显示有关在高可用集群环境下的服务器的信息。
onstat -g cluster 命令合并了 onstat -g dri 、onstat -g sds 和 onstat -g rss 的功能。 onstat -g cluster 命令的输出根据该命令是在主服务器或在其它任一辅助服务器上运行而稍有不同。
以下 onstat -g cluster 命令的示例输出。该示例显示了命令运行在主服务器上的输出。
图: onstat -g cluster 命令输出(自主服务器上运行)
Primary Server:serv1 Current Log Page:16,476 Index page logging status: Enabled Index page logging was enabled at: 2013/12/11 14:05:17 Server ACKed Log Applied Log Supports Status (log, page) (log, page) Updates serv2 16,476 16,476 Yes SYNC(SDS),Connected,Active serv3 16,476 16,476 Yes ASYNC(HDR),Connected,On serv4 16,476 16,476 Yes ASYNC(RSS),Connected,Active
图: onstat -g cluster verbose 命令输出(自主服务器上运行)
以下是 onstat -g cluster verbose 命令的示例输出。该输出显示此命令在主服务器上运行,并带有详细的选项。
Primary Server:serv1 Current Log Page:16,479 Index page logging status: Enabled Index page logging was enabled at: 2013/12/11 14:05:17 ----------------------------------------------------------- server name: serv3 type: ASYNC (HDR) control block: 0x4b673018 server status: On connection status: Connected Last log page sent (log id, page): 16,479 Last log page acked (log id, page); 16,479 Last log page applied (log id, page); 16,479 Approximate log page backlog: 0 SDS cycle not used Delayed Apply Not Used Stop Apply Not Used Time of last ack: 2013/12/11 14:09:12 Supports Updates: Yes ----------------------------------------------------------- server name: serv2 type: SYNC (SDS) control block: 0x4c2de0b8 server status: Active connection status: Connected Last log page sent (log id, page): 16,479 Last log page acked (log id, page); 16,479 Last log page applied (log id, page); 16,479 Approximate log page backlog: 0 SDS cycle current: 20 ACKed: 20 Delayed Apply Not Used Stop Apply Not Used Time of last ack: 2013/12/11 14:09:13 Supports Updates: Yes
以下是 onstat -g cluster 命令的输出示例。该示例显示命令在辅助服务器上运行的输出。
图: onstat -g cluster 命令输出(自辅助服务器上运行)
Primary Server:serv1 Index page logging status: Enabled Index page logging was enabled at: 2010/01/11 14:05:17 Server ACKed Log Applied Log Supports Status (log, page) (log, page) Updates serv2 16,479 16,479 Yes SYNC(SDS),Connected,Active