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 OceanBase Database on a single server, you can 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
For example, the following output is returned:
Red Hat Enterprise Linux Server release 7.2 (Maipo)
CentOS 7.X
Run the following command:
cat /etc/redhat-release
For example, the following output is returned:
CentOS Linux release 7.2.1511 (Core)
Anolis OS 8.X
Run the following command:
cat /etc/os-release
For example, the following output is returned:
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
For example, the following output is returned:
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
For example, the following output is returned:
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
OceanBase Database requires that the system kernel be V3.10.0 or later.
View the memory information
Run the following command:
free -g
If the memory space available is less than the value of the memory_limit parameter, clear the cache or change the value of memory_limitto less than the available memory space.
Run the following command to clear the cache:
echo 3 > /proc/sys/vm/drop_caches
View the disk information
Run the following command:
df -h
Check the configuration file to ensure that the corresponding disks are mounted to the data_dir, redo_dir, and home_path directories, that the data_dir and redo_dir directories are empty, and that the usage of the data disk is no more than 4%.
View the NIC name
You need to specify the NIC for the devname parameter. For example:
# 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
Note
To run the ifconfig command, you must install the net-tools dependencies.