Avatar of izharkhan
izharkhan
Flag for United States of America asked on

vmware disk space problem

Hi,
In our virtual environment i am not getting correct disk space size of virtual machines. some of VMs used space and provisioned space are 0 and others are wrong. for example if we set on 40gb space its showing 44.3 gb space. we used thik provisioning,
so please let me know how can i correct this problem so it will show me actual used space. atleast in which its says 0, that vms are running on 40 gb of disk space. so how i can get that value on used space. for ur reference i am attaching snap shot.
Thanks
Untitled.png
VMwareStorageVirtualization

Avatar of undefined
Last Comment
Paul Solovyovsky

8/22/2022 - Mon
Paul Solovyovsky

This is correct.  There is 5% overhead for VMDK encapsulation so a 40GB LUN will typically show 42GB used.  This is just for the VMDK.  but you also have to take your swap file into consideration.  If you provide a VM 4GB of RAM than it will create a 4GB swap file while the machine is running.  This can be mitigated by reserving memory for a VM but then it cannot be used by any other VM which is typically not practical.

You can browse the datastore and see the actual VMDK file sizes as a sanity check.
izharkhan

ASKER
Hi Paul,
thanks for quick reply. also can you tell me how can i get correct size of some of the VMs which showing me 0 size in used space and provisioned space? if you can check the snapshot i attached.
Thanks
Paul Solovyovsky

I don't think the snapshot was included, please post.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Paul Solovyovsky

nevermind, I didn't it on the intial post.  What type of storage are these on?
izharkhan

ASKER
vm snapshot
izharkhan

ASKER
SAN
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Paul Solovyovsky

Check this KB, you may need to shutdown and re-add the VMX file into inventory

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1029059
izharkhan

ASKER
Hi Paul,
i gonna try this tomorrow. if its there any other possibilities then also let me know so that i check everything together.
Thanks
Paul Solovyovsky

Let's try to re-register VMX first.  What model SAN are you running?  NFS or VMFS?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
coolsport00

In addition to what Paul mentions - VMs have log files as well as, potentially, snapshots that take up space on Datastores. VMware suggests when provisioning VMs to acct for appx 125% extra space (if converting from physical). This is to cover for 1. the (thick) VMDK, 2. logs, 3. snapshots.

Regards,
~coolsport00
izharkhan

ASKER
we are running VMFS.
coolsport00

Correct - Datastores are VMFS....well, and NFS if you're using a NAS device. But both house VMs and the VM directories have the same files that take up space.

Were you able to remove the VMs from Inventory (or at least 1), then re-add to see if the data in your VM Tab showed appropriately?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
izharkhan

ASKER
while i am trying to add vm in inventory i am getting this error msg. "the object or item referred to could not be found"
can someone help me with this error.
Paul Solovyovsky

Are browsing to the vmx file?  If so what is the size the vmx file?
izharkhan

ASKER
yes i can browse the .vmx file. its size is 3.12kb.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
Paul Solovyovsky

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
izharkhan

ASKER
if you can give me step by step that will help me. because i dont want to take more risk on that.
Paul Solovyovsky

Please provide a screenshot of the datastore folder that the VM is in.