Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

How to copy Thin Provisioned Disk(vmdk file) from one data store to another through vCenter Server?

$
0
0

Hello all,

 

I am trying to find a way to copy thin provisioned disk (vmdk file) from one data store to another through vCenter Server preserving its thin provision disk type.

I tried using FileManager->CopyDatastoreFile_Task method, but the issue is that this copy method coverts the disk to thick provision eager zeroed. There is no parameter to specify disk type.

I also tried to use VirtualDiskManager->CopyVirtualDisk_Task which has disk type as parameter, but found out that this method is only available only when connected directly to ESXi host.

 

Is there any API similar to CopyVirtualDisk_Task when connected to vCenter Server? Or any API which can copy thin provisioned disk?

 

Thank you.


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>