Reporting on storage pools

Once created, we need to routinely review the storage pools to ensure they are functioning properly. One item we need to pay attention to is the utilization of the thin pools and disks in our environment. If the underlying disks in a thin pool fill up, we can have unexpected results in the presented virtual disks.

Getting ready

In this recipe we will be working with the storage pool configuration created in the previous recipe. We will be reporting on the utilization of the storage pools and the virtual disks in the pools.

How to do it...

Perform the following steps to report on storage pools:

  1. Report on storage pool usage:
    Get-StoragePool | ` Format-Table FriendlyName, ` @{Name="AllocGB";Expression={$_.AllocatedSize/1GB}}, ...

Get Windows Server 2012 Automation with PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.