Forum Discussion
6 Replies
- Cody_HostermanPuritani walk through that code in blog form here https://www.codyhosterman.com/2018/07/powercli-and-vvols-part-ii-finding-vvol-uuids/
- cmautnerPuritanWhat type of disk in VMware? RDM? vVol?
- jjprachylNovice Ivvol
- cmautnerPuritanCheck 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
- cmautnerPuritanIf 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
- cmautnerPuritanIf 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