Gaussdb T的安装部署是非常友好的,卸载也是非常友好的,单机版本使用uninstall.py进行卸载,分布式集群使用gs_uninstall进行卸载。下面演示单机/分布式集群卸载过程。
1.单机卸载
1.1卸载命令
Checking uninstall parameters...
uninstall.py is a utility to uninstall zengine server.
Usage:
python uninstall.py --help
python uninstall.py -U user [-F] [-D DATADIR] [-g withoutroot]
Common options:
-F clean the database storage area
-D location of the database cluster storage area,it will be available after -F
-g run uninstall script without root privilege, but you must have permission of uninstallation folder
-P if sysdba login is disabled by configuration, specify this option the end
--help show this help, then exit
-F:清理数据存储目录
-D 软件安装目录
-g 非root用户卸载
-p 在sysdba会话登陆的情况下使用
1.2 卸载示例
卸载日志
Checking uninstall parameters...
Checking username in parameters...
Getting install path...
Checking uninstall.py position...
Getting user environment variables file path...
Checking whether install path in the user environment variables...
Getting data directory...
Begin check data dir...
Stopping zenith instance...
Successfully Stopped zenith instance.
Cleaning data path...
Cleaning user environment variables...
Cleaning install path...
Zengine was successfully removed from your computer, for more message please see /home/omm/zengineuninstall.log.
[root@alldb bin]#
2.分布式集群卸载
2.1卸载命令
gs_uninstall is a utility to uninstall a cluster.
Usage:
gs_uninstall -? | --help
gs_uninstall -V | --version
gs_uninstall [--delete-data] [-L] [-l LOGFILE] [-X CONFIGFILE]
General options:
--delete-data Clean up instance data files.
-L Only uninstall local nodes.
-l Path of log file.
-?, --help Show help information for this utility, and exit the command line mode.
-V, --version Show version information.
-X Path of the XML configuration file.
[omm@gaussdb1 script]$
参数说明:
–delete-data 清理数据
-L 卸载本地节点
-l 移除日志
-X 集群部署的XML配置文件
2.2卸载示例
gs_uninstall --delete-data -X /opt/software/clusterconfig.xml
卸载日志
[omm@gaussdb1 software]$ gs_uninstall --delete-data -X /opt/software/clusterconfig_1_4.xml
The data will be 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
[omm@gaussdb1 software]$
2.3扩展卸载场景命令
卸载本地节点:
gs_uninstall --delete-data -L -X /opt/software/gaussdb/clusterconfig.xml
示此,Gaussdb T卸载方式演示完毕,祝各位玩的开心。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




