Updated on 2024-12-19 GMT+08:00

Batch Upgrading Proxy Clients

Prerequisites

  • The disaster recovery gateway has been installed. For Linux clients, the gateway version must be 24.6.0 or later. For Windows clients, the gateway version must be 24.9.0 or later.
  • Proxy clients have been installed on target production site servers. For Linux clients, the client version must be 24.6.0 or later. For Windows clients, the client version must be 24.9.0 or later.
  • Before upgrading the proxy client on a Linux server, run getenforce to check the SELinux mode. If the mode is Enforcing, change it to Disabled or Permissive. After the upgrade is complete, restore the SELinux setting.

Notes and constraints

Batch upgrading proxy clients on both Windows and Linux servers using one command is currently not supported.

Procedure

In the following example, sdrs_xxxx_24.9.0.xxxx.tar.gz is the proxy client package (24.9.0) used for illustration.

  1. Obtain the proxy client package sdrs_xxxx_24.9.0.xxxx.tar.gz from the gateway server.
  2. Run the following command as user root to upgrade proxy clients in batches:

    /opt/cloud/sdrs/sidecar/script/cmd_tools.sh upgrade --ip=ip_list --package=package_path --timeout=cmd_timeout_in_s

    Parameter description:

    --ip: The private IP addresses of the production site servers you want to upgrade proxy clients. Separate multiple IP addresses with commas (,).

    --package: The path of the Linux installation package sdrs_xxxx_24.9.0.xxxx.tar.gz.

    --timeout: The command timeout interval, in seconds. The default value is 300. You are advised to set the timeout interval based on the number of production site servers. The formula is as follows: Number of production site servers x 200 (The time required for upgrading a proxy client. Use 300 for the client on a Windows server.)

    A complete example command is as follows:

    /opt/cloud/sdrs/sidecar/script/cmd_tools.sh upgrade --ip=192.168.0.6,192.168.0.188,192.168.0.204 --package=sdrs_xxxx_24.9.0.xxxx.tar.gz --timeout=600

  3. Enter y to continue the upgrade if the confirmation information is displayed.
  4. Check the command output. If "upgrade SDRS successfully" is returned, the proxy client is successfully upgraded on all production site servers.