7 Replies Latest reply on Jan 14, 2020 10:10 AM by TheBobkin

    Storage Policy showing incorrect usage

    Steve_ZN Lurker

      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

       

      Actual usage inside the VM OS

       

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

       

       

      Has anyone else seen this issue?

       

      Thanks

      Steve

        • 1. Re: Storage Policy showing incorrect usage
          TheBobkin Virtuoso
          VMware EmployeesvExpert

          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

          • 2. Re: Storage Policy showing incorrect usage
            Steve_ZN Lurker

            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)

             

             

            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

            • 3. Re: Storage Policy showing incorrect usage
              Steve_ZN Lurker

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

               

               

              • 4. Re: Storage Policy showing incorrect usage
                TheBobkin Virtuoso
                VMware EmployeesvExpert

                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

                1 person found this helpful
                • 5. Re: Storage Policy showing incorrect usage
                  SrVMwarer Enthusiast

                  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

                  • 6. Re: Storage Policy showing incorrect usage
                    Steve_ZN Lurker

                    Hi Bob

                    Yes it is compliant

                     

                    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?

                     

                    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

                    • 7. Re: Storage Policy showing incorrect usage
                      TheBobkin Virtuoso
                      VMware EmployeesvExpert

                      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