I don't understand what's going on. I ran that script, but the VMs are only matching up with two datastores. I thought that maybe the sort -descending was wrong, or that it somehow appears differently if you sort from a host or from the datacenter. We have over 10 datastores, and it's pulling from the datastore that has the lowest freespace, and one that has the 3rd to the lowest.
↧