flat.vmdk file

I did a migrate which failed, the machine then failed to start saying file missing.
I removed the Second drive (data drive) and the machine now but up, when i went to reattach the second drive it didn't recognize a drive there at all.
I browsed to the store were the drive was kept and all that is there is the server-flat.vmdk file

 I did a Google on it and to repair it they suggest creating a new drive the same size copying the flat.vmdk into the new directory and renaming it to the new file then it should work and i get my data back.

is this correct?
is there a quicker way?
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.

Yes thats correct probably the vmdk disc descriptor file is corrupted, flat vmdk file is the actual data for your virtual drive, when you create a new vmdk it will create a proper vmdk disc descriptor file for the new flat vmdk file, overwrite this new flat vmdk file with your existing flat vmdk file, ensure the flat vmdk file name is correct in the disc descriptor file
You can use cat or vi to view the content of the disc descriptor file
Btw, did you try to attach the vmdk to a temp VM just to test it?
Have you looked in the directory that the file exists in to what files you have there?  You can do this through the console/putty and look in /vmfs/volumes/{directory where the vmdk exists}

You should see two files per hard disk.  an *-flat.vmdk and *.vmdk.  If not, which file do you see? (probably the *-flat.vmdk).

Your suggestion should work but I would test it first.


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
alumwellAuthor Commented:
I will test it thanks
I have to wait 7 hours for a copy of the file as the location at the moment isnt big enough for me to create the same size Disk :(
well, you can create the dummy vmdk elsewhere, you just need the small vmdk disc descriptor file
view the content of the VM directory, ls -lah /vmfs/volumes/your_datastore/your_vm/*.vmdk
you will see what i mean by small
you can even edit the existing vmdk disc descriptor file if you are familiar with vi or nano so you dont even have to copy the flat vmdk file if you dont want to, this is just doing it different way but maintain the same objective, and probably the quicker way as you wanted
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

From novice to tech pro — start learning today.