DRS Rule name not shown for the triggered DRS Recommendation in vCenter UI
search cancel

DRS Rule name not shown for the triggered DRS Recommendation in vCenter UI

book

Article ID: 414224

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • VM affinity rules are configured on the cluster in the vCenter.
  • DRS is set to Manual mode.
  • DRS triggers a Recommendation when a DRS Rule is violated.
  • In vCenter > Cluster > Monitor > vSphere DRS > Recommendations, the only columns available are:
    • Priority
    • Recommendation
    • Recommendation ID
    • Reason
  • Get-DrsRecommendation command in PowerCLI also provides the output based on the data available in vCenter UI.

Environment

  • VMware vCenter Server 7.x
  • VMware vCenter Server 8.x

Cause

  • This is working as expected by design. Currently DRS Rule name information against the DRS Recommendation is unavailable in vCenter UI or PowerCLI cmdlet.

Resolution

  • DRS rule name information can be seen from the /var/log/vmware/vpxd/vpxd.log.
    For example:
    • Affinity Rule is created with a name TestRule and is defined for 2 VMs to must run together.
    • If one of the VM is migrated to another ESXi host which violates the rule and DRS recommendation is triggered, below entries can be seen in the vpxd.log:

      YYYY-MM-DDTHH:MM:SS.777Z info vpxd[940361] [Originator@6876 sub=drmLogger item=FixRuleViolations opID=WorkQueue-#####] 2 VMs are violating VM affinity rule TestRule