GaussDB 100提供了卸载脚本帮助用户完整地卸载整个集群。
gs_uninstall --delete-data或者在集群中每个节点执行本地卸载。
gs_uninstall --delete-data -L当集群状态不正常,获取不到集群信息时执行如下命令卸载集群:
gs_uninstall --delete-data -X /opt/software/gaussdb/clusterconfig.xml或者在集群中每个节点执行本地卸载。
gs_uninstall --delete-data -L -X /opt/software/gaussdb/clusterconfig.xml示例
使用gs_uninstall脚本进行卸载集群。
[omm@plat1 script]$ gs_uninstall --delete-data -X /opt/software/gaussdb/clusterconfig.xml
The data will deleted and cannot be recovered.Are you sure you want to uninstall the cluster (yes/no)?yes
Check preinstall on every node.
Successfully checked preinstall on every node.
Stop cluster.
Check logfile path.
Clean crontab.
Clean crontab successfully.
Kill process for components.
Kill process for components successfully.
Uninstall components
Uninstall components successfully.
Modifying user's environmental variable.
Successfully modified user's environmental variable.
Clean tmp files and logs.
Successfully clean cluster's tmp and logs.
Successful uninstallation
如果卸载失败请根据“$GAUSSLOG/om/gs_uninstall.log”中的日志信息排查错误。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3137653/ ,如需转载,请注明出处,否则将追究法律责任。