gds_install is a script tool used to install GDS in batches, improving GDS deployment efficiency.
gds_install -I /path/to/install_dir -U user -G user_group --pkg /path/to/pkg.tar.gz --host [/path/to/hostfile | ipaddr1,ipaddr2...] [--ping-host [/path/to/hostfile | ipaddr1,ipaddr2...]]
Default value: /opt/${gds_user}/packages/, in which ${gds_user} indicates the operating system user of the GDS service.
Path of the GDS installation package, for example, /path/to/GaussDB-8.1.1-REDHAT-x86_64bit-Gds.tar.gz.
IP addresses of the nodes to be installed. The value can be a file name or a string.
192.168.2.201
The node where the command is executed must be one of the nodes to be deployed. The IP address of the node must be in the list.
Destination IP address for the network ping check on each target node when gds_check is called.
Value: IP address list in the file or string format. Generally, the value is the IP address of a DN, CN, or gateway.
Install GDS on nodes 192.168.1.100 and 192.168.1.101, and specify the installation directory as /opt/gdspackages/install_dir. The GDS user is gds_test:wheel.
gds_install -I /opt/gdspackages/install_dir --host 192.168.1.100,192.168.1.101 -U gds_test -G wheel --pkg /home/gds_test/GaussDB-8.1.1-REDHAT-x86_64bit-Gds.tar.gz