Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: Where to put VixDiskLib_Cleanup ?

$
0
0

Hi intripoon,

 

Check section "Prepare For Access and End Access" of Advanced Transport APIs. There it reads:

 

  • The VixDiskLib_PrepareForAccess() function notifies a vCenter-managed host that a virtual machine’s disks are being opened, probably for backup, so the host should postpone virtual machine operations that might interfere with virtual disk access. Call this function before creating a snapshot on a virtual machine. Internally, this function disables the vSphere API method RelocateVM_Task.
  • The VixDiskLib_EndAccess() function notifies the host that a virtual machine’s disks have been closed, so operations that rely on the virtual disks to be closed, such as vMotion, can now be allowed. Call this function after closing all the virtual disks, and after deleting the virtual machine snapshot.

 

I would interpret this as the latest point in time to call VixDiskLib_PrepareForAccess() and the earliest to call VixDiskLib_EndAccess(). So I guess your sequence should be ok too. You know it is all about telling vCenter not to move the VM files as long as you are accessing them.

--

Thomas G.


Viewing all articles
Browse latest Browse all 206069

Trending Articles