So this is a basic simple question, when using the convertto-formattednumber cmdlet it nicely formats the data into either TB, GB, MB, etc.... I've been looking at the cmdlet and seeing if there is a way to make the output consistent in either all GB or TB, etc..
I've been unsuccessful.
What i've done so far, it's ugly, but it's my desired result is something like this..
Clinton - Good point.. I just checked it's totally snapshot reserve.. Omg, I totally overlooked that... I know this is off topic from the original thread, but to me that makes things pretty confusing.. I was under the impression that get-navol was similiar to vol size where it tells you the entire volume.. If snapshot reserve is enabled at 20% it can totally throw off the automation of scripting..
I agree the APIs for space reporting aren't perfect. Adding a call to the vol-size API inside Get-NaVol would add an API call for each volume, whereas Get-NaVol gets all the data in a small number of calls, so we'd not want to slow it down like that. At least it's better in Cluster Mode.
Thx for the reply - I agree with your statement on multiple calls, but the get-navol totalsize isn't a true representation.. I can't believe i've missed this before, most of the time, i deal with snapshot reserve of 0, but it just so happens, I was looking at this closer today and they didn't jive.
This is brilliant as usual. I'm sitting here wondering how you are stuffing the array, and why I can' t pull aggregate information as well.. I basically want $volsizemap array to encompass stuff from get-navol, So example, I really want $_.totalsize $_.totalused - etc... I'm having trouble with the concept of this array. I just don't understand it and i'll be the first to admit it.
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