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

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
LVL 1
ID10TzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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
ID10TzAuthor Commented:
added the files back so you can see them all
error.bmp
ID10TzAuthor 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.
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

ID10TzAuthor Commented:
tried going to your: Part 3 : Troubleshooting VMware snapshots , but the link failed on me.
ID10TzAuthor Commented:
restarted the services and re-added the vm again and its trying but I see its already called it vm instead its name
ID10TzAuthor Commented:
the vm adding has remained at 0% for almost an hour
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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.
ID10TzAuthor Commented:
yes it is. how do i fix?
ID10TzAuthor Commented:
also i noticed that the snapshot is from the failed one yesterday
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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.
ID10TzAuthor 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 ConsultantCommented:
it should be in the VMware Server Program Files folder?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
On my install, it is located at C:\Program Files\VMware\VMware Server.
ID10TzAuthor 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 ConsultantCommented:
Yes, I would.
ID10TzAuthor 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 ConsultantCommented:
change to the directory containing the vmdk, and use full path reference to vdisk....
ID10TzAuthor 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 ConsultantCommented:
does the other disk convert correctly?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
do you have a clear idea why the snapshot has failed?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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
ID10TzAuthor Commented:
i dont believe so. Ive included a snapshot
error2.JPG
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
number of files has changed?
ID10TzAuthor Commented:
it looks like none. when I compare the back files to files i just tried to shrink they seem the same
ID10TzAuthor 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?
ID10TzAuthor Commented:
ok maybe I shoudve just read what you wrote earlier. Sorry.
ID10TzAuthor 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?
ID10TzAuthor 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 ConsultantCommented:
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 ConsultantCommented:
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.
ID10TzAuthor 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).
ID10TzAuthor 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 ConsultantCommented:
Call VMware Support.
ID10TzAuthor 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 ConsultantCommented:
Do you have a Backup you can restore?
ID10TzAuthor Commented:
were trying data recovery by getdata now
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
other alternatives are to investigate Disaster Recovery specialists

Kroll Ontrack
http://www.krollontrack.com/
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ID10TzAuthor Commented:
on the data to copy should I leave it to its default setting?
ID10TzAuthor 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 ConsultantCommented:
okay, good because this will leave you with a new VM, with merged snapshots.
ID10TzAuthor 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 ConsultantCommented:
if the VM is OFF, P2V, V2V, should be no issues, providing the data is not corrupt in the source.
ID10TzAuthor Commented:
very awesome. Start teaching bro.
ID10TzAuthor 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.
ID10TzAuthor Commented:
what vmware couldnot  hanccocka could
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
No prolems, Glad to help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.