Help Center/ Server Migration Service/ FAQs/ Disk Management/ How Do I Detach the Temporary System Disk from My Target Server and Re-attach the Original System Disk using SMS-Agent?
Updated on 2024-08-31 GMT+08:00

How Do I Detach the Temporary System Disk from My Target Server and Re-attach the Original System Disk using SMS-Agent?

Windows

  1. Go to the Agent installation directory on the source server.

    • Windows Agent (Python 3): C:\SMS-Agent-Py3\script
    • Windows Agent (Python 2): C:\SMS-Agent-Py2\script

  2. Double-click the rollback.bat script in the script directory.
  3. Enter the AK/SK pair and other parameters as prompted.

    • AK/SK (Access Key ID/Secret Access Key): indicates the AK/SK pair of your target cloud account. For details about how to obtain them, see How Do I Obtain an Access Key (AK/SK)?
    • region_id: indicates the ID of the region where the target server is located, for example, ap-southeast-3 for AP-Singapore.
    • target_server_id: specifies the ID of the target server.
    • system_disk_id: specifies the ID of the original system disk on the target server.
    • migration_disk_id: specifies the ID of the temporary system disk (containing agent image) created in the migration task.
    • task_id: specifies the ID of the migration task. If you do not know the migration task ID, open the ...\config\rollback.cfg file in the Agent installation directory and change the value of enable_check_task to false. Then you do not need to enter the migration task ID. Then, run the rollback.bat script again.

  4. Wait for the script execution to complete.

Linux

  1. Go to the Agent installation directory .../SMS-Agent on the source server.
  2. Run the ./rollback.sh command to run the rollback script.
  3. Enter the AK/SK pair and other parameters as prompted.

    • AK/SK (Access Key ID/Secret Access Key): indicates the AK/SK pair of your target cloud account. For details about how to obtain them, see How Do I Obtain an Access Key (AK/SK)?
    • region_id: indicates the ID of the region where your target server is located, for example, ap-southeast-3 for AP-Singapore.
    • target_server_id: specifies the ID of the target server.
    • system_disk_id: specifies the ID of the original system disk on the target server.
    • migration_disk_id: specifies the ID of the temporary system disk (containing agent image) created in the migration task.
    • task_id: specifies the ID of the migration task. If you do not know the migration task ID, open the .../SMS-Agent/agent/configconfig/rollback.cfg file in the Agent installation directory and change the value of enable_check_task to false. Then you do not need to enter the migration task ID. Then, run the rollback.bat script again.

  4. Wait for the script execution to complete.