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
#EN-US_TOPIC_0249784577/table11459151513383 lists the software dependency requirements for the openGauss.
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.
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 1.
Table 1 Information of openGauss
Procedure
Currently, EulerOS can be installed only when the firewall is disabled.
Check whether the firewall is disabled.
systemctl status firewalld
If the firewall is not disabled, go to 2.
If the firewall is disabled, skip 2.
systemctl disable firewalld.service systemctl stop firewalld.service
Set the value of SELINUX in the /etc/selinux/config file to disabled.
Run the vim command to open the config file.
vim /etc/selinux/config
Set the value of SELINUX to disabled.
SELINUX=disabled
Restart the OS.
reboot
Repeat steps 1 to 3 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 Mon May 11 16:42:11 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.
Open the sshd_config file.
vim /etc/ssh/sshd_config
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
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.
Open the sshd_config file.
vim /etc/ssh/sshd_config
Comment out the line where Banner is located.
#Banner XXXX
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.