![[Linux]](nglinux.gif)
查看 DR RDQM 状态
您可以查看节点上所有灾难恢复复制数据队列管理器 (DR RDQM) 的状态,或者查看指定 DR RDQM 的详细信息。
关于本任务
您可以使用 rdqmstatus 命令来查看所有 DR RDQM 或各个 RDQM 的状态。
节点的摘要状态还显示有关 RDQM 所依赖的 DRBD 内核模块的信息。 升级 RDQM 时,请务必确保为系统上运行的 RHEL 内核版本安装了正确版本的 DRBD 内核模块。 状态显示操作系统内核的版本,为其构建 DRBD 模块的内核版本, DRBD 版本和 DRBD 内核模块装入状态。
您必须是 mqm 组中的用户才能运行 rdqmstatus 命令。 可以在 DR RDQM 对的任一节点上运行该命令。
过程
示例
Queue manager status: Running
CPU: 0.00
Memory: 123MB
Queue manager file system: 51MB used, 1.0GB allocated [5%]
DR role: Primary
DR status: Normal
DR type: Synchronous
DR port: 3000
DR local IP address: 192.168.20.1
DR remote IP address: 192.168.20.2
DR TLS encryption: Yes辅助节点上的正常状态示例:
Queue manager status: Ended immediately
DR role: Secondary
DR status: Normal
DR port: 3000
DR local IP address: 192.168.20.2
DR remote IP address: 192.168.20.1
DR TLS encryption: Yes正在进行同步时主节点上的状态示例:
Queue manager status: Running
CPU: 0.53
Memory: 124MB
Queue manager file system: 51MB used, 1.0GB allocated [5%]
DR role: Primary
DR status: Synchronization in progress
DR type: Synchronous
DR port: 3000
DR local IP address: 192.168.20.1
DR remote IP address: 192.168.20.2
DR TLS encryption: Yes
DR synchronization progress: 11.0%
DR estimated time to completion: 2017-09-06 14:55:05主节点的示例,显示其已分区:
Queue manager status: Running
CPU: 0.02
Memory: 124MB
Queue manager file system: 51MB used, 1.0GB allocated [5%]
DR role: Primary
DR status: Partitioned
DR type: Synchronous
DR port: 3000
DR local IP address: 192.168.20.1
DR remote IP address: 192.168.20.2
DR TLS encryption: Yes主节点的示例,显示它与辅助节点不同步:
Queue manager status: Running
CPU: 0.00
Memory: 123MB
Queue manager file system: 51MB used, 1.0GB allocated [5%]
DR role: Primary
DR status: Remote unavailable
DR type: Asynchronous
DR port: 3000
DR local IP address: 192.168.20.1
DR remote IP address: 192.168.20.2
DR TLS encryption: Yes
DR out of sync data: 15932KB
DR last in sync: 2020-07-27 16:01:47
显示操作系统内核版本 (RHEL 9.3) 与 DRBD 内核模块 (针对 RHEL 9.2) 不匹配的摘要状态示例。 尽管状态报告已装入 DRBD 内核模块并且期望的队列管理器正在运行,但在此情况下,您应该使用针对正在运行的操作系统内核的版本来更新 DRBD 内核模块。
Node: mqhavm07.exampleco.com
OS kernel version: 5.14.0-362.18.1
DRBD OS kernel version: 5.14.0-284.11.1
DRBD version: 9.2.7+ptf.14
DRBD kernel module status: Loaded
Queue manager name: DRQM8
Queue manager status: Ended immediately
DR role: Secondary
Queue manager name: DRQM7
Queue manager status: Running
DR role: Primary
显示操作系统内核版本 (RHEL 8.10) 与 DRBD 内核模块 (针对 RHEL 8.8) 不匹配的摘要状态示例。 在此示例中,版本不匹配更严重, DRBD 内核模块无法成功装入。 QM3 是 DR 队列管理器,本来应该是主要实例,但由于 DRBD 内核模块未完全装入,因此它报告为次要实例,其 DR 状态为
Unknown。 要解决此故障,必须使用正在运行的操作系统内核的版本目标来更新 DRBD 内核模块。Node: mqhavm57.exampleco.com
OS kernel version: 4.18.0-553
DRBD OS kernel version: 4.18.0-477
DRBD version: 9.2.7+ptf.14
DRBD kernel module status: Partially loaded
Queue manager name: QM3
Queue manager status: Status not available
DR role: Secondary
DR status: Unknown