0% found this document useful (0 votes)
67 views13 pages

Lab 8 Server 2016

Download as txt, pdf, or txt
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 13

[20740C] Module 08: Implementing Failover Clustering

1. Lab: Implementing failover clustering


Scenario:

Adatum Corporation is looking to ensure that its critical services, such as file
services, have better uptime and availability. You decide to implement a failover
cluster with file services to provide better uptime and availability.

Next Exercise

2. Exercise 1: Creating a failover cluster


Task 1: Connect cluster nodes to iSCSI shared storage

Configure the iSCSI targets

Log in to the LON-SVR1 virtual machine as Adatum\Administrator with password


Pa55w.rd (This password is the login for all VMs in this lab). On LON-SVR1, on the
taskbar, click Start, and then click Server Manager

In Server Manager, in the navigation pane, click File and Storage Services.

In the File and Storage Services pane, click iSCSI.

In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down
list, select New iSCSI Virtual Disk.

In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location
page, under Storage location, click C:, and then click Next.

On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk1,
and then click Next.

On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure
that GB is selected in the drop-down list, and then click Next.

On the Assign iSCSI target page, click New iSCSI target, and then click Next.

On the Specify target name page, in the Name text box, type lon-svr1, and then
click Next.

On the Specify access servers page, click Add.

In the Select a method to identify the initiator dialog box, click Enter a value
for the selected type, and in the Type drop-down list, select IP Address. In the
Value text box, type 172.16.0.22, and then click OK.

On the Specify access servers page, click Add.

In the Select a method to identify the initiator dialog box, click Enter a value
for the selected type, and then, in the Type drop-down list, select IP Address. In
the Value box, type 172.16.0.23, and then click OK.

On the Specify access servers page, click Next.

On the Enable Authentication page, click Next.

On the Confirm selections page, click Create.


On the View results page, wait until creation is complete, and then click Close.

In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down
list, select New iSCSI Virtual Disk.

In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location
page, under Storage location, click C:, and then click Next.

On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk2,
and then click Next.

On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure
that GB is selected in the drop-down list, and then click Next.

On the Assign iSCSI target page, click lon-svr1, and then click Next.

On the Confirm selections page, click Create.

On the View results page, wait until the creation is completed, and then click
Close.

In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down
list, select New iSCSI Virtual Disk.

In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location
page, under Storage location, click C:, and then click Next.

On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk3,
and then click Next.

On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure
that GB is selected in the drop-down list, and then click Next.

On the Assign iSCSI target page, click lon-svr1, and then click Next.

On the Confirm selections page, click Create.

On the View results page, wait until the creation is complete, and then click
Close.
Connect nodes to the iSCSI targets

On LON-SVR2, open Server Manager, click Tools, and then click iSCSI Initiator.

In the Microsoft iSCSI dialog box, click Yes.

In the iSCSI Initiator Properties window, click the Discovery tab, and then click
Discover Portal.

In the IP address or DNS name text box, type 172.16.0.21, and then click OK.

Click the Targets tab, and then click Refresh.

In the Targets list, click iqn.1991-05.com.microsoft:lon-svr1-lon-svr1-target, and


then click Connect.

Ensure that Add this connection to the list of Favorite Targets is selected, and
then click OK two times.
On LON-SVR3, open Server Manager, click Tools, and then click iSCSI Initiator.

In the Microsoft iSCSI dialog box, click Yes.

In the iSCSI Initiator Properties window, click the Discovery tab, and then click
Discover Portal.

In the IP address or DNS name text box, type 172.16.0.21, and then click OK.

Click the Targets tab, and then click Refresh.

In the Targets list, click iqn.1991-05.com.microsoft:lon-svr1-lon-svr1-target, and


then click Connect.

Ensure that the Add this connection to the list of Favorite Targets check box is
selected, and then click OK two times.

On LON-SVR2, in Server Manager, click Tools, and then click Computer Management.

Expand Storage, and then click Disk Management.

Right-click Disk 4, and then click Online.

Right-click Disk 4, and then click Initialize Disk.

In the Initialize Disk dialog box, click OK.

Right-click the unallocated space next to Disk 4, and then click New Simple Volume.

On the Welcome page, click Next.

On the Specify Volume Size page, click Next.

On the Assign Drive Letter or Path page, click Next.

On the Format Partition page, in the Volume Label text box, type Data1. Select the
Perform a quick format check box, and then click Next.

Click Finish.
Note: If a dialog box appears with a prompt to format the disk, click Cancel.

Repeat steps 17 through 25 for Disk 5 and Disk 6, using Data2 and Data3,
respectively, for volume labels.

Close the Computer Management window.

On LON-SVR3, in Server Manager, click Tools, and then click Computer Management.

Expand Storage, and click Disk Management.

Select and right-click Disk Management, and then click Refresh.

Right-click Disk 3, and then click Online.

Right-click Disk 4, and then click Online.

Right-click Disk 5, and then click Online.


Close the Computer Management window.
Previous ExerciseNext Exercise

3. Exercise 1: Creating a failover cluster


Task 2: Install the Failover Cluster feature

On LON-SVR2, if Server Manager is not open, click the Server Manager icon.

Click Add roles and features.

In the Add roles and features Wizard, on the Before You Begin page, click Next.

On the Select installation type page, click Next.

On the Select destination server page, ensure that Select a server from the server
pool is selected, and then click Next.

On the Select server roles page, click Next.

On the Select features page, in the Features list, select Failover Clustering.

In the Add features that are required for Failover Clustering window, click Add
Features, and then click Next.

On the Confirm installation selections page, click Install.

When installation completes and you receive the Installation succeeded on LON-
SVR2.Adatum.com message, click Close.

On LON-SVR3 and LON-SVR4, repeat steps 1 through 10.

When installation completes and you receive the Installation succeeded on LON-
SVR3.Adatum.com message, click Close.
Previous ExerciseNext Exercise

4. Exercise 1: Creating a failover cluster


Task 3: Validate the servers for failover clustering

On LON-SVR2, in Server Manager, click Tools, and then click Failover Cluster
Manager.

In Failover Cluster Manager, in the Actions pane, click Validate Configuration.

In the Validate a Configuration Wizard, click Next.

In the Enter Name text box, type LON-SVR2, and then click Add.

In the Enter Name text box, type LON-SVR3.

Click Add, and then click Next.


Verify that Run all tests (recommended) is selected, and click Next.

On the Confirmation page, click Next.

Wait for the validation tests to finish, which might take between 5 and 7 minutes,
and then on the Summary page, scroll through the report. Verify that all tests
completed without errors. Some warnings are expected.

On the Summary page, click Finish.


Previous ExerciseNext Exercise

5. Exercise 1: Creating a failover cluster


Task 4: Create the failover cluster

In the Failover Cluster Manager, in the Actions pane, click Create Cluster.

On the Before you begin page, click Next.

On the Select Servers page, in the Enter server name box, type LON-SVR2, and then
click Add.

In the Enter server name box, type LON-SVR3, click Add, and then click Next.

On the Access Point for Administering the Cluster page, in the Cluster Name text
box, type Cluster1.

In the Address text box, type 172.16.0.125, and then click Next.

On the Confirmation page, click Next.

On the Summary page, click Finish.


Previous ExerciseNext Exercise

6. Exercise 1: Creating a failover cluster


Task 5: Add the file-server application to the failover cluster

On LON-SVR2, in the Failover Cluster Manager console, expand Cluster1.Adatum.com,


expand Storage, and then click Disks.

Ensure that three disks named Cluster Disk 1, Cluster Disk 2, and Cluster Disk 3
are present and online.

Right-click Roles, and then click Configure Role.

On the Before You Begin page, click Next.

On the Select Role page, click File Server, and then click Next.

On the File Server Type page, click File Server for general use, and then click
Next.
On the Client Access Point page, in the Name text box, type AdatumFS. In the
Address text box, type 172.16.0.130, and then click Next.

On the Select Storage page, select the Cluster Disk 2 check box, and then click
Next.

On the Confirmation page, click Next.

On the Summary page, click Finish.


Previous ExerciseNext Exercise

7. Exercise 1: Creating a failover cluster


Task 6: Add a shared folder to a highly-available file server

On LON-SVR3, in the Server Manager console, click Tools, and then click Failover
Cluster Manager.

Expand Cluster1.Adatum.com, click Roles, right-click AdatumFS, and then click Add
File Share.

In the New Share Wizard, on the Select the profile for this share page, click SMB
Share - Quick, and then click Next.

On the Select the server and the path for this share page, click Next.

On the Specify share name page, in the Share name text box, type Docs, and then
click Next.

On the Configure share settings page, review the available options but do not make
any changes, and then click Next.

On the Specify permissions to control access page, click Next.

On the Confirm selections page, click Create.

On the View results page, click Close.


Previous ExerciseNext Exercise

8. Exercise 1: Creating a failover cluster


Task 7: Configure failover and failback settings

On LON-SVR3, in the Failover Cluster Manager console, click Roles, right-click


AdatumFS, and then click Properties.

In the AdatumFS Properties dialog box, click the Failover tab, and then click Allow
failback.

Click Failback between, and set the values to 4 and 5 hours.

Click the General tab.


Select both LON-SVR2 and LON-SVR3 as preferred owners.

Select LON-SVR3,and click Up so that it is first in the preferred owners list.

To close the AdatumFS** Properties dialog box, click OK**.


Previous ExerciseNext Exercise

9. Exercise 1: Creating a failover cluster


Task 8: Validate the highly available file-server deployment

On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then
press Enter.

Verify that you can access the location and that you can open the Docs folder.

Create a text document inside this folder named test.txt.

On LON-SVR2, switch to Failover Cluster Manager.

In the Failover Cluster Manager console, expand Cluster1.Adatum.com, and then click
Roles.

In the Owner Node column, note the current owner of AdatumFS.


Note: The owner will be LON-SVR2 or LON-SVR3.

Right-click AdatumFS, click Move, and then click Select Node.

In the Move Clustered Role dialog box, select the cluster node (it will be either
LON-SVR2 or LON-SVR3 ), and then click OK.

Verify that AdatumFS has moved to a new owner.

Switch to LON-DC1.

To verify that you can still access the \\AdatumFS\ location, open File Explorer,
and in the address bar, type \\AdatumFS\, and then press Enter.
Previous ExerciseNext Exercise

10. Exercise 1: Creating a failover cluster


Task 9: Validate the failover and quorum configuration for the File Server role

On LON-SVR2, in the Failover Cluster Manager console, click Roles.

In the Owner Node column, verify the current owner for the AdatumFS role.
Note: The owner will be LON-SVR2 or LON-SVR3.

Click Nodes, and then select the node that is the current owner of the AdatumFS
role.

Right-click the node, click More Actions, and then click Stop Cluster Service.
In the Failover Cluster Manager console, click Roles, and verify that AdatumFS is
running.
Note: This confirms that AdatumFS has moved to another node.

Switch to LON-DC1.

On LON-DC1, to verify that you can still access the \\AdatumFS\ location, open File
Explorer. In the address bar, type \\AdatumFS\, and then press Enter.

Switch to LON-SVR2.

In the Failover Cluster Manager console, click Nodes, right-click the stopped node,
click More Actions, and then click Start Cluster Service.

Expand Storage, and then click Disks.

In the center pane, find the disk that is assigned to Disk Witness in Quorum.
Note: You can view this in the Assigned To column.

Right-click the disk, click Take Offline, and then click Yes.

Switch to LON-DC1.

On LON-DC1, to verify that you can still access the \\AdatumFS\ location, open File
Explorer, and in the address bar, type \\AdatumFS\, and then press Enter.
Note: This verifies that the cluster is running even if the witness disk is
offline.

Switch to LON-SVR2.

In the Failover Cluster Manager console, expand Storage, click Disks, right-click
the disk that is in Offline status, and then click Bring Online.

Right-click Cluster1.Adatum.com, click More Actions, and then click Configure


Cluster Quorum Settings.

On the Before You Begin page, click Next.

On the Select Quorum Configuration Option page, click Advanced quorum


configuration, and then click Next.

On the Select Voting Configuration page, review the available settings.


Note: Notice that you can select a node or nodes that will, or will not, have a
vote in the cluster.

Do not make any changes, and then click Next.

On the Select Quorum Witness page, ensure that Configure a disk witness is
selected, and then click Next.

On the Configure Storage Witness page, click Cluster Disk 3, and then click Next.

On the Confirmation page, click Next.

On the Summary page, click Finish.


Previous ExerciseNext Exercise

11. Exercise 2: Verifying quorum settings and adding a node


Task 1: Remotely connect to a cluster

If necessary, sign in to LON-CL1 with the username Adatum\Administrator and the


password Pa55w.rd.

Click Start, click Windows Administrative Tools, and then click Failover Cluster
Manager.

In Failover Cluster Manager, right-click Failover Cluster Manager, and then click
Connect to Cluster.

In the Select Cluster dialog box, in the Cluster name box, type
Cluster1.Adatum.com, and click OK.

Expand Cluster1.Adatum.com, and then click Roles.


Previous ExerciseNext Exercise

12. Exercise 2: Verifying quorum settings and adding a node


Task 2: Check the assigned votes in the Nodes section

On LON-SVR2, right-click Start, and then click Windows PowerShell (Admin).

In Windows PowerShell console, run following cmdlet to check the assigned votes:
Get-ClusterNode | select name, nodeweight, ID, state

Verify that the NodeWeight property of a cluster node has value 1, which means that
the quorum vote of the node is assigned and that the cluster is managing it.
Previous ExerciseNext Exercise

13. Exercise 2: Verifying quorum settings and adding a node


Task 3: Verify the status of the disk witness

On LON-SVR2, in the Windows PowerShell console, type the following command, and
then press Enter:
Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType
Previous ExerciseNext Exercise

14. Exercise 2: Verifying quorum settings and adding a node


Task 4: Add a node in the cluster
On LON-SVR2, in the Failover Cluster Manager, click Nodes.

In the Actions pane, click Add Node.

On the Before You Begin page, click Next.

On the Select Servers page, in the Enter server name box, type LON-SVR4, click Add,
and then click Next.

On the Validation Warning page, click Next.

Complete the validation by using the defaults.

On the Summary page of the Validate a Configuration Wizard, click Finish.

In the Add Node Wizard, on the Confirmation page, click Next.

On the Summary page, click Finish.


Previous ExerciseNext Exercise

15. Exercise 2: Verifying quorum settings and adding a node


Task 5: Verify the assigned votes

On LON-SVR2, in Windows PowerShell console, type following cmdlet, and then press
Enter:
Get-ClusterNode | select name, nodeweight, ID, state

Verify that the NodeWeight property of a cluster node has value 1, which means that
the quorum vote of the node is assigned and that the cluster is managing it.
Previous ExerciseNext Exercise

16. Exercise 2: Verifying quorum settings and adding a node


Task 6: Prepare for the next lab

When you finish the lab, leave the virtual machines running for the subsequent lab.

Previous ExerciseNext Exercise

17. Lab: Managing a failover cluster


Scenario:

Adatum Corporation recently implemented failover clustering for better uptime and
availability. The implementation is new and your boss has asked you to go through
some failover-cluster management tasks so that you are prepared to manage it moving
forward.

Previous ExerciseNext Exercise


18. Exercise 1: Evicting a node and verifying quorum settings
Task 1: Evict node LON-SVR4

On LON-SVR3, if necessary, open Failover Cluster Manager.

Expand the Cluster1.Adatum.com cluster, and then click Nodes.

Right-click the LON-SVR4 node, click More Actions, and then click Evict.

In the Evict node LON-SVR4 dialog box, click Yes to evict the node.
Previous ExerciseNext Exercise

19. Exercise 1: Evicting a node and verifying quorum settings


Task 2: Verify changes in quorum settings and the witness disk

On LON-SVR2, in the Windows PowerShell console, type following cmdlet, and then
press Enter:
Get-ClusterNode | select name, nodeweight, ID, state

Verify that the NodeWeight property of a cluster node has value 1, which means that
the quorum vote of the node is assigned and is managed by the cluster.
Previous ExerciseNext Exercise

20. Exercise 2: Changing the quorum from disk witness to file-share witness and
defining node voting
Task 1: Get the current quorum model

On LON-SVR2, in the Windows PowerShell console, type the following command, and
then press Enter:
Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType
Previous ExerciseNext Exercise

21. Exercise 2: Changing the quorum from disk witness to file-share witness and
defining node voting
Task 2: Create a file share on LON-SVR1

On LON-SVR1, on the taskbar, click File Explorer, right-click the disk Local Disk
(C:), click New, and then click Folder.

Type FSW,and press Enter.

Right-click FSW, click Share with, and then click Specific people.
In the File Sharing dialog box, type Everyone, and then click Add.

In the Read list, click Read/Write.

Click Share, and then click Done.


Previous ExerciseNext Exercise

22. Exercise 2: Changing the quorum from disk witness to file-share witness and
defining node voting
Task 3: Change the current quorum model to a file-share witness

On LON-SVR2, in the Windows PowerShell console, type the following command, and
then press Enter:
Set-ClusterQuorum -NodeAndFileShareMajority "\\LON-SVR1\FSW"
Previous ExerciseNext Exercise

23. Exercise 2: Changing the quorum from disk witness to file-share witness and
defining node voting
Task 4: Verify that the current quorum model is a file share witness

On LON-SVR2, in the Windows PowerShell console, type the following command, and
then press Enter:
Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType
Previous ExerciseNext Exercise

24. Exercise 3: Verifying high availability


Task 1: Simulate server failure

On LON-SVR2,in the Failover Cluster Manager console, expand Cluster1.Adatum.com,


and then click Roles.

In the Owner Node column, notice the current owner of AdatumFS.


Note: The owner will be LON-SVR2 or LON-SVR3.

If LON-SVR3 is not the owner, right click AdatumFS, click Move, click Select Node,
click LON-SVR3,and then click OK.

Shut down LON-SVR3.


Previous ExerciseNext Exercise

25. Exercise 3: Verifying high availability


Task 2: Verify functionality in Cluster1 and verify file availability
On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then
press Enter.

Verify that you can access the location and that you can open the Docs folder.

Create a test text document named test2.txt inside this folder.


Previous ExerciseNext Exercise

26. Exercise 3: Verifying high availability


Task 3: Validate whether the file is still available

Start LON-SVR3 virtual machine.

On LON-SVR2, In the Failover Cluster Manager console, expand Cluster1.Adatum.com,


and then click Roles.

Right click AdatumFS, click Move, click Select Node, click LON-SVR3,and then click
OK.

On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then
press Enter.

Verify that you can access the location and that you can open the Docs folder.

Create a test text document named test3.txt inside this folder.


Previous Exercise

You might also like