VMware Cloud Community
DennieTidwell
Enthusiast
Enthusiast

DRS affinity rules - if I set to manual, they are preserved, if I disable DRS, DO I LOSE VM AFFINITY RULES?

DRS affinity rules - if I set to manual, they are preserved, if I disable DRS, DO I LOSE VM AFFINITY RULES? And if I lose them if DRS is disabled ... can I back them up some way prior or are they still in vCenter database?

Reply
0 Kudos
5 Replies
_David
Enthusiast
Enthusiast

If you disable DRS the rules will not be there when you enable it again. The best way is to have it written down.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
DennieTidwell
Enthusiast
Enthusiast

Thanks _David. I have experienced this situation. I need verification that this remains true to date with latest versions and some automated way to backup rules (100+ possibly) if possible. So thanks, helpful, but not fully answered.

Other comments solicited and welcomed.

Reply
0 Kudos
_David
Enthusiast
Enthusiast

In the VI toolkit 1.5 for windows there is a cmdlet to list the rules

Get-DrsRule

Retrieves the

list of Drs rules for the specified clusters. Each rule defines the

virtual machines that can run on the same host (affinity rule) or must

run on different hosts (anti-affinity).

There is also a perl script to list the affinity rules check this thread

http://communities.vmware.com/message/987594

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points
DennieTidwell
Enthusiast
Enthusiast

_David -

Thanks for the input. I'm gonna post separately for a backup/restore restore method that doesn't require manually re-entering the rules. I'm awarding you the points. Thanks.

Reply
0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee

As per the current design for 5.1 & 5.5, even though you disable DRS, DRS rules are still available but would be disabled too. Once you enable DRS on the same cluster, these rules would be enabled as well.

Also, if you create VM-Host affinity/anti-affinity hard (must) rule, even though DRS is disabled, this rule will be remain enabled as HA would honor this rule. There is no way you can disable that rule once the DRS is disabled. Better way is to remove or disable such rule before DRS is getting disabled.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

Reply
0 Kudos