Does a volume attached to a compute instance automatically terminates when the instance terminates??

asked 2013-09-13 17:48:11 -0600

anonymous user


Currently, I plan to attach a volume(Block Storage) to an instance. My question: When the instance is terminated, does the attached volume automatically detaches and terminates as well?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-09-14 01:22:15 -0600

Sirushti Murugesan gravatar image

The volume gets deleted on termination of instance only if the delete-on-terminate flag is set at boot-time of the instance.


edit flag offensive delete link more

answered 2013-09-16 10:58:15 -0600

gmi gravatar image

Actually, the volume is not deleted when you delete the instance. The question mentions explicitly that "I plan to attach a volume(Block Storage) to an instance" which means that it's a regular instance with an ephemeral root disk to which the user wants to attach a "permanent" volume.

Once again: a volume that was created independently of an instance (and later attached to it) will not be deleted when the instance is deleted.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-09-13 17:48:11 -0600

Seen: 859 times

Last updated: Sep 16 '13