Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Auto Deleting Volumes on Instance Delete
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
How to attach Volumes which will be deleted when the Source VM is deleted.
Environment
- Platform9 Managed OpenStack - v4.0 and Higher
- python-openstackclient CLI
Procedure
- Obtain the UUID of the Volume and the VM you want to attach it to.
- Source the OpenRC file for your environment.
- Run the following command with the
--enable-delete-on-terminationflag.$ openstack server add volume [--enable-delete-on-termination | --disable-delete-on- termination] server_uuid volume_uuid
Note - This command will delete the volume by default when the associated VM is deleted. There will no confirmation step. Please ensure you have backups of all critical volumes to avoid potential data loss.
Additional Information
- How to use the OpenStack CLI.
- Upstream OpenStack Documentation
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message