Thanks for thw quick reply. The link posted by you shows compatibility checking for host, but i want to check for DATASTORE compatibility before relocating the VM.
example: Suppose a VM named "test123" is on "ds1" datastore, now i want to relocate this vm to another datastore say "ds2". But before this migration happens i want to check whether the datastore "ds2" is compatible with the VM. An example of Datastore compatibility would be checking if the destination datastore has the free size required for the VM.
So my question is, if there is any method like "queryVMotionCompatibility" for datastore in vi-java?
(queryVMotionCompatibility is used for checking host compatibility)
I think Vmware is checking the space crunch before doing vMotion.
FAQ from the link --> http://blogs.vmware.com/vsphere/tag/storage-vmotion
Q: Do we check for adequate free disk space on the destination DS before beginning Storage vMotion?
A: Yes, checks are made before we initiate the svMotion to ensure that adequate disk space is available on the destination DS. If there is not enough space, the svMotion request fails with no impact to the running VM.
Q: What happens to the VM if you run out of storage on the destination DS?
A: If an out-of-space condition is hit svMotion will clean up the destination DS and the VM will continue to run on the source.