Solved

VMWare ESXi 4.1 - Accidentally deleted config files

Posted on 2014-01-08
7
892 Views
Last Modified: 2014-01-08
In the process of cleaning up a VMWare 4.1 all the configuration files for a running Virtual Server were deleted.  The actual hard disk files were not deleted because they were in use.  I thought I could just shut down the system and build a new VM and choose to add the Hard Disks that were previously created.  I shut down the VM and created a new Virtual Machine but when I go to add the Hard Drives the files are not listed.  I can see the files when I browse the DataStore.  It looks like there was a snapshot that had been created.  I have the following files...

Caroline-XXXXXX.vswp
Caroline-flat.vmdk
Caroline-000001-delta.vmdk

The delta file has today's date.

Please help.

Thanks,
John
0
Comment
Question by:LiberatingInsight
[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
  • 3
7 Comments
 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39765660
can you check you have just two VMDKs?

you may need to do this via SSH?

you should have

Caroline-flat.vmdk
Caroline.vmdk
Caroline-000001-delta.vmdk

do you have Caroline.vmdk ?

also screenshot would be good?

It looks like you are missing the descriptor file?

this can be re-created?

Recreating a missing virtual machine disk (VMDK) descriptor file
0
 

Author Comment

by:LiberatingInsight
ID: 39765744
I do not have the Caroline.vmdk file.  Here is a screenshot of browsing the datastore.


I'm going to try the recreating the VMDK descriptor file.  Is there any special concerns since there is a Snapshot?
Screen-Shot-2014-01-08-at-11.52..png
0
 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39765949
The descriptor has been deleted.

Create the descriptor as normal.

and then add the snapshot delta disk, because it chains the parent, or I could show you how to clone the disk, so you have a single parent disk.
0
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

 

Author Comment

by:LiberatingInsight
ID: 39766061
I created the descriptor files for both the main and the snapshot vmdk's.  When I attempt to add the disks to the new Virtual Machine I get an error:
An internal error occurred in the vSphere Client.
Details: Object reference not set to an instance of an object.

I ran the vmkfstools -q on both files and they both came back with "... is not an rdm" which I think means both disks are good.

Not sure where to go.

I was able to mount the Caroline.vmdk drive and booted the VM and it came up and started windows but I need the Snapshot data.
0
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39766108
Now that you have started the VM on the parent disk, without the snapshot attached, you will now have to fix the mismatching CIDs!

see here

VMware KB: Resolving the CID mismatch error: The parent virtual ...

once you have done this, the best think would then create a new virtual disk, using the clone technique

vmkfstools -i <most recent snapshot file name> /vmfs/volumes/<temp folder name>/<newfilename.vmdk>

and then newfilename.vmdk is your new virtual machine disk to attach to your VM.
0
 

Author Comment

by:LiberatingInsight
ID: 39766392
Cloning the disk fixed it.  Thank you VERY MUCH!!!
0
 
LVL 121
ID: 39766404
No Problems...Glad to help!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

724 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