Mount datastore to additional ESX hosts
Could someone please let me know how to mount a VVOL datastore to additional ESXi hosts apart from the one with which it was created.
@sathvikm, @prziborowski any idea please
Sorry shyamachilles, I am not familiar with VVOL.
Sorry @shyamachilles , I am not familiar with VVOL as well.
Any updates here please?
Any idea on how to mount vvol datastore on esxi host using python or do we have any API for that?
It need not be VVOL datastore. It could be any datastore. Need this support, because to perform host migration, we need to have the datastore mounted onto the destination host as well.
I have the same problem with nfs datastores. I want to create a nfs datastore on multiple hosts. the first one is ok but all the others fail because pyvmomi create a new one every time instead of mounting the existing one.
CreateVvolDatastore is what you're looking for.
DuplicateName should be thrown if it exists in the same space. by space, it refers to esx. If esx, is not mounted to vol then it "mounts it"
https://vdc-repo.vmware.com/vmwb-repository/dcr-public/fa5d1ee7-fad5-4ebf-b150-bdcef1d38d35/a5e46da1-9b96-4f0c-a1d0-7b8f3ebfd4f5/doc/vim.host.DatastoreSystem.html#createVvolDatastore
CreateVvolDatastore(createVvolDatastore)