Recreate header/descriptor vmdk files & recover failed Storage VMotion (DMotion)
I had a another problem with Storage VMotion yesterday and found out a couple of interesting things.
Firstly, there is a now a Knowledge Base article explaining how to recreate vmdk header files if they are missing. This was news to me, so here’s the link:
http://kb.vmware.com/kb/1004232
Secondly, was discovering a sightly different approach to recovering a failed Storage VMotion (DMotion). My previous experiences had involved something along these lines:
http://communities.vmware.com/message/999890#999890
Which basically breaks down to creating another snapshot, so that you will then be able to force a vmware-cmd …/vmname.vmx removesnapshots
However this approach was messy, didn’t always commit properly and required editing the vmx file.
So yesterday, when facing a similar problem, I saw it resolved in slightly different way. We started by checking the linking of parentCID to CID in the vmdk header files, as we had an issue with all the different DMotion snapshot files. Then to commit the snapshots, we used vmkfstools -i <last_snapshot.vmdk> <destination.vmdk> to clone the disk to another file. By sending the clone command to the last snapshot header file, it knew to roll all the chained snapshots, along with the original disk, into this new copy.
Obviously this method requires extra space for the second copy and can take longer, but you have the advantage that the original are untouched.
Update:
VMware has just released a new KB article covering the whole process: http://kb.vmware.com/kb/1007849
Forbes Guthrie
Recent Posts
- vSphere 5 vReference Card released
- Cisco UCS boot from iSCSI SAN – ESXi design consideration
- vSphere 5 vReference card – Storage section
- Does 2008 R2 Failover Clustering require a change to the Notify Switches policy?
- vSphere 5 vReference card – Host section
- vSphere 5 vReference card – Install section
- Auto Deploy design concern
- vSphere 5 vReference card – vCenter section
- vSphere 5 vReference card – VM section
- vSphere 5 vReference card – availability section
Recent Comments
- escorts service on VMworld: Host Profiles
- free antivirus software download on Firewall port connection diagram
- Tim Sommer on vSphere 5 Card
- vJohnnyF on vSphere 5 Card
- Forbes Guthrie on Cisco UCS boot from iSCSI SAN – ESXi design consideration
- Chris on Cisco UCS boot from iSCSI SAN – ESXi design consideration
- Forbes Guthrie on vSphere 5 Card
- Forbes Guthrie on vSphere 5 Card
- harold on Auto Deploy design concern
- MarcelVanOs on vSphere 5 Card
Twitter
- Eek! This is big >> RT @DuncanYB: New Article: No Jumbo frames on your Management Network - http://t.co/VjoCtOqz : 2 weeks ago
- RT @ryanbirk: @forbesguthrie ...owe you a beer! Read all 50 pgs of your notes and passed the VCI-5 exam this morning << Congrats, great news : 2 weeks ago
- Working with Host Profiles today. Clunky, but a great tool. : 2 weeks ago
- @csilvertooth Frustrating yeah, they maybe need a popup warning message check when you start it without correct permissions. #VMware : 2 weeks ago
- RT @joshcoen: Passed VCP5 this morning. Big shout out to @jaslanger and @forbesguthrie #invaluableresources. << Congrats! : 2 weeks ago
- RT @cwjking: @forbesguthrie Someone commented on my blog to link to your site for VCP5 related stuff. http://t.co/7KqZsNuv << thx : 2 weeks ago
- @sanchezhutz Nice, I hear lots of good things about those. David is nice chap. : 3 weeks ago
- .RT @cxi: I'll be in Vancouver the week of the 23rd ;) << Great. Anyone else in Vancouver up for vBeers? I'm free 23,25,27 /cc @astorrs : 3 weeks ago
- @sanchezhutz Best of luck Sanchez! When are you planning to take it mate, work paying for it? : 3 weeks ago
- New blog post: vSphere 5 vReference Card released - http://t.co/4rYEPsM9 : 3 weeks ago





