VMware – Changed Block Tracking

This is just a brief post for my own reference. A friend of mine had some backup problems on a VM recently. Seems they were using VMware’s Changed Block Tracking (CBT) and had since added a physical-mode RDM to the VM. This caused problems and things stopped working. The quick solution was to clone the VM and delete the stale data. I’m sure there’s a more thorough solution. But I don’t like to scratch the surface too much. CBT has been around a while, and is a pretty nifty feature. The VMguy has a good post on CBT and how it works. Duncan has a bit more info. And VMware themselves have some useful KB articles here and here.

You know you’re in trouble when …

You find emc141773 to be a possible solution: “Can a metaLUN creation be undone without destroying its components?”. I was trawling through EMC’s powerlink looking for something to do with metaLUNs and came across this gem:

“Problem: A metaLUN was created (as a concatenated expansion) on the wrong LUN. It was not expanded from the operating system.

Change: Created a new LUN that is to be used to create a metaLUN by expanding an existing LUN. However, instead of selecting the newly created LUN, another LUN was selected by mistake during the expansion process.

Fix: A metaLUN expansion cannot be reversed. It is not possible to remove a LUN from an expanded LUN or
metaLUN without losing data. Instead, the metaLUN must be destroyed. Destroying a metaLUN unbinds all the LUNs in the metaLUN, and then destroys the metaLUN. The data on the unbound LUNs will be lost.”

I feel kind of sorry for whoever found that one out the hard way :)