cluster in vm

Upload: prasanna-kumar-matam-katee-basava

Post on 30-May-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Cluster in VM

    1/18

    1 .How to Create Windows Cluster

    2. Backup of Cluster3. restore Cluser Backup

    4. Backup cluster using ASR5. Restore Cluster with out Backup.

    For this I have one VM (Virtual Machine) as a Domain controller and two another

    VM which will be used for 2 node clustering.

    Overview : First we create a VM for a DC. Then we create another two VMs and addit to the first DC as a member. Then we add a Quorum disk on one of the VM for

    cluster node. We need to edit the VMX file to allow this Quorum disk to be sharedwith the other Cluster Node. Then we configure cluster on first cluster node. Then we

    Power On the second cluster node and add it to the cluster.

    Details :

    Below are the step by step walkthrough (along with the screenshhot).

    1) Create a VM Domain Controller with say IP address 192.168.20.102) Create another VM (cluster01) and add it to the DC 192.168.20.50

    3) Create another VM (cluster02) and add it to the DC 192.168.20.51

    4) Create Public and Private Network adapter on both VM (cluster01 and 02)5) On Private network adapter only keep TCPIP check and uncheck all others.

    6) Provide an IP address different from that ofPublic. These are only for heartbeatmonitoring.

  • 8/9/2019 Cluster in VM

    2/18

    7) Click on Advanced

    http://mylab4clustering.blog.co.in/files/2009/02/06.jpg
  • 8/9/2019 Cluster in VM

    3/18

    8 ) Ensure that Register this connection address in DNS is unchecked.

    9) Disable Enable LMHOSTS lookup and select Disable NetBIOS over TCP/IP

  • 8/9/2019 Cluster in VM

    4/18

    Follow step 5 to 9 on the CLUSTER02 node with IP for Private as 10.10.10.1110) Create a cluster service account on the Domain Controller which will be usedto configure cluster.

    11) Ensure the check mark on User cannot change password and Password never

    expires

  • 8/9/2019 Cluster in VM

    5/18

    12) add this new user to local administrator group on the Domain Controller

    13) Login to CLUSTER01 and add the Domain User just created in step 10 to localAdministrator group.

    http://mylab4clustering.blog.co.in/files/2009/02/12-01.jpghttp://mylab4clustering.blog.co.in/files/2009/02/12.jpghttp://mylab4clustering.blog.co.in/files/2009/02/11.jpg
  • 8/9/2019 Cluster in VM

    6/18

  • 8/9/2019 Cluster in VM

    7/18

    17) Start the first cluster node VM (CLUSTER01), but ensure that the 2nd clusternode (CLUSTER02) is shut down.

    18) Ensure the disk type is Basic and not dynamic. Else convert to Basic.

    19) Create a primary partition and assign Q:

    http://mylab4clustering.blog.co.in/files/2009/02/191.jpghttp://mylab4clustering.blog.co.in/files/2009/02/18.jpghttp://mylab4clustering.blog.co.in/files/2009/02/16.jpg
  • 8/9/2019 Cluster in VM

    8/18

    20) After the format is completed, ensure you can write to the Q: Drive by trying tocreate a temporary text file.

    21) Once you have ensured that the Q: Drive is writable, then shut down 1st cluster

    node (CLUSTER01).22) Similarly add the same Quorum disk as an additional HDD to the 2nd cluster node

    (CLUSTER02). Make sure you select Existing disk when adding HDD and map to thequorum.vmdk file which was created earlier for the 1st cluster node.

    23) Turn On CLUSTER01 as this will be used to create the cluster first node. Click on

    Start and click Run. Type cluadmin and click OK

    http://mylab4clustering.blog.co.in/files/2009/02/22.jpghttp://mylab4clustering.blog.co.in/files/2009/02/19-01.jpg
  • 8/9/2019 Cluster in VM

    9/18

    24) Click on File -> New -> Cluster. Select Create new cluster from drop down

    menu

    25) Type the name of the first cluster node that is CLUSTER01 in my case. Click on

    Advanced and select Advanced (minimum) configuration. Click OK and clickNext.

    26) Click Next on the below screen

    http://mylab4clustering.blog.co.in/files/2009/02/25.jpghttp://mylab4clustering.blog.co.in/files/2009/02/24.jpghttp://mylab4clustering.blog.co.in/files/2009/02/23.jpg
  • 8/9/2019 Cluster in VM

    10/18

    27) Type in the IP address which will be used for cluster. This will be different than

    Public and Private IP.

    28) Type the user name and password which will be used for configuring clusters.Which we had created back in Step 10.

    http://mylab4clustering.blog.co.in/files/2009/02/28.jpghttp://mylab4clustering.blog.co.in/files/2009/02/27.jpghttp://mylab4clustering.blog.co.in/files/2009/02/26.jpg
  • 8/9/2019 Cluster in VM

    11/18

    29) Click on Quorum and select the Drive Q: which will be shared betweenCLUSTER01 and CLUSTER02. Click Next.

    Click Next

    Click Finish

    http://mylab4clustering.blog.co.in/files/2009/02/29-02.jpghttp://mylab4clustering.blog.co.in/files/2009/02/29-011.jpghttp://mylab4clustering.blog.co.in/files/2009/02/29.jpg
  • 8/9/2019 Cluster in VM

    12/18

    You have the first Cluster Node configured as in the below screenshot.

    The 1st cluster node is configured properly now and now time to add 2nd node or

    more to the cluster.

    30) Keep the cluster node 1 Powered ON while we configure the 2nd node.

    Now Power ON the 2nd cluster node. Now on 1st cluster node, open Cluster

    Administrator console.31) Click on the cluster name, in my case MYCLUSTER

    32) Click on File -> New -> Node as in the screenshot below.

    http://mylab4clustering.blog.co.in/files/2009/02/31.jpghttp://mylab4clustering.blog.co.in/files/2009/02/29-04.jpghttp://mylab4clustering.blog.co.in/files/2009/02/29-03.jpg
  • 8/9/2019 Cluster in VM

    13/18

    Click Next

    33) Type the name of the 2nd

    cluster node and click Add, in my case CLUSTER02

    Click Next

    http://mylab4clustering.blog.co.in/files/2009/02/33.jpghttp://mylab4clustering.blog.co.in/files/2009/02/32-01.jpghttp://mylab4clustering.blog.co.in/files/2009/02/32.jpg
  • 8/9/2019 Cluster in VM

    14/18

    34) Provide the password of the domain user account created in Step 10

    Click Next on the summary screen.

    Click Finish.

    http://mylab4clustering.blog.co.in/files/2009/02/34-01.jpghttp://mylab4clustering.blog.co.in/files/2009/02/34.jpghttp://mylab4clustering.blog.co.in/files/2009/02/33-01.jpg
  • 8/9/2019 Cluster in VM

    15/18

    !!! You have two node cluster configured on VMware Workstation!!!

    35) Now configure the heartbeat. Select Networks on the left pane. Right clickPrivate and select Properties

    36) Select Internal cluster communications only (private network)

    http://mylab4clustering.blog.co.in/files/2009/02/35.jpghttp://mylab4clustering.blog.co.in/files/2009/02/34-03.jpghttp://mylab4clustering.blog.co.in/files/2009/02/34-02.jpg
  • 8/9/2019 Cluster in VM

    16/18

  • 8/9/2019 Cluster in VM

    17/18

    39) Ensure that the Private network is on the top.

    40) Ensure that the quorum disk is Q: Drive

    All is done now.

    41) Testing a Failover to check if your Lab Cluster really works????Right Click on any resource and click on Initiate Failure

    http://mylab4clustering.blog.co.in/files/2009/02/41.jpghttp://mylab4clustering.blog.co.in/files/2009/02/40.jpghttp://mylab4clustering.blog.co.in/files/2009/02/39.jpg
  • 8/9/2019 Cluster in VM

    18/18