This document is to provide the steps necessary to manually clone a virtual disk with snapshots to a new virtual disk instead of attempting to consolidate the existing snapshots to the original base disk.
Some instances may create snapshots of a virtual disk that is not visible within the snapshot manager of the vSphere Client, and the user wants to retain the original disks while creating a cloned copy of a virtual disk.
VMware vSphere ESXi
Verify the snapshot disk that the Virtual Machine is currently running on:
cd /vmfs/volumes/<Datastore>/<VMdirectory>grep vmdk *.vmxVerify the Consistency of the Snapshot Chain
cd /vmfs/volumes/<Datastore>/<VMdirectory>vmkfstools -qv10 <VMDKDESCRIPTORFILE>/vmfs/volumes/########-########-####-############/<server name> # vmkfstools -qv10 <server name>-000001.vmdk
DISKLIB-VMFS : "./<server name>-000001-delta.vmdk" : open successful (23) size = 86016, hd = 0. Type 8
DISKLIB-VMFS : "/vmfs/volumes/########-########-####-############/<server name>/<server name>-flat.vmdk" : open successful (23) size = 42949672960, hd = 0. Type 3
<server name>-000001.vmdk is not an rdm
DISKLIB-VMFS : "./<server name>-000001-delta.vmdk" : closed.
DISKLIB-VMFS : "/vmfs/volumes/########-########-####-############/<server name>/<server name>-flat.vmdk" : closed.
AIOMGR-S : stat o=2 r=6 w=0 i=0 br=98304 bw=0
/vmfs/volumes/########-########-####-############/<server name> # vmkfstools -qv10 <server name>-000001.vmdk
...
DISKLIB-LINK : DiskLinkIsAttachPossible: Content ID mismatch (parentCID fffffff3 != fffffffe) <server name>-000001.vmdk /vmfs/volumes/########-########-####-############/<server name>/<server name>.vmdk.
DISKLIB-CHAIN : "/vmfs/volumes/########-########-####-############/<server name>/<server name>.vmdk" : failed to open (The parent virtual disk has been modified since the child was created. The content ID of the parent virtual disk does not match the corresponding parent content ID in the child).
...
Failed to open '<server name>-000001.vmdk' : The parent virtual disk has been modified since the child was created. The content ID of the parent virtual disk does not match the corresponding parent content ID in the child (18).
ls' command to ensure the current directory and the proper directory in which the VMDK resides are the same.vmkfstools -i <source file vmdk>.vmdk /vmfs/volumes/<DestinationDatastore>/<NEW VMDK FILE>.vmdkvmkfstools -i <server name>-000001.vmdk /vmfs/volumes/<NewDatastore>/<server name>-NewDisk.vmdk
vmkfstools -i <source file vmdk>.vmdk <DESTINATION VMDK FILE>.vmdk -d thin vmkfstools -e <VMDKDESCRIPTORFILE> returns "Disk chain is consistent" if the chain is good.Failed to lock the file (16392)Disk chain is not consistent : Failed to lock the file (16392)Impact/Risks: