暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

openGauss数据库卸载介绍

MTL-9527 2022-09-19
1762

本期给大家简单介绍一下openGauss数据库的卸载:

⚫执行卸载:openGauss提供了卸载脚本,帮助用户完整的卸载 openGauss。 

⚫ 卸载openGauss的过程包含卸载openGauss和对openGauss服务器 的环境做清理。 

⚫ 操作步骤: 

 步骤1:以操作系统用户omm登录数据库主节点。 

 步骤2:使用gs_uninstall卸载openGauss。 

 gs_uninstall --delete-data      

或者在openGauss中每个节点执行本地卸载。 

gs_uninstall --delete-data -L

⚫ 错误排查 

 如果卸载失败请根据“$GAUSSLOG/om/gs_uninstall-YYYY-MMDD_HHMMSS.log”中的日志信息排查错误。

⚫一键式环境清理:在openGauss卸载完成后,如果不需要在环境上重新部署openGauss,可以运行脚本gs_postuninstall对openGauss服务 器上环境信息做清理。openGauss环境清理是对环境准备脚本gs_preinstall 所做设置的清理。 

⚫ 前提条件: 

 openGauss卸载执行成功。 

 root用户互信可用。 

 只能使用root用户执行gs_postuninstall命令。 

⚫ 操作步骤: 

 步骤1:以root用户登录openGauss服务器。 

 步骤2:查看root用户互信是否建立,如果root用户没有建立互信,需要手工建立root用户互信。查看互信是否建成功,可以互相ssh主机名。输入exit退出。

plat1:~ # ssh plat2 

Last login: Tue Jan 5 10:28:18 2016 from plat1

Huawei's internal systems must only be used for conducting Huawei's business or for purposes authorized by Huawei management.Use is subject to audit at any time by Huawei management. 

plat2:~ # exit 

logout 

Connection to plat2 closed. 

plat1:~ #



「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论