Solved

VMWare Recovery

Posted on 2011-03-18
9
557 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Isolated network on ESXi 6.5 8 135
Esxi host patches. 5 132
VMware:  Virtual switches and multiple NICs 9 135
Does VCenter is required or not for each Data Center location ? 10 68
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: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

751 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