autoExpand for vSphere 5 distributed switch portgroups
Administration, Network, Tips and Tricks 2 Comments »You have probably read my last post on when to use Ephemeral Port Bindings on distributed switches. As mentioned in that article, Static port bindings should be the standard going forward. When you create a port group with a Static port group binding, you set how may ports are dedicated to that port group. The default is 128 ports and can be changed if need be.
There are some important numbers to remember from the vSphere 5 Maximums doc:
- Distributed virtual network ports per vCenter: 30,000
- Static port groups per vCenter: 5,000
- Ephemeral port groups per vCenter: 256
- Distributed switches per vCenter: 32
In vSphere 5.0 a new advanced option called autoExpand has been introduced. This property of Portgroup allows a Portgroup to expand automatically by a small predefined margin everytime Portgroup is about to run out of Ports. The only documentation I could find about this procedure was in the KB article on port bindings. This is the process from the referenced KB article at the time of this writing:
In vSphere 5.0 a new advanced option called autoExpand has been introduced. This property of a Portgroup allows a Portgroup to expand automatically by a small predefined margin everytime Portgroup is about to run out of Ports.
This is disabled by default and can be enabled using vSphere 5.0 sdk via managed object browser.
- In a browser, enter the address http://vc-ip-address/mob/.
- When prompted, enter your vCenter Server username and password.
- Click the content link.
- In the left pane, search for the row with the word rootFolder.
- Open the link in the right pane of the row. The link should be similar to group-d1 (Datacenters).
- In the left pane, search for the row with the word childEntity. In the right pane, you see a list of datacenter links.
- Click the datacenter link in which the vDS is defined.
- In the left pane, search for the row with the word networkFolder and open the link in the right pane. The link should be similar to group-n123 (network).
- In the left pane, search for the row with the word childEntity. You see a list of vDS and distributed port group links in the right pane.
- Click the vDS for which you want to change this property.
- In the left pane, search for the row with the word config and click the link in the right pane.
- In the left pane, search for the row with the word autoExpand. It is usually the first row.
- Note the corresponding value displayed in the right pane. The value should be false by default.
- Go back to the vDS page.
- Click the link that reads ReconfigureDvs_Task. A new window appears.In the Spec text field, enter <spec><autoExpand>true</autoExpand></spec>
- Click the Invoke Method link.
- Close the window.
- Repeat Steps 9 through 13 to verify the new value for autoExpand.
This looks like a great option to use to help you “auto-manage” you port group size if need be.
UPDATE: The procedure above is invalid. Please refer to http://blogs.vmware.com/vsphere/2012/02/automating-auto-expand-configuration-for-a-dvportgroup-in-vsphere-5.html for a script that can implement the change. VMware is in the process of updating the article and I will update this article as information becomes available.
Recent Comments