Virtual machine crashes during vMotion or snapshot creation with HPE/Zerto replication plugin
search cancel

Virtual machine crashes during vMotion or snapshot creation with HPE/Zerto replication plugin

book

Article ID: 436931

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Reviewing the vCenter Tasks and Events for the impacted VMs revealed the following behaviors and error logs:

    • A critical event is logged just before the crash: Error message from [host]: VMware ESX unrecoverable error: (vcpu-0) Non-empty heap (hpereplication) being destroyed (avail is ####, should be ####).

    • The following error snippet was observed in the /var/run/log/hostd.log of an ESXi host, indicating a failed snapshot creation task for a Zerto-protected virtual machine:

      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/[Datastore-Name]/[VM-Name]/[VM-Name.vmx] Handling vmx message 6049545: VMware ESX unrecoverable error: (vcpu-0)
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: --> Non-empty heap (hpereplication) being destroyed (avail is ####, should be ####).
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: --> A log file is available in "/vmfs/volumes/[Datastore-Name]/[VM-Name]/vmware.log".
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: --> You can request support.
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: -->
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: --> To collect data to submit to VMware technical support, run "vm-support".
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: --> We will respond on the basis of your support entitlement.
      YYYY-MM-DDTHH:MM:SS Db(167) Hostd[#######]: -->
      YYYY-MM-DDTHH:MM:SS In(166) Hostd[#######]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event ##### : Error message on [VM-Name] on [ESXI Hostname] in ha-datacenter: We will respond on the basis of your support entitlement.
  • This can occur in Zerto protected virtual machines as well where sudden crashes and connectivity losses during attempted vMotion (hot migration) or non-memory snapshot operations.

  • Below error can be found in vSphere Client Events tab :
  • The following error was reported in /var/log/vmfs/volumes/vm/vmware.log during the crash:

    • /vmfs/volumes/vm/vmware.log 

      YYYY-MM-DDTHH:MM:SS Wa(03) Upcall-#####- Caught signal 11 -- tid #### (addr 0)
      YYYY-MM-DDTHH:MM:SS Cr(01) Upcall-#####- PANIC: Unexpected signal: 11.


    • The output of vmx-zdump matched the crashing thread ID (#####) directly to the Zerto plugin: /usr/lib64/vmware/plugin/libvmiof-disk-hpereplication.so.

    • Crashing World ID: #####
      GDB failed to find following shared libraries
          32m/usr/lib64/vmware/plugin/libvmiof-disk-hpereplication.so

Environment

vCenter Server 8.x
vSphere ESXi 8.x
Zerto 10.x

Cause

  • The core issue preventing successful snapshots and vMotions is the hpereplication IOfilter attached to the virtual machine's disks.
  • When a snapshot or vMotion is initiated, the hpereplication IOfilter encounters an unrecoverable heap error, which forcefully crashes the virtual machine.
  • The virtual machine experienced a hard crash triggered by the Zerto I/O filter plugin (libvmiof-disk-hpereplication.so).

Resolution

Zerto has identified the issue relating to the IOfilter memory management issues and has resolved the issue in Zerto 10.8.21.  Please reach out to Zerto to confirm the version(s), for update assistance and/or to further troubleshoot or investigate why the VMX crash occurred. 

Workaround:

To isolate the IOfilter as the source of the failure and permit standard vMotion or snapshot operations, the IOfilter must be bypassed. Proceed with the following steps:

  1. Power-off the Virtual Machine.

  2. Locate the .vmdk descriptor file for the affected virtual machine.

  3. Open the .vmdk file and locate the ddb.sidecars entry.

  4. Comment out the line by adding a # at the beginning.
    • Example: # ddb.sidecars = "hpereplication_[X],[VM_NAME]_[ID].vmfd;hpereplication_[Y],[VM_NAME]_[ID].vmfd"

  5. Perform the vMotion or snapshot operation again to verify success.