Backup and Restore Resource Pool Configurations

By | 30/10/2017

When DRS is disabled on a cluster, it removes all the resource pools that are part of the cluster and the resource pool hierarchy and affinity rules are not re-established when DRS is turned back on. 

Now if you really want to disable DRS (for any maintenance activity) and want to save yourself from the pain of re-creating resource pools and configuring share/limits etc, you can take backup of resource pools and and restore it later post completing the maintenance and enabling DRS again.

In my lab I created a resource pool named “RP-Edge” and placed one VM in this resource pool.

rpbkp-0.PNG

When you disable DRS on a cluster, vSphere gives you an opportunity to save the resource pool tree in a file which can be used later to restore the resource pool hierarchy.

Just click on yes on the warning window presented.

rpbkp-1

save the file on your local PC.

rpbkp-2

At this point, the resource pool is gone and the Win-DR-Test VM is out of the resource pool.

rpbkp-5

Restoring Resource Pool Tree

Turn ON DRS and right click on cluster and choose Restore Resource Pool Tree.

Note that a resource tree can only be restored to the cluster it came from. Also restoring resource pool tree is only feasible via vSphere Web Client. 

rpbkp-3

Browse to the path where you have saved the snapshot file and hit OK.

rpbkp-4

The moment resource pool is restored, the Win-DR-Test VM was back at where it was previously. 

rpbkp-6.PNG

There is only one caveat with this. When a resource pool is restored, its MOID gets change.

Important Note: If you are disabling DRS on a cluster which is part of the vCenter associated with vCloud Director, then engage VMware technical support team for restoring the resource pool config.

Additional Reading

VMware KB-2032893

I hope you find this post informational. Feel free to share this on social media if it is worth sharing. Be sociable 🙂

Category: vSphere 6.X

About Alex Hunt

Hi All I am Manish Jha. I am currently working in OVH US as Operations Support Engineer (vCloud Air Operations). I have around 7 Years of IT experience and have exposure on VMware vSphere, vCloud Director,vSphere Replication, vRealize Automation, NSX and RHEL. If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post. Disclaimer: All the information on this website is published in good faith and for general information purpose only. I don’t make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on this blog is strictly at your own risk. The Views and opinions published on this blog are my own and not the opinions of my employer or any of the vendors of the product discussed.