Hi All,
We are running below powershell script on vcenter to get the lun with specified space (2TB). But it is not returning any values even though 2TB lun is available for the cluster. Highlighted RED are the variables we are passing.
(Get-Cluster -Name Cluster name | Get-VMhost) | Where-Object {$_.availableMB -ge (100*1024+0.01*$_.CapacityMB) -and $_.CapacityMB -eq (2048*1024) -and $_.Name -like "*_lun*"} | Sort-Object availableMB | Select -First 1
But when we are giving 273 instead of 2048, the script is returning the lun name.
Please guide what is exact value for 2TB lun size which should be passed here. Is it 2048 or different value?
Thanks and Regards