Troubleshooting Snapshot failure with "A specified parameter was not correct" on replicated Persistent VDI VMs with persistent disks
search cancel

Troubleshooting Snapshot failure with "A specified parameter was not correct" on replicated Persistent VDI VMs with persistent disks

book

Article ID: 422409

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article shares the steps to troubleshoot and investigate scenarios where snapshot attempts specifically fail on replicated VDI machines on DR site while their Production side VDI counterparts function normally . Below are some of the symptoms that might be encountered:

  • When attempting to take a snapshot of a persistent VDI clone with disk mode Dependent at a DR site using any Replication solution, the task fails in vCenter with error:

"A specified parameter was not correct: spec.deviceChange.device An error occurred while taking a snapshot: One of the parameters supplied is invalid."

  • Entries similar to the below may be observed in the vmware.log of the impacted VDI machine:

/vmfs/volumes/<datastoreUUID>/<vm_folder>/vmware.log

vmx| DISKLIB-LIB_CREATE   : Failed to create link: A digest operation has failed (##)

vmx|  Er(##) vcpu-X - DISKLIB-LIB_CREATE   : DiskLib_CreateChild: failed to create child disk: A digest operation has failed (##).

An error occurred while taking a snapshot: Invalid change tracker error code

Resolution

Follow these steps to isolate if the corruption(As described in the KB above) is in the Master Image or the replication stream:

  1. Manually upload/export the Master Image to the DR site.

  2. Deploy a test VM from this image and attempt a manual snapshot.

    • Result A: If the manual snapshot fails, the Master Image is corrupted and needs to be rebuilt with the assistance from VDI vendor if needed

    • Result B: If the manual snapshot succeeds, the Master Image is healthy. The issue is likely introduced in the replication method and hence the replication vendor needs to be engaged.

Workaround:

To bypass the errors, change the disk mode of the flagged drives to Independent-Persistent following the Change Disk Mode to Exclude Virtual Disks from Snapshots .This setting prevents those specific disks from being included in the snapshot, allowing the snapshot operation to succeed with the remaining disks.

Note: A snapshot can only be generated if at least one disk remains in Dependent mode. If the Virtual Machine (VM) has only a single disk, or if all available disks are set to Independent-Persistent, the snapshot operation will be disabled for that VM.

Additional Information

依存ディスクを持つ複製されたPersistent VDI VM で "A specified parameter was not correct" というエラーが発生してスナップショットが失敗する問題のトラブルシューティング