Prerequisite
The Docker image of OMS has been saved as oms.tar.gz and stored in the /root/t-oceanbase-antman directory.
Procedure
Log on to a server where OCP is installed as the root user.
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 OMS installation step is Step 9.
Run the following command to start installation:
./install.sh -i 9The following log information indicates that the installation is successful:
run install.sh with DEBUG=FALSE, INSTALL_STEPS= CLEAR_STEPS=9 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 oms and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_oms.log]
Subsequent operations
If OMS is no longer needed, you can uninstall it.
Run the following command to uninstall OMS:
cd /root/t-oceanbase-antman
./install.sh -c 9
The following log information indicates that the uninstallation is successful:
run install.sh with DEBUG=FALSE, INSTALL_STEPS= CLEAR_STEPS=9 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 oms and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_oms.log]