Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,708 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello Team,
I'm running an S2D cluster, and i'm looking for a reporting to have the following informations :
-Storage consumption at the cluster level
-Ressource consumption on the node level (cpu,memory)
-Listing of VMs on the cluster + Ressource allocation and utilization
Is there a native reporting to S2D making it possible to have this informations or i should develop a powershell script to have these informations? If you have a similar powershell script that give such infos, thanks to shar ewith me
Hello there,
The Get-ClusterNode cmdlet gets information about one or more nodes, or servers, in a failover cluster.
The Get-StorageEnclosure cmdlet gets storage enclosures that are visible to your computer.
Try something like this.
Get-Cluster -PipelineVariable cluster |
ForEach-Object -Process {
$ds = Get-Datastore -RelatedObject $cluster | where{$_.ExtensionData.Summary.MultipleHostAccess}
$totCapacity, $totFree, $totUncommitted = ($ds.ExtensionData.Summary | Measure-Object -Property Capacity, FreeSpace, Uncommitted -Sum).Sum
[PSCustomObject]@{
Cluster = $cluster.Name
CapacityGB = [math]::Round($totCapacity/1GB,1)
UsedGB = [math]::Round(($totCapacity - $totFree)/1GB,1)
FreeGB = [math]::Round($totFree / 1GB, 1)
ProvisionedGB = [math]::Round(($totCapacity - $totFree + $totUncommitted) / 1GB, 1)
UncommittedGB = [math]::Round($totUncommitted / 1GB, 1)
}
}
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–