Datasheet
CONFIGURE DATACENTERS AND CLUSTERS 29
Install, Con gure, and
Manage the vSphere
Environment
PART I
To complete this same action on an existing cluster, you would again need to retrieve
the cluster object and push the object through the pipe into the
Set-Cluster
cmdlet, as shown in Listing 1.11.
LISTING 1.11
Confi guring DRS on an existing cluster
Get-Cluster -Location $BostonDC `
-Name “Production” | Set-Cluster `
-DrsEnabled $true `
-DrsAutomationLevel “FullyAutomated” `
-DrsMode “FullyAutomated”
Configuring Enhanced vMotion Compatibility
EVC allows you to add multiple hosts with di erent CPU architectures to your clus-
ter. EVC will, for example, allow you to add older hosts with Intel processors to a
cluster that includes hosts with newer Intel processors. It does this by setting a mask
on the VMs and ensuring the instruction sets are the same for both sets of hosts.
Unfortunately, at this point in time VMware does not include either a PowerCLI
cmdlet or a method to enable this feature programmatically. erefore, con guring
EVC is outside the scope of this book.
Configuring Distributed Power Management
DPM provides cost savings by dynamically consolidating VMs onto fewer hosts
during periods of low usage. Once the VMs are consolidated onto fewer hosts, the
remaining hosts that are no longer hosting any VMs are powered o to save power.
Once utilization starts to increase, the vSphere Server will power these hosts back
on as needed.
While there are currently no options to enable DPM through the native cmdlets
that are provided with PowerCLI, you can address the API and create your own
function to enable DPM. For more information about using the SDK/API or Project
Onyx, read Chapter 19, “Onyx and the SDK.”
Listing 1.12 shows how you can enable DPM on a cluster.
LISTING 1.12
Confi guring DPM on a cluster
Function Set-DPM {
<#
.SYNOPSIS
Enables Distributed Power Management on a cluster
890790c01.indd 29890790c01.indd 29 3/3/11 10:22:16 AM3/3/11 10:22:16 AM