Ask Your Question

see which cinder volumes are root volumes for instances - cli

asked 2018-06-20 12:52:32 -0500

garettmd gravatar image

Is there a way to see, from the admin context, what cinder volumes are being used as root volumes for compute instances?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-06-25 06:43:19 -0500

openstack volume show displays a field named attachments. I don't have a running cloud to check, but here is an example of what it looks like (scroll down to To attach a volume to an instance):

$ openstack volume show <VOLUME_ID>

| Field                                 | Value                                                                                     |
| attachments                           | [{u'server_id': u'<server_id>', u'attachment_id': u'<attachment_id>',u'host_name': None,  |
|                                       | u'volume_id': u'<volume_id>', u'device': u'/dev/vdb', u'id': u'<volume_id>'}]             |

If the device is /dev/vda, you have a root volume.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-06-20 12:52:32 -0500

Seen: 150 times

Last updated: Jun 25 '18