Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how do i fix a Snapshot that did not complete and now the vm shows up as unknown (invalid)

Posted on 2012-06-11
48
Medium Priority
?
4,387 Views
Last Modified: 2012-06-27
The vm is being hosted on a windows server 2003 which is running vmware server 2.0. Tried to create a snapshot which failed. The I removed the vm but didnt delete the files then re-added the vm to only get the following:

The selected virtual machine is not recognized on this system. The cause of this problem may be that the virtual machine's .vmx file is corrupted, or that the virtual machine version is newer than is recognized by the host. You can remove the virtual machine from the inventory if you believe that it is not recoverable.Click the link below to remove the virtual machine from the inventory.Remove Virtual MachineTo help diagnose the issue, you can check the virtual machine files at their last known location: "[server] server.vmx"

I have removed the lck & log files from the datastore and restarted the services to no avail. This is our finance server and I need to get it back up quick. please advise
0
Comment
Question by:ID10Tz
[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
  • 27
  • 21
48 Comments
 
LVL 123
ID: 38072408
The issue that you have is by removing the Virtual Machine from the Inventory, has removed reference to the fact that the VM has a snapshot attached, when you added it back again to the inventory.

Can you screenshot the list of files that you have, and upload here.

some background on Snapshots, read my EE Article

HOW TO: VMware Snapshots :- Be Patient
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38072423
added the files back so you can see them all
error.bmp
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38072431
was going to apply a patch to our finance application but it never completed then it failed. when I tried to restart the services i got the unknown (invalid). we were going to apply the patch then move it to our vcenter infrastructure. now Im stuck.
0
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 
LVL 1

Author Comment

by:ID10Tz
ID: 38072439
tried going to your: Part 3 : Troubleshooting VMware snapshots , but the link failed on me.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38072508
restarted the services and re-added the vm again and its trying but I see its already called it vm instead its name
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38072612
the vm adding has remained at 0% for almost an hour
0
 
LVL 123
ID: 38073350
0
 
LVL 123
ID: 38073352
Okay, I've had a look a the screenshot is this a two disk VM?

if so you have snapshots attached to both virtual disks.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073461
yes it is. how do i fix?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073470
also i noticed that the snapshot is from the failed one yesterday
0
 
LVL 123
ID: 38073564
Okay, what you are going to have to do is create a new virtual disk, by merging the existing snapshots into the parent disk as follows

If you want to commit the data to the base disk you can use  vmware-vdiskmanager to convert the disk. Close the VMware Server  Console first.

To commit the changes to the disk we first have to convert the disk to  another disk format, the following command converts the disk (including  the snapshot) to a new monolithicFlat disk named newtest.vmdk.

vmware-vdiskmanager -r test-000001.vmdk -t 2 newtest.vmdk

so you would use the following commands on both your virtual disks

vmware-vdiskmanager -r Jamis-000002.vmdk -t 2 JamisNew.vmdk

vmware-vdiskmanager -r Jamis-0-000003.vmdk -t 2 JamisNew0.vmdk

the above commands will create new virtual disks, which you can then add to a virtual machine. BUT, you must ensure you have enough disk space to complete the above operation.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073574
ok i dont have the vmware-vdiskmanager. VMware server 2.0 doesnt have it. or is that something I download? and are the commands you listed done in a specific directory?
0
 
LVL 123
ID: 38073587
it should be in the VMware Server Program Files folder?
0
 
LVL 123
ID: 38073589
On my install, it is located at C:\Program Files\VMware\VMware Server.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073600
going to make a copy of the files first then commit. should I stop all vmwar services?
0
 
LVL 123
ID: 38073724
Yes, I would.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073777
i get failed to convert disk: A file was not found (0x1900000004). Im guessing but since my vm are in a directory other than the default I have notate in the commands?
0
 
LVL 123
ID: 38073792
change to the directory containing the vmdk, and use full path reference to vdisk....
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073902
tried the following:

C:\Program Files (x86)\VMware\VMware Server>vmware-vdiskmanager -r d:\vm\jamis\J
amis-000002.vmdk -t 2 d:\vm\jamis\JamisNew.vmdk
Creating disk 'd:\vm\jamis\JamisNew.vmdk'
Failed to convert disk: The called function cannot be performed on partial chain
s. Please open the parent virtual disk (0x500003e83).
0
 
LVL 123
ID: 38073914
does the other disk convert correctly?
0
 
LVL 123
ID: 38073941
do you have a clear idea why the snapshot has failed?
0
 
LVL 123
ID: 38073994
you could try the following in the VMX

change the disk reference to

Example:

ide0:0.fileName = "Jamis-0.vmdk "


would become

ide0:0.fileName = "Jamis-0-000003.vmdk"

this is provided the snapshot chain is intact
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38073998
i dont believe so. Ive included a snapshot
error2.JPG
0
 
LVL 123
ID: 38074042
number of files has changed?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074109
it looks like none. when I compare the back files to files i just tried to shrink they seem the same
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074145
as instructed here are the commands Im trying to use:

C:\Program Files (x86)\VMware\VMware Server>vmware-vdiskmanager -r d:\vm\jamis\J
amis-000002.vmdk -t 2 d:\vm\jamis\JamisNew.vmd

should i not start with the jamis.vmdk?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074226
ok maybe I shoudve just read what you wrote earlier. Sorry.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074313
I have included the vmx unchanged in this posting. The question I have is that the ide 0 is set to: ide0:0.filename = "auto detect" & the scsi0:1filename = "Jamis-0-000003.vmdk". should set the scsi0:1filename to "auto detect" as I change the ide0:0 "auto detect" to Jamis-0-000003.vmdk?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074608
when I am in the directory that has the vmdk i get:

D:\vm\Jamis>C:\Program Files (x86)\VMware\VMware Server>vmware-vdiskmanager -r D
:\vm\Jamis\Jamis-000002.vmdk -t 2 D:\vm\Jamis\JamisNew.vmdk
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
0
 
LVL 123
ID: 38074754
I'm just checking to see if you can convert any of the snapshots.

okay, you are using SCSI disks, so just check the disks names are correct, they should be pointing to the last snapshot filename

e.g. Jamis-0-000003.vmdk

you need to use quotes

"C:\Program Files (x86)\VMware\VMware Server\vmware-vdiskmanager" -r D
:\vm\Jamis\Jamis-000002.vmdk -t 2 D:\vm\Jamis\JamisNew.vmdk
0
 
LVL 123
ID: 38074766
Snapshot files are difficult to work with. If this does not work, you best course of action would be to esclate a call to VMware Support to see if they can assist, to rectify this issue quickly.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074926
ok so the command works but I am getting the following:

D:\vm\Jamis>"C:\program Files (x86)\VMware\VMware Server\vmware-vdiskmanager" -r
 D:\vm\Jamis\Jamis-000002.vmdk -t 2 D:\vm\Jamis\JamisNew.vmdk
Creating disk 'D:\vm\Jamis\JamisNew.vmdk'
Failed to convert disk: The called function cannot be performed on partial chain
s. Please open the parent virtual disk (0x500003e83).
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38074941
also I can see that Jamis-000002.vmdk has a new modify date of today and correct time stamp.
0
 
LVL 123
ID: 38075042
Call VMware Support.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075060
I did and I think their response we dont support vmware server 2.0 anymore. now Im scared
0
 
LVL 123
ID: 38075098
Do you have a Backup you can restore?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075107
were trying data recovery by getdata now
0
 
LVL 123
ID: 38075117
other alternatives are to investigate Disaster Recovery specialists

Kroll Ontrack
http://www.krollontrack.com/
0
 
LVL 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38075125
you could try using VMware Converter, to see if it can read the VMX file and convert to a new VM.

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.0
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075249
on the data to copy should I leave it to its default setting?
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075253
I am sure the time on will changebut it read everything fine is now Im waiting fo rthe 1 hour & 6 minutes for the convert...
0
 
LVL 123
ID: 38075354
okay, good because this will leave you with a new VM, with merged snapshots.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075379
do you think the sql data and financial application will survive the convert intact? tried this once before with a diff version for a diff vm and it was not good. been reading your articles and how-to's and its more informative than what Ive been getting from sourcespring (education division from VMware). And in fact this is a horrible work experience were going thru but the learning experience is the best I could have asked for. Kinda of boot camp
0
 
LVL 123
ID: 38075413
if the VM is OFF, P2V, V2V, should be no issues, providing the data is not corrupt in the source.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38075418
very awesome. Start teaching bro.
0
 
LVL 1

Author Comment

by:ID10Tz
ID: 38076049
ok so now the server is booting up in the remote console on the host and I am logged in & verified data. Were good. I guess the lesson here dont screw with VMware during the frickN snapshot even if it looks like its hanging @ 95%! My next question is going to be how to (next posting) mover everything my vcenter. thanx again.
0
 
LVL 1

Author Closing Comment

by:ID10Tz
ID: 38076053
what vmware couldnot  hanccocka could
0
 
LVL 123
ID: 38076268
No prolems, Glad to help!
0

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

718 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