Collect Nutanix VM vDisk and Map to Pure Storage Volumes and Snapshots

Share on:

Nutanix with FlashArray is Now Generally Available! With this initial release, Nutanix now has a new External Storage Platform with Pure Storage connecting over NVMeoF/TCP. This integration uses volume granular storage which means every vDisk from Nutanix gets created as a Pure Storage volume. This series will outline how to identify a vDisks associated volume and snapshot on a Pure Storage FlashArray.

Prerequisites

Introduction

There may be a need to to identify its backing volume or snapshot. Unfortunately in the initial release this was not made available in the UI. However, this script is able to utilize the Pure Storage Volume tags to identify the associated objects volumes. Using the script you can filter all VM’s, specific VM’s, snapshots and metadata disk information.

Usage

Follow the below step to collect the Nutanix vDisk information.

  1. Configure Prism Credentials.
$prismcred = Get-Credential
  1. Configure Array Credentials.
$arraycred = Get-Credential
  1. Using Powershell, run the following command(s)

  2. Execute the script.

./GetVMVol.ps1 -ArrayEndpoint $ArrayEndpoint -PrismEndpoint $PrismEndpoint -ArrayCredential $arraycred -PrismCredential $prismcred

-VM <VMNAME> (OPTIONAL) - To Show Specific VM’s Details

-showSnapshots $true (OPTIONAL) - To Show VM’s Snapshots

-showMetadata $true (OPTIONAL) - Show VM’s Metadata Disks

Examples

Display All VM’s and Disks

./GetVMVol.ps1 -ArrayEndpoint $ArrayEndpoint -PrismEndpoint $PrismEndpoint -ArrayCredential $arraycred -PrismCredential $prismcred -showMetadata $true

Display VM’s Disks and Snapshots

./GetVMVol.ps1 -ArrayEndpoint $ArrayEndpoint -PrismEndpoint $PrismEndpoint -ArrayCredential $arraycred -PrismCredential $prismcred -showSnapshots $true

Conclusion

That’s it! Hopefully this post is helpful to allow you to map a Nutanix VM’s vDisk back to a Pure Storage Volume and Snapshot.

If you have questions or feedback, feel free to leave a comment below!

comments powered by Disqus

See Also