If you are planning to deploy a distributed OceanBase cluster, we recommend that you use identical software and hardware configurations on all servers during deployment. For more information, see Software and hardware requirements.
If you are planning to deploy a standalone OceanBase database, skip this step.
Note
The configuration files mentioned in this topic refer to files that are configured when you use OceanBase Deployer (obd) to deploy OceanBase Database. For more information, see Example configuration files.
View information about the operating system
Red Hat Enterprise Linux Server 7.X
Run the following command:
cat /etc/redhat-release
The result is as follows:
Red Hat Enterprise Linux Server release 7.2 (Maipo)
CentOS 7.X
Run the following command:
cat /etc/redhat-release
The result is as follows:
CentOS Linux release 7.2.1511 (Core)
Anolis OS 8.X
Run the following command:
cat /etc/os-release
The result is as follows:
NAME="Anolis OS"
VERSION="8.2"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.2"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.2"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
Unbutu
Run the following command:
cat /etc/os-release
The result is as follows:
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Debian9
Run the following command:
cat /etc/os-release
The result is as follows:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
View the kernel information
Run the following command:
uname -r
The version of the operating system used by OceanBase Database must be V3.10.0 or later.
View the memory information
Run the following command:
free -g
If the available memory is less than the value of memory_limit in the configuration file, clear the cache or set memory_limit to a value smaller than the available memory.
Run the following command to clear the cache:
sudo sysctl -w vm.drop_caches=3
# or
sudo echo 3 > /proc/sys/vm/drop_caches
View the disk information
Run the following command:
df -h
Make sure that the disks corresponding to the data_dir, redo_dir, and home_path directories in the configuration file are properly mounted. The directories corresponding to data_dir and redo_dir should be empty, and the disk usage for the directory corresponding to data_dir must be below 4%.
View the NIC name
You need to specify the NIC for the devname parameter. Here is a sample configuration file:
# Please set devname as the network adaptor's name whose ip is in the setting of severs.
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname: eth0
Run the following command to view the NIC name:
ifconfig
Notice
To run the ifconfig command, you must install the net-tools dependency first.