frankdenneman Frank Denneman is the Chief Technologist for AI at VMware by Broadcom. He is an author of the vSphere host and clustering deep dive series, as well as a podcast host for the Unexplored Territory podcast. You can follow him on Twitter @frankdenneman

Saving a Resource Pool Structure

1 min read

During a troubleshooting exercise of a problem with vCenter I needed to disable DRS to make sure DRS was not the culprit. However a resource pool tree exisited in the infrastructure and I was not looking forward reconfiguring all the resource allocation settings again and documenting which VM belonged to which resource pool. The web client of vSphere 5.1 has a cool feature that helps in these cases. When deactivating DRS (Select cluster, Manage, Settings, Edit, deselect “Turn ON vSphere DRS”) the user interface displays the following question:
01-turn-OFF-DRS
Backup resource pool tree
Click “Yes” to backup the tree and select an appropriate destination for the resource pool tree snapshot file. This file uses the name structure clustername.snapshot and should the file size be not bigger than 1 or 2 KB.
Restore resource pool tree
When enabling DRS on the cluster, the User interface does not ask the question to restore the tree. In order to restore the tree, enable DRS first and select the cluster in the tree view. Open the submenu by performing a right-click on the cluster, expand the “All vCenter Actions” and select the option “Restore Resource Pool Tree…”
02-Restore-Resource-Pool-Tree
A window appears and click browse in order to select the saved resource pool tree snapshot and click on OK
03-select-cluster-snapshot
vCenter restores the tree, the resource pool settings (shares, reservations limits) and moves the virtual machines back to the resource pool they were placed in before disabling DRS.
04-Restored-Tree
If you want to save the complete vCenter inventory configuration I suggest you download the fling “InventorySnapshot”.
Update: If you want to use this tool to backup and restore resource pool trees used by vCloud Director, please read this article: Saving a Resource Pool Structure web client feature not suitable for vCD environments

frankdenneman Frank Denneman is the Chief Technologist for AI at VMware by Broadcom. He is an author of the vSphere host and clustering deep dive series, as well as a podcast host for the Unexplored Territory podcast. You can follow him on Twitter @frankdenneman

6 Replies to “Saving a Resource Pool Structure”

  1. Do you know if there is any Powershell script to do same thing with vSphere 4.1?

    1. I don’t know, but if I was you I would ask that question to @alanrenouf, @lucd or @lamw

  2. Hey Frank
    Do you know if it keeps the MO-Refs the same when it restores or does it simply create new pools?
    Thinking from a vCloud Director perspective.

    1. First of all, this is a great feature to have. I can’t even recall the amount of times people have disabled DRS for troubleshooting the vSphere layer only to discover that all resource pools in vCloud Director have been destroyed. Also @Dave has a great question. I’d like to know if the MO-Refs between vCenter and vCD databases are kept or just recreated as well.

Comments are closed.