pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

Mount datastore to additional ESX hosts

Open shyamachilles opened this issue 8 years ago • 8 comments

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.

shyamachilles avatar Oct 30 '17 06:10 shyamachilles

@sathvikm, @prziborowski any idea please

shyamachilles avatar Nov 02 '17 23:11 shyamachilles

Sorry shyamachilles, I am not familiar with VVOL.

prziborowski avatar Nov 02 '17 23:11 prziborowski

Sorry @shyamachilles , I am not familiar with VVOL as well.

sathvikm avatar Dec 12 '17 04:12 sathvikm

Any updates here please?

shyamachilles avatar May 31 '18 23:05 shyamachilles

Any idea on how to mount vvol datastore on esxi host using python or do we have any API for that?

hnagireddygari avatar Sep 03 '18 13:09 hnagireddygari

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.

shyamachilles avatar Oct 10 '18 18:10 shyamachilles

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.

CrazyDrummer55 avatar Nov 30 '20 15:11 CrazyDrummer55

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)

yoni386 avatar Jan 28 '24 14:01 yoni386