Avatar of Andrew Gates
Andrew Gates
 asked on

vmdk empty after resizing Esxi 4.1

Hello,

We run out of space in 2 disks of a virtual machine (Windows Server 2008) that we have on a ESXI 4.1.

We looked in the VMWare Database for instructions on how to resize the vmdk files. We followed to the letter (removing the snapshots, applying the -X resize command) and it completed correctly. We did this with both disks (they were data disks, no OS disks).

After booting the VM, we found that the disks were empty!

We don't have an entire backup of the data (yeah, we know) and we tried to install programs to look for the data in the VM but found nothing.

Does anyone know if there is a way to recover this??
VirtualizationDisaster RecoveryDatabasesVMware

Avatar of undefined
Last Comment
Andrew Gates

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Disks have been corrupted somehow.

You made no backup before the changes ?

It might be worth, just try a VMware Conversion, and shrinking the disk back to the original size.

Was there a file system on the disk, after re-size ? What do you mean they were empty, not NTFS ?

you had to initialise the disk ? or did it state RAW ?

did you make sure you actually increased the disk, and not decreased the disk ?
Andrew Gates

ASKER
Hello Andrew,

First of all, thanks for the quick reply. Answering your questions:

- No, we didn't make a backup of the disks (we know, this was a great screw up).
- The vmdk files were there with the correct new size (the were 400GB and now 600GB).
- The disks were at NTFS and ok, but all the data inside of them is nowhere to be found (disk at 100% free space).
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

so after the expansion the disk were still NTFS, and there should have been 200GB un-allocated ?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Andrew Gates

ASKER
Yes, and after the expansion they were (so I guess that the proccess was ok). The problem is that all the files in the disks were gone.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

so did the files disappear, when the partition was expanded ?
Andrew Gates

ASKER
Yes, in both disks (.vmdk files)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

if the files disappeared after the expansion of the OS partition, how did you expand the OS Partition in the OS ?
Andrew Gates

ASKER
We didn't expand the OS partition. The VM has:

- 1x 200GB vmdk (with OS partition).
- 2x 400GB (now 600GB with no files inside) vmdk (each of them only with data). These were the ones we expanded.

Sorry if I didn't explain myself correctly, I'm in a kind of nearly-heart-attack state.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Okay, so the VMDK wad expanded from 400GB to 600GB

and the 400GB OS Data Partition NTFS still is "as is" but with no files, so in Disk Management you should see 200GB unallocated ?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Andrew Gates

ASKER
Exactly.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

chkdsk on the volume does not spot anything irregular ?
Andrew Gates

ASKER
Nope. Also tried with a recovery software, but with no results.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Andrew Gates

ASKER
Ok, will do that. Is there any other way?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I would hand over to experts.
Andrew Gates

ASKER
Ok, thanks for all the help anyway.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck