HA Cluster Improvements
PowerCLI 4.1.1 introduces three new improvements for HA clusters:
- Ability to edit advanced HA cluster settings
- Cmdlet that retrieves the primary nodes of HA cluster
- Set of new properties that contain runtime HA information
The first of the new features is the ability to edit the advanced settings of HA clusters. There are four new cmdlets that allow you to customize HA settings - Get-AdvancedSetting, New-AdvancedSetting, Set-AdvancedSetting, and Remove-AdvancedSetting.
Let's see several simple actions with these cmdlets:
- Assign value to isolation address 0 on cluster with name TestCluster
New-AdvancedSetting –Entity TestCluster ` –Type ClusterHA ` –Name 'das.isolationAddress0' –Value '172.16.0.5'
- Get isolation address 0 for all clusters
Get-Cluster | ` Get-AdvancedSetting -Name 'das.isolationAddress0' | ` select @{ 'n'='ClusterName'; 'e' = { $_.Entity.Name }}, Value | ` ft -AutoSize ClusterName Value ----------- ----- TestCluster 172.16.0.5 - This command returns all customized settings for a given cluster
Get-AdvancedSetting –Entity TestCluster
- Update the value of an existing advanced setting for all clusters.
Get-Cluster | Get-AdvancedSetting -Name 'das.isolationAddress0' | ` Set-AdvancedSetting –Value '172.16.0.6'
- Updating can be done also through the New-AdvancedSetting cmdlet and by using the –Force switch. This row adds a value or overrides the already assigned value.
New-AdvancedSetting –Entity TestCluster ` –Type ClusterHA ` –Name 'das.isolationAddress0' –Value '172.16.0.5' ` –Force
- Remove a specific customized setting for all clusters.
Get-Cluster | Get-AdvancedSetting -Name 'das.isolationAddress0' | ` Remove-AdvancedSetting
You can refer to the vSphere Availability Guide for the full list of HA advanced settings.
The second improvement is represented by the Get-HAPrimaryVMHost commandlet. This commandlet returns a list of the primary nodes/hosts for a given cluster and it is really simple to use:
- Get the primary nodes of a cluster named TestCluster
Get-Cluster TestCluster | Get-HAPrimaryVMHost
The third new feature is the addition of new properties in Cluster objects. These properties describe HA cluster runtime information and their names are HATotalSlots, HAUsedSlots, HAAvailableSlots, HASlotCpuMhz, HASlotMemoryMb and HASlotNumVCpus.
For example, let's see how we can create a report that shows the count of total slots and the count of currently used and available slots.
Get-Cluster TestCluster | ` select Name,HATotalSlots,HAUsedSlots,HAAvailableSlots | ` ft –AutoSize Name HATotalSlots HAUsedSlots HAAvailableSlots ---- ------------ ----------- ---------------- TestCluster 123 36 39






The first of the new features is the ability to edit the advanced settings of HA clusters
Posted by: winstrol | February 20, 2012 at 02:34 AM
These improvements madea good base for further development of the system.
Posted by: android developers | February 21, 2012 at 12:15 AM