VMware Cloud Community
JimKnopf99
Commander
Commander

VM Show 0 MB Disk Space

Hi,

i don´t know why but one of my vm´s was missing an vmdk file. It is still running!

The Used Storage for that machine was only showing the size of the second disk!

So i decide to create the vmdk file new.

VMware KB: Recreating a missing virtual machine disk (VMDK) descriptor file

After recreating the vmdk file, the used storage for the vm Show the correct size. But when i edit the vm Settings and look at the disk size of that vm it tells me 0 MB

disksize.JPG

Any ideas how to fix that? Or is there something wrong with the vmdk file?

Frank

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
10 Replies
a_p_
Leadership
Leadership

What's the size of the virtual disk? 2TB ?

André

0 Kudos
JimKnopf99
Commander
Commander

I am not at the office, but I guess the size was 25 or 30 gb.

Definitely not 2 tb

Frank

Message was edited by: a.p. - removed email footer

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
a_p_
Leadership
Leadership

Ok, in this case please provide the exact size in bytes of the flat.vmdk file and attach the descriptor file you created to a reply post once you're back in the office.

André

0 Kudos
JimKnopf99
Commander
Commander

Back in Office yesterday. And now, the vCenter is showing the correct size of the disk.


Maybe it took some time to recognize the new vmdk file.

Thanks

Frank

If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
tom_spirit
Contributor
Contributor

Hi, although this is old post, I had a similar issue so I wrote an article on how I solved this problem.

Tom Spirit: vSphere | A VM is showing disk size of 0B

The reason for this is probably because the VM is running on snapshots and it has been interupted somehow. The ESXi host doesn't see the snapshots.

To solve this basicly all you have to do is power down the VM. Unregister it, then register again (on another host if possible). Check for snapshots and if there are snapshots commit them and you are good to go.

0 Kudos
silacho
Contributor
Contributor

0 Kudos
Zentis
Contributor
Contributor

This Blog here helped me a lot ..

Link:

Virtual machine show 0MB disk space – My WebPage

cause in my case (vcsa 6.5) this doenst work for me:

  • remove machine from invertory and add it back on second host
  • restore machine from backup
  • check snaphosts (no one snaphot was used)
  • check VMX file and search inside if the machine pointing to snaphoted VMDK (usually 00001.vmdk)
SXWN48
Contributor
Contributor

This works great, powershell

Get-VM NameofVM | Get-View | %{$_.reload()}

Alex_Romeo
Leadership
Leadership

Hi,

VM showing disk size is 0 MB - IT Gaiden

Alessandro Romeo

Blog: https://www.aleadmin.it/
0 Kudos
KrishnaChippa
Contributor
Contributor

superb, it worked.

0 Kudos