Ah - hash table, Cool. Thx...
So.. anyways,.. I still need to get it in a format where it shows all the true columns, better for report, but here's my thought process around scripting new vols when provisioning snapmirror targets or just messing around in the lab
$vols | % {
if ($_.snapshotpercentreserved -eq 0) {
write-host "No Snapshot Reserve Name: " $_.name }
new-navol -name $_. name -aggregate aggr1 -spacereserve none -size $_.totalsize -controller $dstfiler
elseif ($_.snapshotpercentreserved -gt 0) {
write-host "Snapshot reserve volume: " $_.name "`tSnapshotReserve%" $_.snapshotpercentreserved}
$volsize = get-navolsize $_.name
new-navol -name $_. name -aggregate aggr1 -spacereserve none -size $volsize -controller $dstfiler
}
## Close loop
}
That was my thought process... I haven't tested the above code, but in theory it should work.