Forum Discussion

andrea_moccia's avatar
3 years ago
Solved

Mount a VVOL datastore

Hello all, I'm trying to mount a VVOL datastore using Mount-PfaVvolDatastore - https://blog.purestorage.com/uncategorized/mounting-a-vvol-datastore-with-powercli/. This is working fine on windows but I need to do this from a linux container and having issues with the import of PureStorage.FlashArray.VMware. I have no problem importing and using other PowerShell SDK1/SDK2 modules on the container, but I think I need PureStorage.FlashArray.VMware to mount VVOL, or is there another recommended way of doing this? First error I get is about loading of PureStorage.FlashArray.VVol - see below. I can work around this by pointing directly to the psd1 but then it fails to load PureStorage.FlashArray.VMware.vVol.Replication.psm1 and even manually pointing to the psd1/psm1 doesn't seem to help.

  • found an alternative way of doing this, so I am good, thanks Alex $esxhost = get-vmhost _hostname_ $vvolname = "_vvol_ds_name_" $vvol = Get-Datastore $vvolname $id = $esxhost.ID.Split("-")[-1] $hds="HostDatastoreSystem-datastoreSystem-"+$id $spec = New-Object VMware.Vim.HostDatastoreSystemVvolDatastoreSpec $spec.Name = $vvol.Name $spec.ScId = $http://vvol.ExtensionData.Info|vvol.ExtensionData.Info.Url.Split("/")[5] $_this = Get-View -Id $hds $_this.CreateVvolDatastore($spec)