Started detaching volume by mistake - how to cancel

0

Hi,

I started detaching an EBS volume by mistake (I chose the wrong volume).

Since the volume was still mounted it has not detached and is now stuck in a "busy" state.

It still works fine but if the instance is rebooted at any time then I'm worried it will detach and this might happen when I am not around to sort it out.

Is there any way to cancel the detach instruction and get the volume back in a normal "attached" state?

Thanks and regards

demandé il y a un an359 vues
1 réponse
0

How about setting it to automatically mount after reboot?
The following document describes how to set it up.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html#ebs-mount-after-reboot

With this setup, if you accidentally detach it, it will be restored after attaching and rebooting.

profile picture
EXPERT
répondu il y a un an
  • Thanks. That article contained some great info I was not aware with, such as mounting devices using their UUID. I do already have an fstab file to mount the volume on reboot, was hoping though I could "cancel" the detach instruction so that I don't have a service interruption while I unmount and mount again (or reboot and mount again). Was also hoping the detach instruction would time out since the volume is still mounted but seems there is no timeout and the "busy" state persists forever until an unmount or reboot happens.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions