andrea_moccia
3 years agoNovice I
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...
- 3 years agofound 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)