Retrieving detailed per-VM space utilization on VSAN

For more details, please see https://www.virtuallyghetto.com/2018/06/retrieving-detailed-per-vm-space-utilization-on-vsan.html

Get-VSANVMDetailedUsage -Cluster "VSAN-Cluster"

VM                                File                                                                                                 Type      physicalUsedGB reservedCapacityGB
--                                ----                                                                                                 ----      -------------- ------------------

DeployVM                          [vsanDatastore] fa84c65a-1cd0-d2a7-5ece-b8aeed7c9e96/DeployVM.vmx                                    namespace           9.89                  0

DeployVM                          [vsanDatastore] fa84c65a-1cd0-d2a7-5ece-b8aeed7c9e96/DeployVM-aaf48022.vswp                          vmswap              0.01                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM.vmx                             namespace            0.5                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM.vmdk                            vdisk               3.38                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000024.vmdk                     vdisk               0.01                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000023.vmdk                     vdisk               0.58                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000022.vmdk                     vdisk               0.29                  0

Ubuntu-SourceVM                   [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-Snapshot7.vmem                  vmem                1.03                  1

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000.vmx                                 namespace           0.39                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000004.vmdk                         vdisk               0.75                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000008.vmdk                         vdisk               0.18                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000.vmdk                                vdisk                2.3                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000001.vmdk                         vdisk               0.78                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000007.vmdk                         vdisk               0.01                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000005.vmdk                         vdisk               0.77                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000003.vmdk                         vdisk               0.33                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-000002.vmdk                         vdisk               0.35                  0

Windows2000                       [vsanDatastore] 70dcec5a-66df-dafa-1788-b8aeed7c9e96/Windows2000-Snapshot1.vmem                      vmem                0.39               0.38

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance.vmx           namespace           0.38                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_11.vmdk       vdisk               3.75                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance.vmdk          vdisk              11.71                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_10.vmdk       vdisk               0.35                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_5.vmdk        vdisk                0.8                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_3.vmdk        vdisk               0.69                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_6.vmdk        vdisk               0.52                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_9.vmdk        vdisk               0.35                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_2.vmdk        vdisk               1.81                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_1.vmdk        vdisk               1.87                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_4.vmdk        vdisk               6.41                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_12.vmdk       vdisk               4.89                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_8.vmdk        vdisk               0.07                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance_7.vmdk        vdisk               0.93                  0

Embedded-vCenter-Server-Appliance [vsanDatastore] b289c65a-8274-8495-2d28-b8aeed7c9e96/Embedded-vCenter-Server-Appliance-3252130b.vswp vmswap              0.01                  0


Get-VSANVMDetailedUsage -Cluster "VSAN-Cluster" -VM "Ubuntu-SourceVM"

VM              File                                                                                Type      physicalUsedGB reservedCapacityGB
--              ----                                                                                ----      -------------- ------------------

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM.vmx            namespace            0.5                  0

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM.vmdk           vdisk               3.38                  0

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000024.vmdk    vdisk               0.01                  0

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000023.vmdk    vdisk               0.58                  0

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-000022.vmdk    vdisk               0.29                  0

Ubuntu-SourceVM [vsanDatastore] 712bda5a-aad2-37a5-6775-b8aeed7c9e96/Ubuntu-SourceVM-Snapshot7.vmem vmem                1.03                  1

Sign in to be able to add comments.

Comments 0