Intermittent VM stun or unresponsiveness during Veeam backup operations - VMware vSphere ESXi
search cancel

Intermittent VM stun or unresponsiveness during Veeam backup operations - VMware vSphere ESXi

book

Article ID: 427516

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • In VMware vSphere environments, virtual machines may experience intermittent hangs or prolonged stun states during snapshot creation, deletion, or consolidation initiated by Veeam backup jobs.

  • Reviewing /vmfs/volumes/<datastore_uuid>/<vm_name>/vmware.log reveals normal snapshot durations, but preceding a hung state, the log terminates after destroying the CBT mirror node. No further activity is logged until the VM is recovered:

    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - SnapshotVMX_TakeSnapshot start: 'BACKUP TEMPORARY SNAPSHOT', deviceState=0, lazy=0, quiesced=0, forceNative=0, tryNative=1, saveAllocMaps=0
    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - VVOLLIB : VVolLib_IsVectoredSnapSupported: vvolVectoredSnapEnabled: 1
    YYYY-MM-DDTHH:MM:SS.Z In(05)+ vmx -
    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - VVolObjNotifySnapshotPrepare: Changing state to VEC_SNAP_PREPARE_IN_PROG.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - OBJLIB-VVOLOBJ :VVolObjNotifySnapshotPrepare: Building in-mem cache
    YYYY-MM-DDTHH:MM:SS.Z Er(02) vmx - DISKLIB-LIB_CREATE : DiskLib_NotifySnapshotPrepare: FiltLib failed to notify snapshot prepare: Operation completes asynchronously
    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - DISKLIB-CBT :ChangeTrackerESX_CreateMirror: Created mirror node <mirror_id>-cbtmirror.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vmx - SNAPSHOT: SnapshotPrepareTakeDoneCB: Prepare phase complete (The operation completed successfully).
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - Destroying virtual dev for scsi0:0 vscsi=<id>
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - VMMon_VSCSIStopVports: No such target on adapter
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - SnapshotVMXTakeSnapshotWork: Transition to mode 0.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - Closing all the disks of the VM.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - Closing disk 'scsi0:0'
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - DISKLIB-CBT : Shutting down change tracking for untracked fid <fid>.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - DISKLIB-CBT : Successfully disconnected CBT node.
    YYYY-MM-DDTHH:MM:SS.Z In(05) vcpu-0 - DISKLIB-CBT : ChangeTrackerESX_DestroyMirror: Destroyed mirror node <mirror_id>-cbtmirror. SrcFd: /vmfs/volumes/<datastore_uuid>/<vm_name>/<vm_name>-ctk.vmdk, DestFd:/vmfs/volumes/<datastore_uuid>/<vm_name>/<vm_name>-ctk-mirror.vmdk.

  • Reviewing ESXi host /var/run/log/hostd.log during repeated backup trigger attempts may show tasks queuing on the VM:

    YYYY-MM-DDTHH:MM:SS.Z Er(163) Hostd[...] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/<datastore_uuid>/<vm_name>/<vm_name>.vmx] Invalid transition requested (VM_STATE_CREATE_SNAPSHOT -> VM_STATE_CREATE_SNAPSHOT): Tasks running

  • In severe instances, the virtual machine becomes completely unresponsive to guest I/O or management operations, requiring a hard power cycle or soft process kill to recover. 

Environment

  • VMware vSphere ESXi 8.0 

  • VMware vSphere ESXi 7.0

  • Veeam Backup & Replication (utilizing CDP/IoFilter components)

Cause

  • Analysis of vmware.log indicates that stun events are often associated with timeouts during ChangeTrackerESX_DestroyMirror operations.
  • When no underlying hypervisor bug is present, the behavior is frequently traced to the interaction between the VMware ESXi hypervisor and third-party I/O filters (e.g., Veeam CDP/IoFilter plugins).

  • The I/O filter may hold the VM's I/O stream, extending the VM stun duration beyond expected operating limits during snapshot consolidation.

Resolution

  1. Engage Backup Vendor: Since symptoms typically originate from the third-party I/O filter layer, engage Veeam Support to inspect the CDP/IoFilter plugin behavior and verify recommended configuration parameters.

  2. Diagnostic Data Collection: If the issue recurs, capture the following diagnostic artifacts during the hung state before power cycling:

  3. Engage Broadcom Support: Open a support case with Broadcom Support and attach the collected diagnostic files, vmware.log, and ESXi support bundles (vm-support).

Additional Information