Error: msg.changetracker.MIRRORCOPYSTATUS when snapshots fail to consolidate
search cancel

Error: msg.changetracker.MIRRORCOPYSTATUS when snapshots fail to consolidate

book

Article ID: 434140

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • ESXi hosts may experience failures when attempting to consolidate or create virtual machine snapshots. This issue typically occurs when there is a mismatch or corruption in the Changed Block Tracking (CBT) metadata, often involving orphaned snapshot descriptor files that are no longer tracked by the Snapshot Manager.

Symptoms:

    • Snapshot tasks fail with the error: An error occurred while taking a snapshot: msg.changetracker.MIRRORCOPYSTATUS.
    • The virtual machine is unable to create new snapshots on a datastore where existing snapshots are present.
    • The virtual machine continues to run on the base disk while snapshot files (*-00000x.vmdk) persist in the datastore folder.
    • Snapshots consume excessive datastore space and fail standard consolidation attempts.

Cause

This issue is caused by corrupted or mismatched Changed Block Tracking (CBT) data involving orphaned snapshot descriptor files (*-00000x.vmdk)

Resolution

Step 1: Identify Orphaned Snapshots

To confirm the issue is caused by orphaned snapshots and not active ones, perform the following checks:

  1. Check Active Disk State:

    1. Right-click the VM > Edit Settings.
    2. Expand each Hard Disk and verify the "Disk File" path.
    3. Ensure the VM is pointing to the base disk (e.g., VMNAME.vmdk) and not a snapshot/delta disk (e.g., VMNAME-00000x.vmdk).

      If the VM is actively running on a snapshot disk, do not proceed with manual file moves until the disks are successfully consolidated.
  1. In the vSphere Client, right-click the VM and select Snapshots > Consolidate. If this fails with the MIRRORCOPYSTATUS error, proceed to the manual reset.
  2. Establish an SSH session to the ESXi host and navigate to the VM directory. Compare the files in the directory with the Snapshot Manager. If *-00000x.vmdk files exist but no snapshots are shown in the UI, they are orphaned.

Step 2: Manual CBT Reset and File Cleanup 

Note: The following steps involve a CBT reset. Disabling and re-enabling CBT resets the tracking ID, which will force the next backup job to perform a Full Backup instead of an incremental one. Ensure you have a sufficient backup window and storage capacity before proceeding. Refer to Changed Block Tracking (CBT) on virtual machines for more details.

  1. Power off the affected virtual machine.
  2. Disable CBT by modifying the VM configuration parameters:

    Set ctkEnabled = false.
    Set all disk-specific parameters (e.g., scsi0:0.ctkEnabled) to false.
  3. Establish an SSH session to the ESXi host and navigate to the virtual machine directory.
  4. Create a temporary directory within the VM folder (e.g., temp).
  5. Move the orphaned snapshot descriptor files (*-00000x.vmdk) , CBT files (*-ctk.vmdk) and the .vmsd file into the temporary directory.
  6. Take a new snapshot to confirm the process completes successfully.
  7. Power off the virtual machine again.
  8. Re-enable CBT in the VM configuration:

    Set ctkEnabled = TRUE.
    Add disk-specific parameters (e.g., scsi0:0.ctkEnabled = TRUE) for each virtual disk.
  9. Power on the VM.
  10. Initiate Backup: Run a manual backup to establish a new Full Backup baseline.