Help Center> Server Migration Service> FAQ> Agent Installation and Startup> How Do I Resolve Error "rsync not installed on the source server" When I Start the Agent Installed on a Linux Source Server?

How Do I Resolve Error "rsync not installed on the source server" When I Start the Agent Installed on a Linux Source Server?

Symptom

When you started the Agent installed on a Linux source server, the "rsync not installed on the source server" message was reported, as shown in Figure 1. You need to install rsync and restart the Agent.

Figure 1 Error message

Possible Causes

Linux migration depends on rsync. If rsync is not installed on the source server, the Agent cannot be started.

Solutions

The operations for different OSs are as follows:

CentOS and Red Hat
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Run the following command to check whether rsync exists in the yum repository:
    yum search rsync
    • If rsync exists, go to step 3.
    • If rsync does not exist and the source server runs CentOS 8, run the following commands to update the yum repository:

      mv /etc/yum.repos.d /etc/yum.repos.d.huawei.bak

      mkdir /etc/yum.repos.d

      vi /etc/yum.repos.d/CentOS-Base.repo (Enter the following information, and save the changes and exit.)
      [BaseOS]
      name=CentOS-$releasever - Base
      baseurl=https://repo.huaweicloud.com/centos-vault/$contentdir/$releasever/BaseOS/$basearch/os/
      gpgcheck=1
      enabled=1
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

      yum clean all

      yum makecache

  3. Run the following command to install rsync:

    yum install rsync

  4. Enter y and press Enter.

  5. Run the following command to display rsync details:

    rsync --version

    If the following information is displayed, rsync has been installed:

  6. Run the following command to start the Agent:

    ./startup.sh

  7. Read the displayed information carefully, enter y, and press Enter.
    Figure 2 Confirmation
  8. Enter the AK and SK of the HUAWEI CLOUD account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.

SUSE
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Run the following command to install rsync:

    zypper install rsync

  3. Enter y and press Enter.

  4. Run the following command to display rsync details:

    rsync --version

    If the following information is displayed, rsync has been installed:

  5. Run the following command to start the Agent:

    ./startup.sh

  6. Read the displayed information carefully, enter y, and press Enter.
    Figure 3 Confirmation
  7. Enter the AK and SK of the HUAWEI CLOUD account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.

Ubuntu
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Run the following command to install rsync:

    apt-get install rsync

  3. Run the following command to display rsync details:

    rsync --version

    If the following information is displayed, rsync has been installed:

  4. Run the following command to start the Agent:

    ./startup.sh

  5. Read the displayed information carefully, enter y, and press Enter.

  6. Enter the AK and SK of the HUAWEI CLOUD account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.