VMware Cloud Community
Steve_ZN
Contributor
Contributor

Storage Policy showing incorrect usage

Hi All

When going to change storage policies for a VM, the reported usage and savings of the VMs is very inaccurate.

It makes me nervous to change storage policies while this is showing.  This is happening for multiple VMs.

Please see the example screenshots below

Showing only 14GB in use, when the actual disk size is around 1.6TB and usage is around 1.1 TB

pastedImage_0.png

Actual usage inside the VM OS

pastedImage_2.png

Showing potential saving of only 4GB when changing from RAID 1 to RAID 6

pastedImage_1.png

Has anyone else seen this issue?

Thanks

Steve

7 Replies
TheBobkin
Champion
Champion

Hello Steve,

Can you check whether you have a snapshot on that vmdk?

Storage Policies only apply these to the last Object in the chain which would be the last snapshot if present, thus it is imperative that you consolidate these before attempting to change Storage Policies:

VMware Knowledge Base

Bob

0 Kudos
Steve_ZN
Contributor
Contributor

Hi Bob

You may have been right, there may have been a backup running, as it is now showing higher usage, but it is still incorrect (there is over 1TB used)

pastedImage_0.png

The odd thing is, vSAN default storage policy is what it's currently using, but it's showing it will save 1.77 TB by using that policy?

Thanks

0 Kudos
Steve_ZN
Contributor
Contributor

Let me back this up with a different VM, also showing drastic differences (No active snapshots)

pastedImage_0.png

pastedImage_1.png

0 Kudos
TheBobkin
Champion
Champion

Hello Steve,

You should try looking at this with more detail and should also consider ruling out other possible causes of any incorrect information if it is indeed incorrect (e.g. using an incompatible vCenter version to manage the hosts, configuration of the vmdks is non-standard e.g. shared disks, vmdk deployed/restored through non-standard means, data is in an impaired state etc.).

With regard to what details you should check, start with:

- Whether the Objects in question are anything other than 'compliant' with their applied Storage Policy.

- What the 'vSAN Default Storage Policy' rules are - these can be changed e.g. my 'vSAN Default Storage Policy' isn't necessarily the same as your 'vSAN Default Storage Policy'

- What the layout and usage of the VM, this can be easily checked via a number of means, simplest (with adequate detail) being to get this info from RVC with vsan.vm_object_into against the VM or vsan.object_info against the vmdk in question (or 'esxcli vsan debug object list' run on a host).

Bob

SrVMwarer
Hot Shot
Hot Shot

Would it be a different  behavior while these VMDK files is thin or thick provisioned ?

Just asking a a new vSAN learner, Thanks in Advance for your help

Regards, İlyas
0 Kudos
Steve_ZN
Contributor
Contributor

Hi Bob

Yes it is compliant

pastedImage_0.png

This is a new VM (Deployed towards the end of last year) so no restores, detach/re-attach, or any other actions have been performed on this VM, and it is thin provisioned.

My Default policy is RAID1, which is why I want to move it to RAID 6, but I'm not sure why that would have any impact on the incorrect details I am seeing?

pastedImage_0.png

I've pulled the vsan.vm_object_info details, but I'm not sure what I am looking for here

VM SVRWxxx02:

  Disk backing:

    [vsanDatastore] 71585e5d-4ece-3201-e9a1-246e96bcyyyy/SVRWxxx02.vmdk

    [vsanDatastore] 71585e5d-4ece-3201-e9a1-246e96bcyyyy/SVRWxxx02_1.vmdk

    [vsanDatastore] 71585e5d-4ece-3201-e9a1-246e96bcyyyy/SVRWxxx02_2.vmdk

Thanks

Steve

0 Kudos
TheBobkin
Champion
Champion

Hello Steve,

Unfortunately that is not the full output of the command I suggested - this should return the component placement and size layout for all components of all Objects that make up the vmdk Objects associated with that VM.

I was suggesting to check this output versus what you are seeing in the UI so that we can determine what the actual structure and logical + physical usage of the data components are (which is generated from querying CMMDS and thus should be the source of truth regarding the size of things here).

Bob

0 Kudos