- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Elastic Block Storage
Basic volume operations
Handling failed elastic remote volumes
Basic volume operations
Handling failed elastic remote volumes
Handling failed elastic remote volumes
If your elastic remote volume fails, you can fix it by replacing or deleting the volume. This topic explains how to replace a failed volume using the ECS console.
tip
Elastic remote volumes are currently in closed beta. Contact your account manager to have your account added to the allowlist and start using it.
If an elastic remote volume enters an error state due to a software or hardware failure, it is automatically detached from the ECS instance and a failure notification is sent to you. You then need to replace or delete the failed volume, depending on your needs.
- Your elastic remote volume is currently in an "Error" status.
- Your account has the necessary permissions to perform operations on the volume and its associated ECS instance.
Replacing a failed volume
- Log in to the ECS console, navigate to the "Volumes" page, and select the "Elastic remote volume" tab.
- Follow the steps below to replace the failed volume.
- On the "Elastic remote volume" tab, locate the volume and click "... > Replace failed volume" on the right.
- In the "Replace failed volume" dialog box, complete the following four steps in sequence: modify configuration, replace failed volume, attach volume, and recover volume.
- The volume ID remains the same during the replacement process. Once complete, the volume status becomes "Available".
- Check the volume status before the failure occurs.
- If it meets one of the following conditions, you can skip modifying configuration and proceed to the next one. Otherwise, perform the configuration modification steps below.
- The volume was not attached before it failed.
- The last ECS instance to which the volume was attached ran the Windows operating system.
- Log in to a Linux instance.
- In the "Replace failed volume" dialog box, click the ECS instance to which the volume was last attached to access the instance overview page.
- Run the df -h command to view mount details.
- Unmount the file system for the volume.
- Add the nofail parameter.
- Run the vim /etc/fstab command and add the nofail parameter to the mount options for the volume. This will ensure that the instance can still start if the mount fails.
- Proceed to the next step.
- Return to the "Replace failed volume" dialog and click "Next".
Replacing a failed volume
- Verify the failed volume information.
- On the "Replace failed volume" page, confirm the volume ID and specifications.
- Replace the failed volume.
tip
The system will create a new, blank volume to replace the failed one. The volume ID will remain the same. This operation will erase all data. Proceed with caution.
- Check the box next to "I acknowledge the risk and confirm to replace the failed volume", and then click "Replace failed volume".
- Wait until the volume status changes to "Available", and then click "Next".
- Verify the failed volume information.
- On the "Attach Volume" page, select the ECS instance to which you want to attach the volume.
- Attach to the original instance (Default): This option attaches the volume back to the instance it was last attached to.
- Attach to another instance: Select another ECS instance for attachment.
- Click "Attach". When "Volume status" changes to "Attached", click "Next".
The new volume is blank after replacement. Before using it, you need to create and mount a file system. The following example shows how to create a file system and set up automatic mounting at startup for a Linux instance.
- Run the fdisk -l command to find the name of the new volume.
- Run the mkfs -t <file system format> new volume command to create a file system directly on the raw device.
- Different file systems support different partition sizes. Select a file system that best meets your business needs.
- Run the mkdir <mount point> command to create a mount point.
- Run the mount new volume <mount point> command to mount the volume to the newly created mount point.
- Run the df -th command to verify the mount result.
- Setting up automatic mounting at startup
- Run the blkid volume partition command to query the UUID of the partition.
- Run the vim /etc/fstab command to open the fstab file.
- Press i to enter insert mode. Then, add a new entry similar to the following:
-
- This content is for example purposes only. Use actual values from your environment. The parameters are explained below:
- Press "Esc", type :wq, and press "Enter" to save and exit the editor.
- Run the mount -a command to reload all entries in the /etc/fstab file.
- Run the mount | grep command to view information about the mounted file system.
- The following command returns information about /dev/vdc:
- If the output is similar to the following, automatic mounting is working:
Deleting a failed volume
Deleting a failed volume directly releases its resources and renders data recovery impossible. This option is appropriate when the volume is no longer needed.
The process is the same as when replacing a failed volume. For Linux instances, clean up the residual mount entries in /etc/fstab to prevent startup failure. For instructions, see the Modifying configuration section above. Deleting a failed volume
- Verify the failed volume information.
- On the "Delete failed volume" page, confirm the volume ID and specifications.
- Delete the failed volume.
- Check the box next to "I am aware of the risk and confirm delete failure", and then click "Confirm delete".
- After a volume is successfully deleted, a prompt appears on the "Elastic remote volume" page that reads, "Volume deleted successfully".
Last updated: 2026.08.18 15:57:56