Linux如何完全卸载OceanBase单机版
OceanBase单机版重新部署的时候,遇到提示demo is running,因为之前部署的demo还在运行中,可以直接重启使用,如果想重新部署,需将之前的删除干净。本文将介绍如何删除OceanBase单机版。
1. 查看OB集群信息
[root@tidb01 bin]# obd cluster list +--------------------------------------------------+ | Cluster List | +------+-------------------------+-----------------+ | Name | Configuration Path | Status (Cached) | +------+-------------------------+-----------------+ | demo | /root/.obd/cluster/demo | running | +------+-------------------------+-----------------+ Trace ID: e9170864-07b3-11ef-96b7-005056ac2c50 If you want to view detailed obd logs, please run: obd display-trace e9170864-07b3-11ef-96b7-005056ac2c50
2. 停止demo库
[root@tidb01 bin]# obd cluster stop demo Get local repositories ok Search plugins ok Open ssh connection ok Stop obproxy ok Stop grafana ok Stop prometheus ok Stop obagent ok Stop observer ok Stop obshell ok demo stopped Trace ID: 05efd164-07b4-11ef-9b4c-005056ac2c50 If you want to view detailed obd logs, please run: obd display-trace 05efd164-07b4-11ef-9b4c-005056ac2c50
3. 删除demo
root@tidb01 ~]# obd cluster destroy demo Are you sure to destroy the "demo" cluster ? [y/n]: y Get local repositories ok Open ssh connection ok Check for standby tenant ok Search plugins ok Cluster status check ok obproxy work dir cleaning ok grafana work dir cleaning ok prometheus work dir cleaning ok obagent work dir cleaning ok observer work dir cleaning ok demo destroyed Trace ID: e32311f2-07d4-11ef-aa17-005056ac2c50 If you want to view detailed obd logs, please run: obd display-trace e32311f2-07d4-11ef-aa17-005056ac2c50 [root@tidb01 ~]# obd cluster list +--------------------------------------------------+ | Cluster List | +------+-------------------------+-----------------+ | Name | Configuration Path | Status (Cached) | +------+-------------------------+-----------------+ | demo | /root/.obd/cluster/demo | destroyed | +------+-------------------------+-----------------+ Trace ID: f57b5e86-07d4-11ef-ae84-005056ac2c50 If you want to view detailed obd logs, please run: obd display-trace f57b5e86-07d4-11ef-ae84-005056ac2c50
4. 删除OB部署介质及环境变量
[root@tidb01 oceanbase-all-in-one]# ./bin/uninstall.sh successfully removed, please delete the source env.sh command in ~/.bash_profile [root@tidb01 oceanbase-all-in-one]# vi ~/.bash_profile #删除下面这一行 source /root/.oceanbase-all-in-one/bin/env.sh
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。