Forum Discussion

jjprachyl's avatar
jjprachyl
Novice I
3 years ago

Is there an easy way to track/manage a vvol disk between

Is there an easy way to track/manage a vvol disk between the 3 layers of Guest, vcenter, and array? I’m really wanting to take advantage of the API through powershell and finding this to be a challenge.

6 Replies

  • i walk through that code in blog form here https://www.codyhosterman.com/2018/07/powercli-and-vvols-part-ii-finding-vvol-uuids/
  • Check out https://github.com/PureStorage-OpenConnect/PureStorage.FlashArray.VMware , the cmdlets of interest will be Get-VmdkFromWindowsDisk to get the VMDK, then Get-VvolUuidFromVmdk to get the vVol UUID, and then use the output against Get-PfaVolumeNameFromVvolUuid to get the Name/SN
  • If you dive into the folders, the Powershell is all open source, you can modify the get-vmdkfromwindowsdisk to accept a mountpoint instead of a drive letter. I have that code if you need. https://github.com/PureStorage-OpenConnect/PureStorage.FlashArray.VMware/blob/master/PureStorage.FlashArray.VMware.VVol/PureStorage.FlashArray.VMware.VVol.psm1|https://github.com/PureStorage-OpenConnect/PureStorage.FlashArray.VMware/blob/mast[…].FlashArray.VMware.VVol/PureStorage.FlashArray.VMware.VVol.psm1
  • If linux, you always can look at the scsi location, and track that back on the VM... EG (0:0) (0:1) etc....... then from the VM, query for the HD with that scsi position to get the VMDK location, then pick up with Get-VvolUuidFromVmdk