VMware Cloud Community
LukasHuf
Contributor
Contributor

vSAN space used before deduplication

Hello,

I'm looking for some vSAN space usage / deduplication experts.

I'm trying to build my own space usage report using PowerCLI. I'm able to find Total Capacity, Space Used (after deduplication) and also whether deduplication is enabled or not. Unfortunately I'm not able to find information about Space Used before deduplication. Does somebody know where is this information presented? I'm using this query in my script:

$vcsrs = Get-VSANView -Id "VsanSpaceReportSystem-vsan-cluster-space-report-system"

$cluster_view = (Get-Cluster -Name $Cluster).ExtensionData.MoRef

$results = $vcsrs.VsanQuerySpaceUsage($cluster_view)

$TotalCapacity = $results.TotalCapacityB

$UsedSpaceAfterDedupe = $results.SpaceOverview.UsedB #(or SUM of $results.SpaceDetail.SpaceUsageByObjectType.UsedB)

$UsedSpaceBeforeDedupe = ? # Does somebody know?

$UsedCapacityBreakdown = $results.SpaceDetail.SpaceUsageByObjectType

There is no information about space used before dedupe in API documentation: https://pubs.vmware.com/vsphere-6-0/topic/com.vmware.vsan.apiref.doc/vim.cluster.VsanSpaceUsage.html
Google also did not help me a lot. I just found this article https://kb.vmware.com/s/article/51131. But unfortunately in my SpaceUsageByObjectType array I don't have item with name 'spaceUnderDedupConsideration'.

Thanks in advance for any hints, help.
Regards,
Lukas
Reply
0 Kudos
1 Reply
chris122686
Enthusiast
Enthusiast

Hi Sir,

You may want to check the link I have provided you below.

VMware Knowledge Base

Please mark this as correct if this answers and helps you .

Christopher Sibug
Reply
0 Kudos