Ask Your Question

Revision history [back]

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.