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

ID10Tz
ID10Tz used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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

Author

Commented:
added the files back so you can see them all
error.bmp

Author

Commented:
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.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
tried going to your: Part 3 : Troubleshooting VMware snapshots , but the link failed on me.

Author

Commented:
restarted the services and re-added the vm again and its trying but I see its already called it vm instead its name

Author

Commented:
the vm adding has remained at 0% for almost an hour
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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.

Author

Commented:
yes it is. how do i fix?

Author

Commented:
also i noticed that the snapshot is from the failed one yesterday
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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.

Author

Commented:
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?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
it should be in the VMware Server Program Files folder?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
On my install, it is located at C:\Program Files\VMware\VMware Server.

Author

Commented:
going to make a copy of the files first then commit. should I stop all vmwar services?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Yes, I would.

Author

Commented:
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?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
change to the directory containing the vmdk, and use full path reference to vdisk....

Author

Commented:
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).
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
does the other disk convert correctly?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
do you have a clear idea why the snapshot has failed?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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

Author

Commented:
i dont believe so. Ive included a snapshot
error2.JPG
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
number of files has changed?

Author

Commented:
it looks like none. when I compare the back files to files i just tried to shrink they seem the same

Author

Commented:
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?

Author

Commented:
ok maybe I shoudve just read what you wrote earlier. Sorry.

Author

Commented:
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?

Author

Commented:
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.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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.

Author

Commented:
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).

Author

Commented:
also I can see that Jamis-000002.vmdk has a new modify date of today and correct time stamp.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Call VMware Support.

Author

Commented:
I did and I think their response we dont support vmware server 2.0 anymore. now Im scared
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Do you have a Backup you can restore?

Author

Commented:
were trying data recovery by getdata now
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
other alternatives are to investigate Disaster Recovery specialists

Kroll Ontrack
http://www.krollontrack.com/
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
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

Author

Commented:
on the data to copy should I leave it to its default setting?

Author

Commented:
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...
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
okay, good because this will leave you with a new VM, with merged snapshots.

Author

Commented:
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
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
if the VM is OFF, P2V, V2V, should be no issues, providing the data is not corrupt in the source.

Author

Commented:
very awesome. Start teaching bro.

Author

Commented:
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.

Author

Commented:
what vmware couldnot  hanccocka could
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
No prolems, Glad to help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial