Solved

VMWare Recovery

Posted on 2011-03-18
9
555 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 16

Expert Comment

by:danm66
ID: 35169115
oh, you didn't backup/restore the .vmx???
0
 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:

832 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