Preparing the Software and Hardware Installation Environment
This chapter describes the preparations for the installation.
Software and Hardware Requirements
This section describes hardware and software requirements of openGauss. It is recommended that servers to be deployed on openGauss have the same software and hardware configurations.
Hardware Requirements
Table 1 describes the minimum hardware requirements of openGauss. When planning the hardware configuration of a product, consider the data scale and expected database response speed. Plan hardware as required.
Table 1 Hardware requirements
Software Requirements
Table 2 Software requirements
It is recommended that the number of remaining inodes be greater than 1.5 billion. | |
|
Software Dependency Requirements
Table 3 describes the openGauss software dependency requirements.
You are advised to use the default installation packages of the following dependent software in the listed OS installation CD-ROMs or sources. If the following software does not exist, refer to the recommended versions of the software.
Table 3 Software dependency requirements
Modifying OS Configuration
Disabling the OS Firewall
To ensure that the openGauss can work properly when the firewall is enabled, related services, protocols, IP addresses, and ports need to be added to the firewall whitelist of each host in the openGauss.
Take openEuler OS as an example. Assume that the openGauss information is listed in Table 4.
Table 4 Information of openGauss
Procedure
Currently, EulerOS can be installed only when the firewall is disabled.
Set the value of SELINUX in the /etc/selinux/config file to disabled.
a. Run the vim command to open the config file.vim /etc/selinux/config
b. Change the value of SELINUX to disabled and run the :wq command to save the change and exit.
SELINUX=disabled
Restart the OS.
reboot
Check whether the firewall is disabled.
systemctl status firewalld
If the firewall status is active (running), the firewall is not disabled. Go to 4.
If the firewall status is inactive (dead), you do not need to disable the firewall.
systemctl disable firewalld.service systemctl stop firewalld.service
Repeat steps 1 to 4 on other hosts.
Setting Character Set Parameters
Set the same character set for all database nodes. You can add export LANG=Unicode in the /etc/profile file.
vim /etc/profile
Setting the Time Zone and Time
Set the same time zone for all database nodes by copying the /etc/localtime time zone file to the /usr/share/zoneinfo/ directory.
cp /usr/share/zoneinfo/$Locale/$Time zone /etc/localtime
NOTE:
$Locale/$Time zone indicates the locale and time zone to be set, for example, Asia/Shanghai.
Run the date -s command to set the time of each host to the same time. For example:
date -s "Sat Sep 27 16:00:07 CST 2020"
NOTE:
You can run the date command to query the time zone of the host.
Disabling the Swap Memory
Run the swapoff -a command on each database node to disable the swap memory.
swapoff -a
Setting the NIC MTU
Set the NIC MTU value on each database node to the same value. For X86, the recommended MTU value is 1500. For ARM, the recommended MTU value is 8192.
ifconfig NIC ID mtu Value
Setting Remote Login of User root
During the openGauss installation, the user root is required for remote login. This section describes how to set the user root for remote login.
Modify the PermitRootLogin configuration to enable remote login of user root.
a. Open the sshd_config file.
vim /etc/ssh/sshd_config
b. Modify permissions of user root using either of the following methods:
- Comment out **PermitRootLogin no**. ``` #PermitRootLogin no ``` - Set the value of **PermitRootLogin** to **yes**. ``` PermitRootLogin yes ```
c. Run the :wq command to save the modification and exit.
Modify the Banner configuration to delete the welcome information displayed when you connect to the system. The welcome information affects the return result of remote operations during the installation.
a. Open the sshd_config file.
vim /etc/ssh/sshd_config
b. Comment out the line where Banner is located.
#Banner XXXX
c. Run the :wq command to save the modification and exit.
Run the following command to validate the settings:
service sshd restart
CAUTION:
If Redirecting to /bin/systemctl restart sshd.service is displayed, run the /bin/systemctl restart sshd.service command.Re-log in to the system as user root.
ssh xxx.xxx.xxx.xxx
NOTE:
xxx.xxx.xxx.xxx indicates the IP address of the openGauss installation environment.