Help Center> Server Migration Service> FAQ> Disks> How Do I Detach the Temporary System Disk from My Target Server and Attach the Original One?

How Do I Detach the Temporary System Disk from My Target Server and Attach the Original One?

Symptom

After you deleted a failed or suspended migration task from the SMS console, the target server was still using the temporary system disk whose name starts with SMS. As a result, the original system disk could not be attached back.

Possible Causes

If a migration task fails or is suspended, the system will not automatically detach the temporary system disk and attach the original one back. You need to manually perform this step if you want to restore this server to its original condition.

Solution

  1. Detach the temporary system disk.

    1. Log in to the ECS console.
    2. In the server list, locate this server and click its name.
    3. Click the Disks tab, locate disk SMS-Temp_Disk_Deleted-after-migration, and click Detach.

    4. Click Yes.

  2. Detach the original system disk.

    The original system disk is attached as a data disk. You need to detach it and attach it as a system disk again.

    1. Detach the original system disk from the target server by referring to step 1..

    2. Log in to the EVS console. In the disk list, locate the disk you just detached and click the disk name.

      Check whether the disk has changed from a data disk to a system disk. If it has, go to the next step.

  3. Reattach the original system disk.

    1. Log in to API Explorer.
    2. In the navigation pane on the left, choose Elastic Cloud Server > Disk Management > AttachServerVolume and set the following parameters:
      • Region: Select the target region.
      • Project_id: indicates the project ID, which is automatically filled after login. Therefore, you can leave it blank.
      • server_id: indicates the ID of the ECS to which the system disk is to be attached.
      • device: indicates the disk mount point.
        • For Xen ECSs, device is mandatory. Set device to /dev/sda.
        • For KVM ECSs, set device to dev/vda.
      • volumeId: indicates the ID of the disk to be attached. The value is in UUID format.

    3. Click Debug. After the debugging is successful, the system disk has been attached to the ECS.