重置NOODB域状态

The NuoDB domain state keeps track of the current state of NuoDB Admin servers and databases under the management of NuoDB Admin (nuoadmin). 可能有时需要重置域状态。 To fully reset the domain state, delete the raftlog file on all hosts in the domain as follows:

1.在每个主机上停止Nuodb管理流程(AP)。

The NuoDB Admin Process must be stopped before deleting the raflog; otherwise it will be recreated.

要在安装NOODB DEB或RPM包的主机上停止Nuodb管理员,请使用:

$ sudo systemctl nuoadmin stop

If you prefer to use SysV init commands you can run sudo service stop nuoadmin instead.

要在安装Nuodb Tar包的主机上停止Nuodb管理员,请使用:

$ $NUODB_HOME/etc/nuoadmin stop

2. Delete the NuoDB Admin raftlog file from each host that was running an AP.

$ sudo rm -f $NUODB_CFGDIR/raftlog

It is not necessary to use sudo if you have permissions (e.g., when using a NuoDB TAR package).