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-22 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
- 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
- Double-click the rollback.bat script in the script directory.
- 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.
- Wait for the script execution to complete.
Linux
- Go to the Agent installation directory .../SMS-Agent on the source server.
- Run the ./rollback.sh command to run the rollback script.
- 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.
- Wait for the script execution to complete.
Parent topic: Disk Management
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.