PowerShell script for Storage Cluster Health Test published to the TechNet Script Center
I just published a PowerShell script to check the health and capacity of a Storage Cluster based on Windows Server 2012 R2 Scale-Out File Servers.
It assumes a specific configuration for Private Clouds using the solution described at https://technet.microsoft.com/en-us/library/dn554251.aspx.
It performs specific health checks for
- Failover Clustering (Cluster, Resources, Networks, Nodes)
- Storage Spaces (Physical Disks, Enclosures, Virtual Disks)
- Cluster Shared Volumes
- SMB File Shares
It includes reporting of capacity by Pool, Volume and Deduplicated volume. It also includes collection of cluster logs and error events from all nodes in the cluster.
You can review and download the script from https://gallery.technet.microsoft.com/scriptcenter/Test-StorageHealthps1-66d84fd4
Lastly, if you're interested in how the script was written, you might also want to read these other blog posts:
How the Test-StorageHealth.ps1 script checks for Storage Cluster health
Understanding the files collected by the Test-StorageHealth.ps1 PowerShell script
PowerShell tips for building objects with custom properties and special formatting
Adding Storage Performance to the Test-StorageHealth.ps1 script
How to use the Test-StorageHealth.ps1 PowerShell script with different configurations