1、所有节点停止hghac服务,删除原data目录,重新在主节点initdb(原配置的HAC集群文件不变)
[root@db data]# systemctl stop hghac-vip
[root@db data]# initdb -e sm4 -c "echo *******" -D /db/hgdbdata/data
2、启动节点1的HAC服务,此时集群信息显示异常
[root@db data]# /opt/HighGo/tools/hghac/hghactl -c /opt/HighGo/tools/hghac/hghac.yaml list
+ Cluster: ha (7072987311974756506) +-----------+
| Member | Host | Role | State | TL | Lag in MB |
+--------+------+------+-------+----+-----------+
+--------+------+------+-------+----+-----------+
[root@db data]# systemctl status hghac-vip
● hghac-vip.service - hghac
Loaded: loaded (/etc/systemd/system/hghac-vip.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2022-03-18 12:16:07 CST; 3min 7s ago
Process: 44961 ExecStart=/opt/HighGo/tools/hghac/hghac /opt/HighGo/tools/hghac/hghac.yaml (code=exited, status=1/FAILURE)
Main PID: 44961 (code=exited, status=1/FAILURE)
Mar 18 12:16:05 db systemd[1]: Started hghac.
Mar 18 12:16:07 db systemd[1]: hghac-vip.service: main process exited, code=exited, status=1/FAILURE
Mar 18 12:16:07 db systemd[1]: Unit hghac-vip.service entered failed state.
Mar 18 12:16:07 db systemd[1]: hghac-vip.service failed.
[root@db data]# systemctl start hghac-vip
[root@db data]# systemctl status hghac-vip
● hghac-vip.service - hghac
Loaded: loaded (/etc/systemd/system/hghac-vip.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fr