Does anyone know of a cli command or script that will populate all the virtual volumes (with their UUID) on the VPLEX regardless of whether belong to a storage-view or not?. I have been doing ls -f on the storage view to get the UUID details of the virtual volumes that belong to that storage view, but how to find UUID of virtual volumes that does not belong to any storage view?. All in all, how to get UUID of ALL the virtual volumes on the VPLEX using a single command. Thank you!
Unfortunately the UI does not allow you to see the UUID of a virtual volume (VV) until it is placed into a storage view.
It is in each storage view context where you can find the UUID its member virtual volumes.
To see all the VV in a storage view (view_name for example) from the CLI:
ls -t /clusters/cluster-1/exports/storage-views/view_name::virtual-volumes
The "-t" tells ls to list the specified attribute (virtual-volumes) of the object view_name. Notice the double colons separating the object from its attribute.
Unfortunately, there is no way to see the UUID of virtual volumes that haven't been placed into a storage view.
Remember that a storage view won't export a virtual volume until the storage view contains a minimum of a VPLEX FE port, a host initiator port and a virtual volume. So you could see the UUID without actually exporting the virtual volume to a host.
Thanks Andrew. In that case, is there a VPLEX CLI command with a wildcard i could use to populate a list of ALL virtual volumes with their VPD ID that belong to any storage-view?. Basically, i have the VPD ID of a virtual volume and i have to hunt down the storage-view to which it belongs to. Obviously i dont want to manually check every storage-view for it. Please assist. Thanks.
In v5.4 of GeoSynchrony you can now see the UUID of a virtual volume in the virtual volume context.
For v5.4 and above use the command: “ls –t /cluster//virtual-volumes/*::vpd-id” to list all virtual volume UUIDs on a cluster. If you use an asterisk for cluster_name you will see all virtual volumes across both clusters in a Metro. You will see duplicates for distributed virtual volumes since they show up on both clusters.
You can run the above API requests from a remote system or if you add port 49881 (https://ip_address:49881/vplex...) to the URL you can run it from the VPLEX management server.
Andrew-F
27 Posts
6951
1
Posted January 31st, 2014 07:00
Hi,
Unfortunately the UI does not allow you to see the UUID of a virtual volume (VV) until it is placed into a storage view.
It is in each storage view context where you can find the UUID its member virtual volumes.
To see all the VV in a storage view (view_name for example) from the CLI:
ls -t /clusters/cluster-1/exports/storage-views/view_name::virtual-volumes
The "-t" tells ls to list the specified attribute (virtual-volumes) of the object view_name. Notice the double colons separating the object from its attribute.
Unfortunately, there is no way to see the UUID of virtual volumes that haven't been placed into a storage view.
Remember that a storage view won't export a virtual volume until the storage view contains a minimum of a VPLEX FE port, a host initiator port and a virtual volume. So you could see the UUID without actually exporting the virtual volume to a host.
I hope this helps.