Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 773 Bytes

get-virtualdisks-in-cluster.md

File metadata and controls

26 lines (24 loc) · 773 Bytes

Get Virtual Disks by Node in Failover cluster

$Nodes = get-storagenode
$disks = @()
Foreach($node in $nodes){
    $pools = Get-StoragePool -StorageNode $node 
    Foreach($pool in $pools){
        if($pool.IsPrimordial -eq $true){continue}
        $info = $pool | Get-VirtualDisk
        $disks += [PSCustomObject]@{
            FriendlyName = $info.FriendlyName
            ResiliencySettingName = $info.ResiliencySettingName
            NumberOfColumns = $info.NumberOfColumns
            Interleave = $info.Interleave
            Size = $info.Size / 1GB
            Node = $node.Name
            Pool = $pool.FriendlyName
            OperationalStatus = $info.OperationalStatus
            HealthStatus = $info.HealthStatus
        }
    }
}
$disks | ft