Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

13321

January 30th, 2014 13:00

List UUID of all virtual volumes on VPLEX

Folks,

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!

27 Posts

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.

January 31st, 2014 11:00

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.

May 28th, 2015 09:00

wildcard to show  all storage views and associated volumes is w/o knowing Storage_View  name is:

ls -t /clusters/cluster-1/exports/storage-views/*::virtual-volumes

(or cluster-2)

27 Posts

May 29th, 2015 08:00

Hi,

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.

To use the API via curl:

curl –H "Username:username" -H "Password:password" –m 70 –s –i –k -H "Accept:application/json;format=1;prettyprint=0" –g -X GET https://ip_address/vplex/clusters/cluster-1/virtual-volumes/* |egrep “name:|vpd-id:”

or

curl –H "Username:username" -H "Password:password" –m 70 –s –i –k -H "Accept:application/json;format=1;prettyprint=0" –g -X GET https://ip_address/vplex/clusters/cluster-1/virtual-volumes/* |egrep “name:|vpd-id:” |awk '{ split($0,array,"\"");if ( array[2] ~ /name/ ) {Name=array[4]}; if ( array[2] ~ /vpd-id/ ) {printf "%s\t%s\n",array[4],Name}}'

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.

No Events found!

Top