Új hozzászólás Aktív témák

  • AiRLAC

    addikt

    válasz szpeti40 #6008 üzenetére

    ESXi-n futnak? DRS kell ehhez és DRS group-ok, valahogy így:
    (persze ehhez legalább Enterprise licensz kell)

    #connect to vCenter(s) first
    Connect-VIServer -Server $vCenter -User $user -Password $password
    #define cluster
    $Cluster="Production_Cluster"
    #create new DRS group for ESX hosts
    New-DrsClusterGroup -Cluster $Cluster -Name "ESX_odd" -VMHost "esxhost3.domain.com","esxhost5.domain.com","esxhost1.domain.com"
    New-DrsClusterGroup -Cluster $Cluster -Name "ESX_even" -VMHost "esxhost2.domain.com","esxhost4.domain.com","esxhost6.domain.com"
    #create new DRS group for VMs
    New-DrsClusterGroup -Cluster $Cluster -Name "VM_odd" -VM "vm211","vm213","vm215","vm217","vm219"
    New-DrsClusterGroup -Cluster $Cluster -Name "VM_even" -VM "vm212","vm214","vm216","vm218","vm220"
    #Create DRS rule
    New-DrsVMHostRule -Cluster $Cluster -Name "odd_to_odd" -VMGroup "VM_odd" -VMHostGroup "ESX_odd" -Type "ShouldRunOn"
    New-DrsVMHostRule -Cluster $Cluster -Name "even_to_even" -VMGroup "VM_even" -VMHostGroup "ESX_even" -Type "ShouldRunOn"

    [ Szerkesztve ]

    "After successfully ignoring Google, FAQ's, the board search and leaving a undecipherable post in the wrong sub-forum don't expect an intelligent reply."

Új hozzászólás Aktív témák