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 http://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
- Deduplication
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 http://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:
- PowerShell tips for building objects with custom properties and special formatting
http://blogs.technet.com/b/josebda/archive/2014/04/19/powershell-tips-for-building-objects-with-custom-properties-and-special-formatting.aspx - How the Test-StorageHealth.ps1 script checks for Storage Cluster health
http://blogs.technet.com/b/josebda/archive/2014/07/26/how-the-test-storagehealth-ps1-script-checks-for-storage-cluster-health.aspx