VMware

This Question is Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
9 Replies Last post: Mar 7, 2007 1:58 PM by SV  

Recovering from broken snapshot chain? posted: Nov 22, 2006 6:05 PM

Click to view jones.matt's profile Novice 26 posts since
Jun 20, 2005
Here's the situation: I have modified the base VMDK of a snapshot set, breaking the entire chain.

Here's how I shot myself in the foot:
1. Shutdown VM
2. Extend base VMDK from 10GB to 30GB
3. Attach base VMDK to utility VM and extend volume using diskpart
4. Shutdown utility VM
5. Fail to boot server because of my bonehead move

Is there a way to recover? I've already restored the server, but I need just a few files I know are after the last snapshot. If I can just recover those files, I will just copy them to the newly restored VM manually.

Thanks for any help or words of advice you can provide!

Re: Recovering from broken snapshot chain?

1. Nov 23, 2006 1:40 AM in response to: jones.matt
Click to view mittell's profile Champion 3,096 posts since
Apr 25, 2006
This is a difficult one, the answer is it's going to be quite hard to get it working but you might be able to bodge the VM to accept a snapshot delta if you've restored the base VMDK to it's previous un-modified state.

Take a look at this thread: http://www.vmware.com/community/thread.jspa?threadID=62412&tstart=0

Re: Recovering from broken snapshot chain?

3. Nov 24, 2006 10:57 AM in response to: jones.matt
Click to view mittell's profile Champion 3,096 posts since
Apr 25, 2006
Unfortunately if you tried to boot the base VMDK it'll probably have been modified, meaning the snapshot deltas cannot be applied. Youir best bet is probably to restore from backup I'm afraid.

Re: Recovering from broken snapshot chain?

5. Nov 25, 2006 7:07 AM in response to: jones.matt
Click to view soleblazer's profile Hot Shot 228 posts since
May 25, 2006
Databases are always a tricky lot. Technically ESXranger may have helped you here, but the fact of the matter is any database is going to have issues if you simply copy the files hot, without putting it into a certain mode. Oracle has RMAN, etc.

Your best bet may be to simply write a script that runs mysqldump , and dumps to a localfilesystem, that is a flat file, then Ranger or VCB would backup the running VM and the dump.

Re: Recovering from broken snapshot chain?

7. Nov 26, 2006 10:38 PM in response to: jones.matt
Click to view jhanekom's profile Master 1,085 posts since
May 13, 2005
Excellent piece of work! Will keep this as a reference, for sure.

I find the whole multi-level VMDK snapshot-thing very innovative but extremely prone to confusion.

Recently had a customer asign both the original VMDK and one of the snapshots to the same virtual machine. Talk about confusion.

Re: Recovering from broken snapshot chain?

9. Mar 7, 2007 1:58 PM in response to: jones.matt
Click to view SV's profile Expert 317 posts since
Oct 1, 2003
We just published KB article 1646892 on the topic. Just FYI...

http://kb.vmware.com/kb/1646892

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities