79,511
社区成员




OS版本:CentOS Linux 7 (Core)
openGauss版本:openGauss-2.1.0
执行gs_uninstall --delete-data 的时候报错了,重复卸载命令也没有用。看日志提示的内容和回显也差不多,不知道该怎么解决
[omm@opengauss om]$ gs_uninstall --delete-data
Checking uninstallation.
Successfully checked uninstallation.
Stopping the cluster.
Successfully stopped cluster.
Successfully deleted instances.
Uninstalling application.
[GAUSS-51400] : Failed to execute the command: python3 '/opt/huawei/install/om/script/local/Uninstall.py' -R '/opt/huawei/install/app' -U omm -l /var/log/omm/mrf/om/gs_local.log -T. Result:{'opengauss': 'Failure'}.
Error:
[FAILURE] opengauss:
local variable 'crontabFile' referenced before assignment
Deleting monitor.
你这里已经停止集群,删除实例了。若确认需要卸载,找到安装时使用的cluster_config.xml文件(一般在/opt/software/openGauss/目录下),将数据目录、应用程序目录、日志目录、用户等删除。注意,需要用root用户操作。然后清理下 /etc/profile里面的openGauss相关的配置项基本就可以了。
例如:
[root@opengauss om]$ rm -rf /opt/huawei/install/app
[root@opengauss software]# rm -rf /var/log/omm/
[root@opengauss software]# rm -rf /opt/huawei/tmp/
[root@opengauss software]# rm -rf /opt/huawei/install/om
[root@opengauss software]# rm -rf /opt/huawei/corefile/
[root@opengauss software]# rm -rf /opt/huawei/install/data/
[root@opengauss software]# userdel -r omm