操作系统:龙蜥8.9
GreatSQL:8.0.32-26
GreatSQL Shell:8.0.32-25
错误日志输出:无
具体操作如下:
- MySQL 192.168.116.41:3306 ssl JS > c.status();
- {
- "clusterName": "MGR1",
- "defaultReplicaSet": {
- "name": "default",
- "primary": "192.168.116.41:3306",
- "ssl": "REQUIRED",
- "status": "OK",
- "statusText": "Cluster is ONLINE and can tolerate up to ONE failure.",
- "topology": {
- "192.168.116.41:3306": {
- "address": "192.168.116.41:3306",
- "memberRole": "PRIMARY",
- "mode": "R/W",
- "readReplicas": {},
- "replicationLag": "applier_queue_applied",
- "role": "HA",
- "status": "ONLINE",
- "version": "8.0.32"
- },
- "192.168.116.42:3306": {
- "address": "192.168.116.42:3306",
- "memberRole": "SECONDARY",
- "mode": "R/O",
- "readReplicas": {},
- "replicationLag": "applier_queue_applied",
- "role": "HA",
- "status": "ONLINE",
- "version": "8.0.32"
- },
- "192.168.116.43:3306": {
- "address": "192.168.116.43:3306",
- "memberRole": "SECONDARY",
- "mode": "R/O",
- "readReplicas": {},
- "replicationLag": "applier_queue_applied",
- "role": "HA",
- "status": "ONLINE",
- "version": "8.0.32"
- }
- },
- "topologyMode": "Single-Primary"
- },
- "groupInformationSourceMember": "192.168.116.41:3306"
- }
- MySQL 192.168.116.41:3306 ssl JS > c.switchToMultiPrimaryMode()
- Switching cluster 'MGR1' to Multi-Primary mode...
- Instance '192.168.116.41:3306' remains PRIMARY.
- Instance '192.168.116.42:3306' remains SECONDARY.
- Instance '192.168.116.43:3306' remains SECONDARY.
- The cluster successfully switched to Multi-Primary mode.
- MySQL 192.168.116.41:3306 ssl JS > c.status();
- Cluster.status: The InnoDB Cluster topology type (Multi-Primary) does not match the current Group Replication configuration (Single-Primary). Please use <cluster>.rescan() or change the Group Replication configuration accordingly. (RuntimeError)
- MySQL 192.168.116.41:3306 ssl JS >
复制代码
|