Start a Conversation

Solved!

Go to Solution

1149

July 7th, 2022 00:00

Map VxFlex volumes to Openstack (Cinder) volumes

Hi everyone,

Does anybody know if you can match the volumes created in VxFlex (scli --query_all_volumes) to the volumes created in Openstack (Cinder- openstack volume list) e.g. map the VxFlex "Volume ID" with the corresponding volume ID in openstack?

Thanks

31 Posts

July 10th, 2022 15:00

There is a KB out there for this: https://www.dell.com/support/kbdoc/en-au/000019786/how-to-identify-openstack-cinder-volume-from-vxflex-os?lang=en

In summary though:

Instructions

From Cinder GUID to ScaleIO volume name:
 
python -c 'import binascii, base64, sys; print base64.b64encode(binascii.unhexlify(sys.argv[1].replace("-", "")))' "${vol_uuid}"

From ScaleIO volume name to Cinder GUID:
 
python -c 'import binascii, base64, sys; xstr = binascii.hexlify(base64.b64decode(sys.argv[1])); print "-".join((xstr[:8], xstr[8:12], xstr[12:16], xstr[16:20], xstr[20:]))' "${vol_name}"

Based on _id_to_base64() from cinder/volume/drivers/dell_emc/scaleio/driver.py.

The driver is provided as part of the python-cinder RPM

Additional Information

This can be run from any server with python installed.

727 Posts

July 10th, 2022 19:00

The volume name in PowerFlex is the Openstack volume ID converted to base-64.

2 Posts

July 12th, 2022 03:00

Thank you very much, both of you. Very helpful 

No Events found!

Top