Hey guys,
Is it possible to use DRS for both compute and storage during a deployment process? I looked thru the API and i am not sure which attribute / scripting class i should be focusing on to handle this.
My current setup is this (attached):
Compute:
-Query the DC in a cluster for host names
-Query the host to make sure they arent in maint mode than add it to an array
-Sort array by free memory
-Output host on array[0]
Storage:
-Add storage to array located in that cluster
-Sort by free space
-Output datastore
While this works the issue i come accross is that DRS will balance the storage and even though the storageDRS cluster may have 20TB free only 5TB is available on 1 LUN. When i attach new drives i reuse the datastore output and add the drives. The issue with this comes from auto adding drives that are more than what the LUN can handle.
I am not sure how well the VcDrs items work in vRO or have seen any examples of its use.
Thanks for the help!
Looks like VMWare code has the same layout i used:
Get ESXi Host to Place the VM - DRS Placement. - Samples - VMware {code}