Ask Your Question
0

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 30 times

Last updated: Jun 25 '18