Você está na página 1de 18

1 .

How to Create Windows Cluster


2. Backup of Cluster
3. restore Cluser Backup
4. Backup cluster using ASR
5. 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 add
it 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 shared
with 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.10


2) 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 of Public. These are only for heartbeat
monitoring.
7) Click on Advanced
8 ) Ensure that “Register this connection address in DNS” is unchecked.

9) Disable “Enable LMHOSTS lookup” and select “Disable NetBIOS over TCP/IP”
Follow step 5 to 9 on the CLUSTER02 node with IP for Private as 10.10.10.11

10) Create a cluster service account on the Domain Controller which will be used
to configure cluster.

11) Ensure the check mark on “User cannot change password” and “Password never
expires”
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 local
Administrator group.
14) Follow step 13 and add the same domain user to CLUSTER02 local
administrator group.
15) Turn Off both nodes (CLUSTER01 & CLUSTER02) and create a quorum disk as
below.

16) Add HDD to CLUSTER01. Once the hard disk is created, just close the VM and
open the .vmx file in notepad and add the following lines (marked in red) to it. Save
the file.
17) Start the first cluster node VM (CLUSTER01), but ensure that the 2nd cluster
node (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:


20) After the format is completed, ensure you can write to the Q: Drive by trying to
create 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 the
quorum.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
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 click
Next.

26) Click Next on the below screen


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.
29) Click on Quorum and select the Drive Q: which will be shared between
CLUSTER01 and CLUSTER02. Click Next.

Click Next

Click Finish
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.
Click Next

33) Type the name of the 2nd cluster node and click Add, in my case “CLUSTER02”

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

Click Next on the summary screen.

Click Finish.
!!! You have two node cluster configured on VMware Workstation!!!

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

36) Select “Internal cluster communications only (private network)”


37) Similarly select the Properties of Public and ensure that the “Enable this network
for cluster use” and “All communication (mixed network)” is selected.

38) Heartbeat Adapter Prioritization. Right click on the cluster name and select
properties.
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
42) It should come back online on the same node.

43) Initiate Failure on the same resource three times and the fourth time the
resource should failover to the 2nd cluster node automatically.

44) You can also try Shutting down CLUSTER02 at this time and the resources should
failover and come online to CLUSTER01 automatically.

45) Or instead of Shutting down directly Power Off CLUSTER02 and the resources
should failover and come online on CLUSTER01.

Você também pode gostar