Parent Disk CID Mismatch - VMware

From Michael's Information Zone
Revision as of 10:32, 20 September 2018 by Michael.mast (talk | contribs) (Created page with "==Problem== ===Environment=== ESXi and VSphere are using a NetAPP appliance for NFS storage. NetAPP is set to create snapshots daily and keep for several days. ===Steps to rep...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Problem

Environment

ESXi and VSphere are using a NetAPP appliance for NFS storage. NetAPP is set to create snapshots daily and keep for several days.

Steps to reproduce

  • Create a couple snapshots of the VM using vpshere
  • Move the disks to another NFS volume
  • Change the location of the disk in the VM settings using vpshere.
  • Some how obtain a corrupted VM that can not be deleted
  • Recreate the VM and add the exisitng disks to it.

At this point, one of the three disks had a couple snapshots that could not be consolidated or delete. But the drive was usable. At one point I messed up the permissions on the disk, and thought it would be easier to restore the disk from a NetAPP snapshot. However vsphere would not copy the disk because it was "locked" (even though it was in a snapshot directory).

  • Delete the problem disk.
  • Download the disk from the NetAPP snapshot directory
  • Upload the disk to the VM directory.

Now I had the disk restored, but it would not mount. The error message reported missing dependencies. Ends up the snapshots were located in two separate VM directories. The original that died and in the rebuild.

  • Download the disk files for both VM directories, from the NetAPP snapshot.
  • Replace the disk files with the ones downloaded.

For the next couple days the disk ran as expected. However, an admin reached out to me saying the disk no longer was functioning. It ended up that the disk was referencing the snapshot directory! WTF?!?! Of course the snapshot was old and was deleted. Without the files the disk could not stay mounted.

  • Download ALL files from the earliest snapshot available just in case.
  • Delete the disk files.
  • Upload the backups.
  • Experience the CID mismatch


Solution

So it ends

[1]