NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Total sizes of aggrs and all disks..

JGPSHNTAP
3,161 Views

Ok, so i either have a brainfreeze or there isn't an easier way to do this.

basically, sum up all the aggregates total, available and sum up total raw capacity. 

Total size =  ([system.math]::floor((get-naaggr | measure -sum Totalsize).sum/1gb))

Total Available = ([system.math]::floor((get-naaggr | measure -sum available).sum/1gb))

Raw Disk =  ([system.math]::floor((get-nadisk | ? {$_.status -ne "partner"} | measure -sum usedspace).sum/1gb))

Is this the only way?

1 REPLY 1

JGPSHNTAP
3,161 Views

One more, total volumes allocated - ([system.math]::round((get-naaggrspace | measure -sum sizevolumeallocated).sum/1gb,2))

I assume that adds up thin provisioned as well, i'm going to check that in the lab

Public