VMware vSphere

 View Only
  • 1.  VM VMDK Issue and Disk Consolidation Assistance Needed

    Posted Feb 18, 2025 10:12 AM
     
    Hi,
     
    I have an issue with the VM VMDK. This machine has a snapshot, and we need to attach one of the disks from this VM to another VM. We detached the disk from VM01, but by mistake, we attached the Print disk (not the snapshot disk ending with 00001). The disk was attached successfully to VM02, but upon checking, the data was old, from the last snapshot. We detached it and tried to attach the snapshot disk, but VM01 didn't start. I attached the snapshot disk to VM01 and deleted all snapshots. When attempting disk consolidation, I received the error: "The parent virtual disk has been modified since the child was created."
     
    My senior guide me to use the vmkfstools -i command for disk consolidation, but I'm unsure if this is the correct command. Could you please advise?
     
    attached screenshot of the VMDK list.


  • 2.  RE: VM VMDK Issue and Disk Consolidation Assistance Needed

    Posted Feb 18, 2025 11:28 AM

    Although it is possible to fix the snapshot chain by editing the small .vmdk files manually, you may end up with more or less data corruption.
    The extent of the data corruption depends on which data blocks were modified in the base .vmdk was connected/used, and whether these data blocks have also been modified and exist in one of the existing snapshots too.

    When re-chaining the .vmdk files, please note that the snapshot's file name does not necessarily correspond with the snapshot sequence.

    In doubt, please compress/zip the 3 small .vmdk files, and attach the .zip archive to your a reply post.

    André




  • 3.  RE: VM VMDK Issue and Disk Consolidation Assistance Needed

    Posted Feb 18, 2025 11:46 AM

    Hi André, 
    thanks for your support, unfortunately, the size of a small VMDK is over 18GB, alternative I attached the Descriptor File for each VMDK, I think I should edit the CID for the snapshot disks but I don't know how and what should change.




  • 4.  RE: VM VMDK Issue and Disk Consolidation Assistance Needed

    Posted Feb 19, 2025 05:19 PM

    What talking about the small .vmdk files, I was actually referring to the three small descriptor files.
    Sorry for the confusion.

    Did you already modify these files? vmname-000002.vmdk has the same value for CID and parentCID?
    Please run ls -lisa *.vmdk an post the result (as plain text please).

    Disregarding the issue with vmname-000002.vmdk, what you need to do, is to set the parentCID in vmname-00001.vmdk to the value of the CID from the base virtual disk file, i.e. parentCID=4ccce0eb

    Please remember to reload the VM in case you are editing files manually.

    André