Prerequisites
The Docker image of ODC has been saved as odc.tar.gz and stored in the /root/t-oceanbase-``antman directory.
Procedure
Log on to the server where OCP is installed as the
rootuser.Note
During OCP installation, the user and password information is generated locally.
Run the following commands to obtain the script help information:
cd /root/t-oceanbase-antman ./install.sh -h Usage: ./install.sh [OPTIONS] Options: -h, --help Print help and exit -d, --debug Print debug information -V, --version Print version -i, --install-steps string For example 1,3-5,7- -c, --clear-steps string For example 1,3-5,7- -f, --config-file string Read in a config file -l, --load-balance dns | haproxy Steps: 1. ssh authorization 2. install load balancer (default: dns) 3. install ob server 4. init ocp metadb 5. install temp OCP 6. install obproxy 7. install OCP 8. POSTCHECK 9. install OMS (optional) 10. install ODC (optional)Based on the preceding command output, the ODC installation step is Step 10.
Run the following command to start installation:
./install.sh -i 10The following log information indicates that the installation is successful:
run install.sh with DEBUG=FALSE, INSTALL_STEPS= CLEAR_STEPS=10 CONFFILE=/root/t-oceanbase-antman/obcluster.conf [2019-08-16 14:26:03.135619] INFO [start antman API service] LB_MODE=dns [2019-08-16 14:26:03.155233] INFO [clear_step9: uninstalling odc and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_odc.log]
What to do next
If ODC is no longer needed, you can uninstall it.
Run the following command to uninstall ODC:
cd /root/t-oceanbase-antman
./install.sh -c 10
The following log information indicates that the uninstallation is successful:
run install.sh with DEBUG=FALSE, INSTALL_STEPS= CLEAR_STEPS=10 CONFFILE=/root/t-oceanbase-antman/obcluster.conf
[2019-08-16 14:26:03.135619] INFO [start antman API service]
LB_MODE=dns
[2019-08-16 14:26:03.155233] INFO [clear_step9: uninstalling odc and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_odc.log]