This article addresses an issue where disk chains in a virtual machine (VM) become broken, causing the error message. A broken disk chain occurs when the ParentCID in a delta disk does not match the CID in its parent disk.
VCF 9.1
If a backup is available:
If no backup is available:
vmdk descriptors) using the cp (copy) command on ESXi. This allows rollback in case of failure.When to attempt chain repair:
Chain repair should only be attempted under specific, controlled conditions. The currently supported scenario is:
CID and ParentID values.Repair Methods
On ESXi:
vmkfstools -x repairChain <disk.vmdk>
Using PowerCLI:
Connect-VIServer -Server <vc-ip or hostname> -User <user@domain> -Password <password>
$vm = Get-VM <vm-name>$vm.ExtensionData.RepairVmDiskChains_Task()
$vdisk = Get-VDisk <vdisk-name>$objectId = New-Object VMware.Vim.ID$objectId.Id = $vdisk.ExtensionData.Config.Id
$si = Get-View ServiceInstance$vsom = Get-View $si.Content.vStorageObjectManager$ds = Get-Datastore -Name <datastore-name>
$vsom.RepairVStorageObjectChain_Task($objectId, $ds.ExtensionData.MoRef)
Using curl to repair the disk chains attached to a VM
curl -k -X POST -u 'administrator@<sso domain>:<VC-PASSWORD>' https://<VC-IP>/rest/com/vmware/cis/session
curl -k -X POST -H 'vmware-api-session-id: <The session key retrieved by login command>' https://<VC-IP>/sdk/vim25/<release>/VirtualMachine/<vm-moid>/RepairVmDiskChains_Task
On Workstation / Fusion:
Use the following command-line utility to attempt repair:
vmware-vdiskmanager -F <disk.vmdk>
Post-repair Steps