How Do I Remove Files Stored In a VMDK?

I am a developer, not an IT guy, but I am the one responsible for managing our servers currently. I have run into a problem… apparently our SQL backups are much bigger than I anticipated, and on Saturday night, our SQL backup ran, then completely filled our virtual disk.

I couldn’t boot the VM, so I figured I would just attach the drive to another VM, remove the older backups, then add it back to the SQL VM. But, only a select number of files were available on the drive when I was browsing it from the other VM. Thus, I was unable to remove the old backups, leaving the disk still completely full. I then read a post that mentioned that I could delete a snapshot to free up some space. In retrospect, this was a dumb thing to do, but I did. It was the very first snapshot I captured (one I don’t need anymore).

So, now I have a VMDK, and the following error message:

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.

enter image description here

I am currently working through fixing the mismatched CIDs, but I still don’t know what to do about the full VMDK… can anyone explain how I can get into that virtual disk and delete a few files so that I can reconfigure the backups?

Update: View my answer below to see how I resolved this issue

If you do not have the time to work things out like I did, then HopelessN00b’s solution is the way to go (assuming you have backups of everything).

Answer

At this point, it’s going to be much quicker and easier to restore this VMDK from the backup copy you hopefully have. Snapshots are delta disks, and by deleting the earliest one, you have probably rendered the snapshots following it useless.

It may or may not be possible to untangle your snapshot chain and end up with a current, working virtual disk at all, so … well, learning experience. It’s safer to push backups, logs, or anything else that might run a disk out of space onto a non-system disk so that you can simply expand it, instead of trying to mount a system disk, free up space and get it bootable again.

Also, for future reference, snapshots do not take up space within the file system of the VMDK, so deleting them won’t free up space within the VDMK.

Attribution
Source : Link , Question Author : derekmx271 , Answer Author : HopelessN00b

Leave a Comment