openGauss执行gs_uninstall卸载失败,求助

成长的小咘咘 举人 2021-11-24 11:21:01

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.

 

...全文
2270 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
IMcoolgeek 秀才 2021-11-24
  • 打赏
  • 举报
回复

你这里已经停止集群,删除实例了。若确认需要卸载,找到安装时使用的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

pfffffff 2024-06-13
  • 举报
回复
@IMcoolgeek 谢谢你!!!救大命了!!!!!

79,511

社区成员

发帖
与我相关
我的任务
社区描述
汇集数据库的爱好者和关注者,大家共同学习、探索、分享数据库前沿知识和技术,像松鼠一样剥开科学的坚果;交流Gauss及其他数据库的使用心得和经验,互助解决问题,共建数据库技术交流圈。
数据库数据仓库 企业社区 北京·海淀区
社区管理员
  • Gauss松鼠会
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

欢迎大家同时关注Gauss松鼠会专家酷哥。

https://www.zhihu.com/people/ku-ge-78-98

试试用AI创作助手写篇文章吧