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
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