Usable Disk Container Container Disk Size Shelf Bay Type Type Name Owner ---------------- ---------- ----- --- ------- ----------- --------- --------
Info: This cluster has partitioned disks. To get a complete list of spare disk capacity use "storage aggregate show-spare-disks". 1.0.0 3.49TB 0 0 SSD-NVM shared <removed>* 1.0.1 3.49TB 0 1 SSD-NVM shared <removed>* 1.0.2 3.49TB 0 2 SSD-NVM shared <removed>*
You could build a wrapper function that called get-ncdisks, manipulates the data, and spits out the info in the way you want - I have tons of these. Also, if you run get-ncdisk | select -first 1 | select * in PS, you will see all the data that is returned. The Ontap module has a "filter" to show the data that you get when you just run get-ncdisk, basically formats it so it looks nice. In the command above, for my 1.09 TB disk (this is the number from the ontap console using disk show) I get Capacity : 1218997503360 Now to convert that number to something nicer you have to do some math. The Ontap powershell module has a function called convertto-formattednumber. If I use that I get > convertto-formattednumber 1218997503360 1T
If I use the powershell way I get this > 1218997503360 / 1tb 1.10867177078035 Which is a little more accurate. Then you can format the result to get to 1.10TB. I never got to the point of getting 1.09. I assume its what ever math is getting used to display the number on the console. Or that the 1.09TB is a value coming from the drive itself. Hope that helps.