Thursday, October 16, 2008

Windows Server 2008 -- High Availability

Objectives
1. Configure an iSCSI SAN.
2. Configure Windows Failover Clustering.
3. Create a highly available file server.
4. Create a highly available DHCP server.
5. Use the Cluster.exe tool.

Exercise 1: Configuring the iSCSI Target Software and iSCSI Initiator to Create an iSCSI SAN


Create a new iSCSI target
In this task you will create a new iSCSI Software Target. An iSCSI Software Target uses virtual disks as storage, and is linked to one or more iSCSI Initiators. The iSCSI Initator and target is identified by an IQN (iSCSI qualified name), IP Address, DNS Name, or MAC Address.

Note -> Please install the Windows iSCSI software on SAN Server.
1. Ensure you are logged on to SAN Server as Administrator with a password.
2. On the desktop open Microsoft iSCSI Target.
3. In iSCSITarget, click iSCSI Targets and then on the Action menu, click Create iSCSI Target.
4. In the Create iSCSI Target Wizard, click Next.
5. On the iSCSI Target Identification page, in Target name, type San-01, and in Description type SAN, and then click Next.
6. On the ISCSI Initiators Identifiers page, click Advanced.

It is important that the IQN name match the value in the manual, or the SAN will fail to connect. If you are unable to connect to your iSCSI target, verify these values as the first troubleshooting step.
7. In the Advanced Identifiers dialog box, click Add.
8. In the Add/Edit Identifier dialog box, in Identifier type, select IP Address, in Value type 11.0.0.1, and then click OK.
9. In the Advanced Identifiers dialog box, click Add.
10. In the Add/Edit Identifier dialog box, in Identifier type, select IP Address, in Value type 11.0.0.2, and then click OK.
11. Click OK to close the Advanced Identifiers dialog box.
12. On the iSCSI Iniatiors Identifiers page, click Next, and then click Finish.
13. In iSCSITarget, expand iSCSI Targets, and then click SAN-01.
14. On the Action menu, click Properties.
15. In the SAN-01 Properties dialog box, on the Authentication tab, check Enable CHAP.
16. In User name, type iscsiuser, in Secret and Confirm secret type iscsiPassw0rd!, and then click OK


Assign storage devices to the iSCSI target
The Windows iSCSI Software Target makes use of virtual hard disks (VHD’s) as the source for storage. Each VHD is exposed as a volume that is available to the iSCSI Initiator. In this task you will assign three existing VHD’s as storage for the ISCSI target.

1. Ensure you are logged on to SAN-01 as Administrator with a password.
2. In iSCSITarget, expand iSCSI Targets, and then click SAN-01.
3. On the Acton menu, click Add Existing Virtual Disk to iSCSI Target.
4. In the Add Virtual Disk dialog box, click Virtual Disk 0, and then click OK
5. Repeat steps 2 through 4 to add Virtual Disk 1, and Virtual Disk 2.


Configure the iSCSI initiators’ on each node
Windows Server 2008 includes an iSCSI initiator. In this task you will configure the iSCSI Initiator to communicate with the iSCSI target you created in the previous exercise. You will then connect to the storage devices and bring them online on each cluster node. On Windows Server 2008 Core, the initiator is configured using the ISCSICLI command. This command is included in Windows Server 2008 as well, along with a control panel applet that allows you to configure the initiator through the user interface. In this task you will add the target portal, the target, and login to the target. You will then use the DISKPART command to import the storage and create partitions that Windows can use.


1. Ensure you are logged on to NODE-01 as Domain\Administrator with a password
2. In the Command Prompt, type the following commands, pressing ENTER after each one. This sequence of commands will configure the iSCSI initiator in each node, and import the storage on the SAN.
a) iscsicli qaddtargetportal san-01

b) iscsicli qaddtarget iqn.1991-05.com.microsoft:san-01-san-01-target san-01

c) iscsicli qlogintarget iqn.1991-05.com.microsoft:san-01-san-01-target iscsiuser "password"

d) diskpart select disk 1

e) attribute disk clear readonly online

f) disk create part primary select part 1

g) assign letter=j

h) select disk 2

i) attribute disk clear readonly

j) online disk

k) create part primary

l) select part 1

m) assign letter=k

n) select disk 3

o) attribute disk clear readonly

p) online disk

q) create part primary

r) select part 1

s) assign letter=l

s) exit

Format all the disks with quik format e.g Foramat "assigned letter" /q

3. Log on to NODE-02 as Domain\Administator with password.
4. In the Command Prompt, type the following command to install the Failover Clustering feature. Note the command is case sensitive.
OCSetup FailoverCluster-Core
5. In the Command Prompt, type the following commands, pressing ENTER after each one. This sequence of commands will configure the iSCSI initiator in each node, and import the storage on the SAN.

a) iscsicli qaddtargetportal san-01

b) iscsicli qaddtarget iqn.1991-05.com.microsoft:san-01-san-01-target san-01

c) iscsicli qlogintarget iqn.1991-05.com.microsoft:san-01-san-01-target iscsiuser iscsiPassw0rd!

Exercise 2: Creating a Windows Failover Cluster

In this exercise you will create a new Windows Failover Cluster. You will begin by configuring two nodes. The Windows Failover Clustering feature has already been installed to save time. You will first review a cluster validation report. The failover clustering administrator tool optionally performs an extensive series of tests to ensure that the configuration of the two nodes will support a failover cluster. You will then use the Failover Cluster Manager to create a new failover cluster.

Verifying the failover clustering feature has been installed.
Windows Failover Clustering is a Windows Server 2008 feature that can be installed on a full server or on server core. On a full server it can be verified by viewing the installed features in Server Manager. On server core installations, it can be verified using the OCLIST command.

1. Ensure you are logged on to NODE-01 as Domain\Administrator with a password.
2. In the Command Prompt, type the following command, and then press ENTER.
OCLIST Find "Cluster"

Validating a cluster configuration
The cluster validation wizard performs an extensive series of tests to ensure that your system is correctly configured and prepared to function as a failover cluster. The cluster validation wizard results can be saved as a report. Performing the full set of validation tests can take an extended period of time.

a) Ensure you are logged on to SRV-01 as Domain\Administrator with a password.
b) On the Start Menu, point toAdministrative Tools and then click Failover Cluster Management.
c) In Failover Cluster Management, in the Actions pane, click Validate a Configuration.
d) In the Before You Begin page, click Next.
e) On the Select Servers or a Cluster page, in Enter name, type NODE-01 and then click Add.
f) In Enter name, type NODE-02, click Add, and then click Next.
g) On the Testing Options page, click Run all tests (recommended) and then click Next.
h) On the Confirmation page, click Cancel.
[This action was cancelled as running the actual configuration report can take between 10 and 15inutes.]

Create a new failover cluster
In this task you will use the cluster management tools to create a new cluster. The cluster management tools will be run on one node in the cluster, but will configure both nodes correctly. The improved user interface, with easy to use wizards and detailed status is one of the newest and most improved areas in Windows Server 2008 Failover Clustering.
1. In Failover Cluster Management, in the Actions pane, click Create a Cluster.
2. In the Create Cluster Wizard, click Next.
3. On the Select Servers page, in Enter server name, type NODE-01 and then click Add.
4. In Enter server name, type NODE-02, click Add, and then click Next.
5. On the Validation Warning page, click No, I do not require…, and then click Next.
A cluster validation report is required to receive technical support from Microsoft. We have not run the cluster validation report in this lab to ensure you can complete the lab in the estimated time.
6. On the Access Point for Administering the Cluster page, in Cluster Name type Cluster, in Address type "Ip Address", and then click Next.
7. On the Confirmation page, click Next, and once the configuration is complete, click Finish.
8. In Failover Cluster Management, click Cluster.Domain.com.
9. Review the Summary of Cluster Cluster and Cluster Core Resources areas.

Exercise 3: Creating Highly Available Resources

In this task you will create and test a highly available file server. You will first create the file server resources, and then create a new file share. In addition, you will create a highly available DHCP server. The DHCP server is not part of the overall scenario, but is included to give you experience using additional aspects of failover clustering

Create a Highly Available File Server
In this task you will perform the second step in creating a failover cluster. You will create a new failover file server. You will assign the clustered file server a unique name and IP address that clients will use when they want to connect to the cluster. You will use the shared folder wizard in the cluster management tools to create a new highly available shared folder.

1. In Failover Cluster Management, in the explorer pane, select Services and Applications.
2. In the Actions pane, click Configure a Service or Application.
3. In the High Availability Wizard, on the Before You Begin page, click Next.
4. On the Select Service or Application page, click File Server, and then click Next.
5. On the Client Access Point page, in Address, type "Ip Address" and then click Next.
6. On the Select Storage page, check Cluster Disk 2, and then click Next.
7. On the Confirmation page, click Next, and when the configuration is completed, click Finish.
8. In Failover Cluster Management, under Services and Applications, click ClusterFS, and then on the Action menu, click Add a Shared Folder.
9. In the Provision a Shared Folder Wizard, (ClusterFS) wizard, in Location, type k:\Auditing, and then click Next.
10. In the Provision a Shared Folder Wizard dialog box, click Yes.

Note: F: is the local drive letter for the shared storage on the cluster node. This drive letter was assigned when the virtual hard disks for this lab were pre-created.

11. On the NTFS Permissions page, click Next.
12. On the Share Protocols page, click Next.
13. On the SMB Settings page, click Next
14. On the SMB Permissions page, click Next
15. On the DFS Namespace Publishing page, click Next.
16. On the Review Settings and Create Share page, click Create
17. On the Confirmation page, click Close.

Create a Highly Available DHCP Server
In this task you will create a highly available DHCP server by adding the DHCP service to the cluster. The failover clustering management tool will verify that each node is a candidate for a highly available DHCP service by ensuring that DHCP is installed on each node.

1. In Failover Cluster Management, click Services and Applications, and then in the Actions pane, click Configure a Service or Application.
2. In the High Availability Wizard wizard, click Next, select DHCP server, and then click Next.
3. On the Client Access Point page, in Address, type "IP Address", and then click Next.
4. On the Select Storage page, check Cluster Disk 3, and then click Next.
5. On the Confirmation page, click Next, and then once the cluster has been configured, click Finish.

Verify the Highly Available DHCP Server is Configured
In this task you will verify that the DHVP server is available for configuration using the DHCP management tool on SRV-01

1. Ensure you are logged on to SRV-01 as Domain\Administrator with a password.
2. On the Start menu, point to Administrative Tools, and then click DHCP.
3. In DHCP, on the Action menu, click Add Server.
4. In the Add Server dialog box, in This Server, type clusterDHCP.Domain.com, and then click OK.
5. In DHCP, click ClusterDHCP.Domain.com.

Exercise 4: Testing the Failover Cluster
In this exercise you will perform a series of tests to ensure that your cluster is functioning properly. You will first ensure that you can access the cluster using the shared resource name. Then you will perform a manual failover. Manual failover is generally performed for scheduled downtime or maintenance. Finally you will test to ensure that automatic failover takes place.

Verify File Server Cluster Connectivity
In this task you will use Windows Explorer to navigate to the shared cluster resource.

1. Ensure you are logged on to SRV-01 as Domain\Administrator with a password.
2. On the Start menu, in Start Search, type
file://clusterfs.domain.com/auditing and then press ENTER.
3. Verify that Windows Explorer opens and displays the contents of the Auditing folder.
The auditing folder will be empty.

Verify Manual Failover of the Cluster
To perform a test of manual failover, you will connect to one node in the cluster and then move the file server resource to the other node.

1. Ensure you are logged on to SRV-01 as Domain\Administrator with a password "" and that you have Failover Cluster Management open.
2. In Failover Cluster Management, under Services and Applications, click ClusterFS.
3. In the contents pane, note the value of Current Owner.
4. In the Actions pane, point to Move this service or application to another node and then click Move to NODE-01.
5. In the Please confirm action dialog box, click Move ClusterFS to NODE-01.
In some situations, the current owner value may be different. If the current owner value NODE-01, then, move the service to NODE-02. Once this process is completed, move the service back to NODE-01 to complete the remaining tasks. When the Current Owner value changes to the other node, the cluster has failed over.
6. In Windows Explorer, in the Auditing folder, press F5 to verify you can access the cluster resource.

Verify Automatic Failover of the Cluster
Automatic failover occurs when one of the cluster nodes is no longer responsive. In this task you will simulate a network failure of one node by disabling the network interface. You will then observe the results as the cluster resource fails over to the functioning node.

1. Ensure you are logged on to SRV-01 as Domain\Administrator with a password, and that you have Failover Cluster Management open.
2. In Failover Cluster Management, navigate to Cluster.Domain/Services and Applications, and then click ClusterFS.
3. In the contents pane, note the value of Current Owner.
4. Ensure you are logged on to NODE-01 as Domain\Administrator with a password.
5. Disabled the Network card of Node -01.
6. Switch to SRV-01 and view Failover Cluster Management. Note that the service fails over to NODE-02 automatically.

This automatic failover may take several minutes. During this time the Failover Cluster Management console may hang, or appear unresponsive.

7. Switch to NODE-01.
8. Enable the Network Cards of Node-01.

Exercise 5: Administering a Cluster using Cluster.exe

Cluseter.exe is the command line interface included in Windows Server 2008 Failover clustering. The cluster.exe tool allows administrators to perform almost all cluster configuration and management tasks, and makes it easy to create automation scripts which automate tasks and respond to cluster events. In this exercise you will perform three common tasks in a Cluster. You will first evict a node from a cluster. You will then add a new node to a cluster, and finally you will perform manual failover of a cluster resource.

Removing a Node From the Cluster Using Cluster.exe
In this task you will use the Cluster.exe command to remove a node from a cluster. This process is referred to as eviction.

1. Ensure you are logged on to NODE-01 as Domain\Administrator with a password and that you have a command prompt window open.
2. In the Command prompt window, type the following command, and then press Enter.
Cluster NODE NODE-01 /EVICT

Adding a Node to a Cluster
In this task you will add the evicted node back into the cluster. This command can be used when you want to automate the addition of nodes.

1. Ensure you are logged on to NODE-02 as Domain\Administrator with a password and that you have a command prompt window open.
2. In the Command prompt window, type the following command, and then press Enter.
Cluster /add /node:NODE-01

Manually Failing over a Resource
In this task you will perform manual failover of the cluster. This command can be used in scripts that are used during system maintenance.

1. Ensure you are logged on to NODE-02 as Domain\Administrator with a password and that you have a command prompt window open.
2. In the Command prompt window, type the following command, and then press Enter.
Cluster GROUP ClusterFS /move:node-01