Solved

VMWare Recovery

Posted on 2011-03-18
9
554 Views
Last Modified: 2012-05-11
We had a massive iSCSI SAN failure and the raid array got scrambled.  We ended up reconfiguring the array on the server as it was hopelessly corrupt.  We then restored the VMDK images to the server.  

The problem is that one of the servers had a snapshot made.  I am trying to figure out how to re-add the host to ESX4.1i with the snapshot image coming up as the boot image.  It should of been committed earlier, but for some reason it was not done.

So my question is in ESXi, how do I add a host and have it know about the snapshot image?
0
Comment
Question by:dlainc
  • 4
  • 4
9 Comments
 
LVL 16

Expert Comment

by:danm66
ID: 35169014
when you add the VM and go into edit settings, do you see that it is pointing to the snapshot file for the disk?  it's usually got -00000#.vmdk name when you click on the disk.  If that's there, then you can boot up the VM and when you're ready to commit the snapshot, take another snapshot, then do a delete all and it should rollup all snapshots into the base disk.
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 35169039
If you don't have the images you're stuck.  Since you did a restore and snapshots are not there you're not going to be able to connect..especially if you have snapshots but they are from a different time then the restore.  The data would would be corrupt either way

0
 

Author Comment

by:dlainc
ID: 35169098
I have all of the vmdk files.  I just cannot create a new machine because it does not accept that the snapshot vmdk as a valid disk.

When I mount the base disk, it does not show the associated snapshots with the machine.
0
 
LVL 16

Expert Comment

by:danm66
ID: 35169115
oh, you didn't backup/restore the .vmx???
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 16

Expert Comment

by:danm66
ID: 35169135
you could try using vmkfstools form the command line to consolidate the snapshot into a new disk, too.  'vmkfstools -i olddiskname.vmdk newdiskname.vmdk'  where olddiskname.vmdk is the name of the last snapshot descriptor.
0
 

Author Comment

by:dlainc
ID: 35169141
I have everything in the directory.  I have never had to do this sort of restore.

Will this work?

Create the new virtural machine (to create the directory)

Copy all the old files with snapshots into the directory?  Or do I need to create a snapshot first so the ESXi server knows to look for a snapshot file?
0
 

Author Comment

by:dlainc
ID: 35169155
Sorry if this is a bit disjointed, I am a little sleep deprived right now.

One of the problems I am having is that since we rebuilt the entire iSCSI array, none of the directories EXACTLY match what was there before.  I am looking at the vmkfstools command right now to see if that will accomplish the merging of the two vmdk files together.
0
 
LVL 16

Accepted Solution

by:
danm66 earned 250 total points
ID: 35169160
If you have all of the files, including the .vmx in the directory, use the datastore browser to browse to the directory and right-click on the .vmx file and choose 'add to inventory'.  That will register the VM on the host with all of the original VM settings.

the datastore browser if is started by going to Configuration|Storage and then right-clicking on the datastore you want to look at, then select 'browse datastore'
0
 

Author Comment

by:dlainc
ID: 35169228
danm66:  That is exactly what I needed to have.  I am reporting the files right now since I started up the base vmdk image so it has a more recent timestamp than the snapshot.  As soon as it finishes porting, I will do what you suggested.

Thank you.  I will confirm this solution later tonight.

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now