Help Center> Elastic Volume Service> FAQs> Detachment> If I Detach a Disk, Will I Lose the Data on My Disk?
Updated on 2023-08-04 GMT+08:00

If I Detach a Disk, Will I Lose the Data on My Disk?

It depends on if the disk is encrypted or not.

  • Encrypted
    • The custom key is disabled or scheduled for deletion.

      The disk can still be used, but there is no guarantee for how long it will be usable. If the disk is detached, it will be impossible to re-attach it later. In this case, do not detach the disk without a working custom key.

      The restoration method varies depending on the key status. For details, see EVS Encryption.

    • The custom key is available.

      The disk can be detached and re-attached, and data on the disk will not be lost.

      To ensure your data safety, you are advised to follow the instructions described in Disk Detachment Process.

  • Non-encrypted

    Data on a disk will not be lost after the disk is detached, and the disk can be re-attached later if needed.

    To ensure your data safety, you are advised to follow the instructions described in Disk Detachment Process.

  • If you detach a disk that has an ongoing backup task, the task will fail.

Disk Detachment Process

  • For disks not supporting online detachment:
    1. Stop the server where the disk was attached.
    2. After the server has stopped, detach the disk.
  • For disks supporting online detachment:

    Detach the disk from a running ECS. For details, see Management > Detaching an EVS Disk from a Running ECS in the Elastic Cloud Server User Guide.

Detachment FAQs

more