Help Center> Server Migration Service> FAQs> Migration Network> How Do I Configure Automatic Recovery?
Updated on 2024-04-24 GMT+08:00

How Do I Configure Automatic Recovery?

Background

Before, if the network between the source and target servers was disconnected, the migration task would fail, and you would have to manually restart it. Now, you can use the automatic recovery feature of SMS-Agent to restart the migration task automatically once network connectivity is restored.

Precautions

  • The automatic recovery feature can be triggered by errors SMS.0807, SMS.1807, SMS.2802, SMS.3802, SMS.2805, and SMS.2806.
  • You can control the maximum number of attempts to restart a failed migration task. After that, the automatic recovery program automatically exits, and you need to manually restart the migration task on the SMS console after the network is restored.

Configuration Parameters

To use automatic recovery, you need to configure the following parameters:

  • auto_start_interval_seconds: The interval for executing the automatic recovery program, in seconds. For example, if you want to let this feature try to restart a failed migration task every half an hour, set this parameter to 1800 (the number of seconds in half an hour).
  • auto_start_max_retry_times: The maximum number of times that the automatic recovery program can be executed before exiting.
  • auto_start_each_addition_seconds: The increment of the interval after each execution of the automatic recovery task program, in seconds. For example, if auto_start_each_addition_seconds is set to 10 and auto_start_interval_seconds is set to 3600, the execution interval of the automatic recovery program increases by 10 seconds each time, incrementing to 3610 seconds, 3620 seconds, and so on.

Configuration File Path

The path of the configuration file depends on the source server OS.

  • Linux: .../SMS-Agent/agent/config/g-property.cfg
  • Windows:
    • Windows Agent (Python 3): C:\SMS-Agent-Py3\config\g-property.cfg
    • Windows Agent (Python 2): C:\SMS-Agent-Py2\config\g-property.cfg

Migration Network FAQs

more