Forum Discussion

Anonymous's avatar
Anonymous
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...
  • Anonymous's avatar
    Anonymous
    3 years ago
    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)