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-07-17 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
Disk Management FAQs
- Why Was a 40 GB EVS Disk Added to the Target Server During the Migration?
- Why Can't I Attach the Original System Disk Back to a Target Server?
- How Do I Resize Partitions and Disks When I Migrate a Windows Source Server?
- How Do I Shrink the Disk Partitions on a Windows Source Server?
- How Do I Exclude a Partition from Migration in Windows?
- How Do I Resolve Error "Target server has fewer disks than source server. Select another target server" When I Configure the Target Server?
- What Are the Requirements on Disks on a Target Server?
- How Can I Migrate a Source Server with a Large System Disk?
- How Do I Resolve Error "Some disks on the target server are smaller than those on the source server. Select another target server" When I Configure the Target Server?
- Can SMS Migrate Local Disks on a Source Server?
- When I Migrate a Windows Source Server from Alibaba Cloud, Why Do I Need to Choose a Target Disk at Least 1 GB Larger than the Paired GPT Source Disk?
- Why Can't I Specify Whether to Migrate a Physical Volume When I Resize Disk Partitions in Linux?
- Why Can't I Specify Whether to Migrate a Logical Volume When I Resize Disk Partitions in Linux?
- What Are the Rules for Resizing Volume Groups, Disks, and Partitions?
- How Do I Migrate a Server with a System Disk Larger Than 1 TB?
- How Do I Detach the Temporary System Disk from My Target Server and Re-attach the Original Disk?
- Why Is the Amount of Migrated Data Less Than the Total Amount of Data to Be Migrated After the Migration Is Complete?
- How Do I Merge Disks During a Linux Migration?
- How Do I Split a Disk During a Linux Migration?
- How Do I Detach the Temporary System Disk from My Target Server and Re-attach the Original System Disk using SMS-Agent?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore