This topic describes how to standardize a host by using OceanBase Admin Toolkit (OAT).
Procedure
Run the following command to install the latest oat-cli.
rpm -ivh t-oceanbase-antman-<version>.alios7.x86_64.rpmRun the
clone.shscript in antman to install dependencies.cd /root/t-oceanbase-antman/clonescripts #./clone.sh -h Usage: ./clone.sh [OPTIONS] Options: -h, --help Print help and exit -a, --auto-config Automatically generate clone config, use -d | --dry-run to get the auto config result -r, --role Set machine role, by default is ocp, could be set as ob or obbackup -d, --dry-run Print dry run information -V, --version Print version -p, --disk-part Only part disk -u, --add-user Only add user -c, --run-config Only run OS parameters config -i, --install-docker Only install docker -m, --install-rpms Only install dependent rpms -t, --pre-check Pre-check after clone
Note
- We recommend that you use the
-aoption to perform all operations, including disk partitioning. -mand-iare used to install the required RPM packages and Docker containers.-tis used to check the disk partitions, partition sizes, operating system, and software packages.-pis used to create disk partitions. This option will format the disk. Proceed with caution.