Skip to content

Get-S2DVolumeMap

Maps all S2D volumes with resiliency type, capacity footprint, and provisioning detail.


Synopsis

Queries VirtualDisk and ClusterSharedVolume. Returns per-volume resiliency efficiency, footprint on pool, provisioning type, overcommit ratio for thin volumes, and thin growth headroom. Auto-detects Azure Local infrastructure volumes by name and size pattern.

Requires an active session from Connect-S2DCluster, or use -CimSession directly.


Syntax

powershell
Get-S2DVolumeMap
    [-VolumeName <string[]>]
    [-CimSession <CimSession>]

Parameters

-VolumeName

Typestring[]
RequiredNo
Defaultall volumes

Limit results to one or more specific volume friendly names.


-CimSession

TypeCimSession
RequiredNo
Defaultuses module session

Override the module session and target this CimSession directly.


Outputs

S2DVolume[] — one object per volume.

Key properties:

PropertyDescription
FriendlyNameVolume name
ResiliencySettingNameMirror or Parity
NumberOfDataCopiesResiliency factor (2 = 2-way mirror, 3 = 3-way mirror)
ProvisioningTypeThin or Fixed
SizeLogical size as S2DCapacity
FootprintOnPoolPhysical space consumed on the pool as S2DCapacity
EfficiencyPercentLogical size / footprint × 100
AllocatedSizeActually written data (thin volumes) as S2DCapacity
ThinGrowthHeadroomRemaining thin headroom before pool is full as S2DCapacity
MaxPotentialFootprintMaximum pool space this thin volume could ever consume as S2DCapacity
OvercommitRatioMaxPotentialFootprint / pool.TotalSize
HealthStatusHealthy, Warning, Unhealthy
OperationalStatusWMI operational status
IsInfrastructureVolume$true for Azure Local system volumes (UserStorage, SBEAgent, etc.)
CSVPathCluster Shared Volume mount path

Examples

All volumes:

powershell
Connect-S2DCluster -ClusterName "tplabs-clus01" -Credential $cred
Get-S2DVolumeMap

Capacity summary:

powershell
Get-S2DVolumeMap | Format-Table FriendlyName, ResiliencySettingName, ProvisioningType, Size, FootprintOnPool, EfficiencyPercent

Thin volume risk assessment:

powershell
Get-S2DVolumeMap |
    Where-Object ProvisioningType -eq 'Thin' |
    Select-Object FriendlyName, Size, AllocatedSize, ThinGrowthHeadroom, MaxPotentialFootprint, OvercommitRatio

Filter to specific volumes:

powershell
Get-S2DVolumeMap -VolumeName "UserStorage_1", "UserStorage_2"

Show only user (non-infrastructure) volumes:

powershell
Get-S2DVolumeMap | Where-Object IsInfrastructureVolume -eq $false

Released under the MIT License.