Search This Blog

Wednesday, April 24, 2013

Creating High Availability Virtual Machine Using Powershell–Part 3

 

Let continue from where we left in previous parts

Part 1 – talked about converting sysprep image and create new virtual hard disk

Part 2 – talked about creating VM configuration by using hard disk from Part 1 and configure VM settings.

In our next part, we will discuss about creating high availability virtual machine whereby the created VM has located in Cluster Shared Volume (CSV). Here is the example to guide you in this article

Example:-

VM Name Priority Preferred Owner
Donut High Server1
Eclair Low Server1
Froyo Medium Server2
Gingerbread Low Server2
HoneyComb Low Server2
IceCream Low Server1

Let look into how we should configure using Powershell

1. Add VM as High Availability Virtual Machine

Cmdlet:- Add-ClusterVirtualMachineRole

Add-ClusterVirtualMachineRole -VirtualMachine Donut
Add-ClusterVirtualMachineRole -VirtualMachine Exclair
Add-ClusterVirtualMachineRole -VirtualMachine Froyo
Add-ClusterVirtualMachineRole -VirtualMachine Gingerbread
Add-ClusterVirtualMachineRole -VirtualMachine HoneyComb
Add-ClusterVirtualMachineRole -VirtualMachine IceCream

2. Configure Preferred Owner

Cmdlet :- Set-ClusterOwnerNode

Set-ClusterOwnerNode -Group Donut -Owner Server1
Set-ClusterOwnerNode -Group Exclair -Owner Server1
Set-ClusterOwnerNode -Group Froyo -Owner Server2
Set-ClusterOwnerNode -Group Gingerbread -Owner Server2
Set-ClusterOwnerNode -Group HoneyComb -Owner Server2
Set-ClusterOwnerNode -Group IceCream -Owner Server1

3. Configure Priority

Cmdlet:- Get-ClusterGroup.Priority

Value for :-

High – 3000

Medium –2000

Low - 1000

(Get-ClusterGroup Donut).Priority=3000
(Get-ClusterGroup Exclair).Priority=1000
(Get-ClusterGroup Froyo).Priority=2000
(Get-ClusterGroup Gingerbread).Priority=1000
(Get-ClusterGroup HoneyComb).Priority=1000
(Get-ClusterGroup IceCream).Priority=1000

4. Automatic Fallback

Cmdlet:- GetpClusterGroup.AutoFailbackType

Set value to 1 will configure as “Immediately” fallback

(Get-ClusterGroup Donut).AutoFailbackType=1
(Get-ClusterGroup Exclair).AutoFailbackType=1
(Get-ClusterGroup Froyo).AutoFailbackType=1
(Get-ClusterGroup Gingerbread).AutoFailbackType=1
(Get-ClusterGroup HoneyComb).AutoFailbackType=1
(Get-ClusterGroup IceCream).AutoFailbackType=1

In this Part 3, you have learned to add HA Virtual Machine to the cluster, set Preferred Owner, Priority and FallBack.

Now that is the end of this part on how to create virtual machine using Powershell. Hope you have learned a lot.

Relevant Post

6 comments:

  1. This post will walk you through the basic steps to set up your Virtual Machine
    Used CNC Router

    ReplyDelete
  2. I believe this web site contains very superb composed articles posts . zf north america

    ReplyDelete
  3. Life-time Replacement is something which you barely find, as you Buy facebook reviews. Only a few excellent suppliers are offering this. buy facebook 5 star rating

    ReplyDelete
  4. Siempre habrá una razón por la cual podrán comprar Bolsas Michael Kors Precios de los minoristas en línea. Los compradores de hoy que estén interesados en comprar Michael Kors Rebajas podrán descubrir cómo pueden obtener los mejores resultados que siempre quisieron simplemente haciendo ruido con lo mejor de Bolsos Michael Kors Outlet que ofrecen más allá de precios asequibles.

    Dessutom med så många alternativ att välja mellan, har det blivit praktiskt taget omöjligt för köpare att ta reda på hur de kan köpa Designer Michael Kors Väska Rea online utan att behöva investera för mycket pengar eller tid i scouting den lokala marknaden som annars skulle tyckas omöjligt att göra först . En riktig äkta Michael Kors Rea skulle kunna ge dig tillbaka tusentals dollar och det är något som de flesta inte har råd med. Du kan faktiskt köpa Michael Kors Plånbok online.

    Maintenant, la question se pose de savoir si vous pouvez réellement trouver en ligne authentique Longchamp Soldes bon marché qui sont vraiment authentiques et la réponse est oui, vous pouvez! Un des sites les mieux notés et les plus populaires pour localiser le Sac A Main Longchamp en ligne parfait pour votre collection personnelle est eBay. Rappelez-vous, juste parce que vous êtes en mesure de magasiner en ligne Sac À Main Longchamp sur eBay à des prix incroyablement bas ne signifie pas qu'ils sont faux ou de qualité bon marché.

    ReplyDelete