Virtual Machine disk consolidation completes, but the snapshots remain
search cancel

Virtual Machine disk consolidation completes, but the snapshots remain

book

Article ID: 438703

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • A disk consolidation shows as completed in vCenter.
  • When checking the disk(s) of the VM, it will show the disk name followed by "00000#.vmdk" indicating that the snapshot was not deleted.
  • Checking the Snapshots tab of the VM, the snapshot is still present, meaning that the snapshots were not deleted after the consolidation.
  • In hostd.log, the following entries are observed related to the snapshot consolidation task:

YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd [52558184]: [Originator@6876 sub-DiskLib opID=<opID> sid=<sid> user=vpxuser:user/domain] State Transition (VM_STATE_OFF -> VM_STATE_CONSOLIDATE_ALL_DISKS)

YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd [52558184]: [Originator@6876 sub-DiskLib opID=<opID> sid=<sid> user=vpxuser:user/domain] SNAPSHOT: SnapshotConfigInfoOpenVmsd: Creating new snapshot dictionary, '/vmfs/volumes/................./VMname/VMname.vmsd.usd'

YYYY-MM-DDTHH:MM:SS.720Z In(166)) Hostd [52558184]: [Originator@6876 sub-DiskLib opID=<opID> sid=<sid> user=vpxuser:user/domain] SNAPSHOT: Snapshot CombineDisks: Consolidating from '/vmfs/volumes/................./VMname/VMname_1-000001.vmdk' to '/vmfs/volumes/................./VMname/VMname.vmdk'.

...

YYYY-MM-DDTHH:MM:SS.###Z In(166) In (166) Hostd [52558184]: [Originator@6876 sub-DiskLib opID=<opID> sid=<sid> user=vpxuser:user/domain] DISKLIB-CTK : Could not open change tracking file "/vmfs/volumes/................./VMname/VMname_1-ctk.vmdk": Change tracking invalid or disk in use.

YYYY-MM-DDTHH:MM:SS.###Z In(166) In (166) Hostd [52558184]: [Originator@6876 sub-DiskLib opID=<opID> sid=<sid> user=vpxuser:user/domain] OBJLIB-FILEBE: Error creating file '/vmfs/volumes/................./VMname/VMname_1-ctk.vmdk': 3 (The file already exists).

...

YYYY-MM-DDTHH:MM:SS.###Z In(166) In(166) Hostd [52558186]: [Originator@6876 sub-Vimsvc.ha-eventmgr] Event ###### Virtual machine VMname disks consolidated successfully on ESXi-host in cluster cluster-name in datacenter-name.

YYYY-MM-DDTHH:MM:SS.###Z Db(167) Hostd [52558186]: [Originator@6876 sub=Vmsvc.vm: /vmfs/volumes/................./VMname/VMname.vmx] Time to gather snapshot information: 9 msecs. needConsolidate is false.

YYYY-MM-DDTHH:MM:SS.###Z In (166) Hostd [52558186]: [Originator@6876 sub-Vimsvc.ha-eventmgr] Event ######: Virtual machine VMname disks consolidation is no longer needed on ESXi-host in cluster cluster-name in datacenter-name.

Environment

vCenter 8.x

Cause

This issue occurs when the <VMname>-ctk.vmdk file is not cleared.

Resolution

See KB: ERROR: “could not open/create change tracking files” when powering on VM

Additional Information

For more information see: