Server 2012 R2 – Lab Guide – Part 3 – Step by Step – Continuously Available File Server
In this lab, you will see how the new, continuously available file server in Windows Server 2012 allows user sessions to move from one file server node to another without any downtime. In this lab you will create the entire cluster environment starting with the configuration of the iSCSI storage and then the creation of the 2-node cluster. Once the cluster is complete, you will create the necessary cluster resources.
This lab assumes that you have completed these prior labs:
Server 2012 R2 – Lab Guide – Part 1 – Step by Step – Including Dual Boot Instructions
Server 2012 R2 - Lab Guide - Part 2 – Windows 2012 R2 – Storage
In this series of exercises, you will explore the following:
• Configuring iSCSI Target software.
• Create a 2-node failover cluster.
• Moving file server traffic to a different cluster node, without interruption of network services.
This lab requires the following host computers and virtual machines created during these previous labs.
Host Computers:
Your Hyper-V Host machine
? Host Name: [Various]
? OS: Windows Server 2012
? Primary Roles: Hyper-V Server
Virtual Machines:
- DC
? OS: Windows Server 2012
? Primary Roles: Domain Controller
? Additional Roles: DNS
- Storage
? OS: Windows Server 2012
? Primary Roles: File and Storage Services
- Cluster1
? OS: Windows Server 2012
? Primary Role: Failover Clustering
- Cluster2
? OS: Windows Server 2012
? Primary Role: Failover Clustering
Tasks that will occur in this lab module:
1) Add additional hardware to prepare for failover clustering.
2) Create a 2-node Failover Cluster (Part 1: Configure Storage).
3) Create a 2-node Failover Cluster (Part 2: Configure Cluster1 and Cluster2).
4) Connect to an existing failover cluster.
5) Configure Highly Available File Share.
6) Transfer file server traffic to a different cluster node, without interruption of network services.
Part 1 - Add additional hardware to prepare for failover clustering.
- Log on to Hyper-V host as Administrator with password: p@ssw0rd
- Start Hyper-V Manager
- Apply original snapshots for DC, Storage, Cluster1 and Cluster2.
- In Hyper-V Manager, create a new Hard Disk, in the right hand pane, click on New>Hard Disk...
Use the following parameters:
- Format: VHDX
- Disk Type: Dynamically Expanding
- Name: StorageDisk.vhdx
- Location: <drive> :\Images\Storage
- Size: 127 GB
Attaching the Disk to the Virtual Machine
- Right click the Storage virtual machine and go to settings.
- Select SCSI Controller in left panel; Click Hard Drive in right pane and click Add.
- Browse to <drive>:\Images\Storage\StorageDisk.vhdx and click Open, then click OK.
Adding the Cluster Heartbeat virtual network to the Cluster virtual machines
- Go to settings for the Cluster1 virtual machine
- Click on Add Hardware, then select Network Adapter and click Add.
- Select IT Camp Heartbeat from the drop down menu, then click OK.
- Perform steps 2 and 3 for the Cluster2 virtual machine
Part 2 - Create a 2-node Failover Cluster (Configure iSCSI).
- Start all four Virtual Machines (DC, Storage, Cluster1, and Cluster2).
- Log onto Storage as the corp\Administrator account with password: p@ssw0rd .
- From Server Manager, click Tools and then Computer Management.
- Select Disk Management, right click Disk 1 and select Online.
- Right Click Disk 6 and select Initialize, select Initialize as MBR, click OK.
- Right click on the striped area of Disk 6 and click New Simple Volume… Click Next, click Next, click Next, Click Next, Click Finish.
- In Server Manager Dashboard, in the top ribbon, click on Manage, Select Add roles and features.
- On the Server Roles section, drill down into File and Storage Services, Add iSCSI Target Server. Click Next, click Next, click Install.
- From Server Manager, select File and Storage Services | iSCSI.
- Click the Refresh button in the top ribbon of Server Manager.
Creating the iSCSI Target Devices - Quorum
- In the iSCSI Virtual Disk section, select New iSCSI Virtual Disk from the Tasks Drop down menu.
- Create iSCSI Virtual Disk and iSCSI Target with the following parameters:
Storage Location: Volume F:
Name: “Quorum”
Size: 1 GB
Dynamically Expanding
New iSCSI Target – keep this selected and click Next.
Name: ClusterStorage
Add Initiator ID by IP Address Type: 192.168.1.12 and 192.168.1.13, then click Next. Click Next. Click Create.
Creating the iSCSI Target Devices - FileStorage
- Create another iSCSI Virtual Disk and add to existing iSCSI Target
Storage Location: Volume F:
Name: “FileStorage”
Size: 50 GB
Keep Existing iSCSI Target select: ClusterStorage, and click Next, click Create
Create a 2-node Failover Cluster
Cluster1 – Set the Ethernet#2 adapter IP Address
- Log onto the console for Cluster1 as the corp\administrator account and password: p@ssw0rd
- Configure IP Address for newly added adapter with the following IP v4 information:
IP Address: 192.168.11.21
Subnet Mask: 255.255.255.0
DNS: 192.168.11.10
Connecting Cluster1 to the iSCSI Targets
- In Server Manager, click Tools and then iSCSI Initiator.
- Click Yes to prompt.
- Type 192.168.1.11 for Target and click Quick Connect and then Done.
- From the Volumes and Devices Tab click Auto Configure and then click OK.
- Still in Server Manager, click on the Tools drop down menu and select Computer Management | Disk Management, Bring the two new disks online, initialize them, Create and format a simple volume on each of the two disks. (E: drive will be the Quorum, and F: will be the FileStorage volume)
- Back in Server Manager. click on Manage, then select Add roles and features… On the Roles window select the File Server role, and then on the Features window select Failover Clustering feature (also accept the pop-up for the default dependencies).
Cluster2 – Set the Ethernet#2 adapter IP Address
- Log onto the console for the Cluster2 virtual machine as the corp\administrator account with the password: p@ssw0rd
- Configure IP Address for newly added adapter with the following IP v4 information:
IP Address: 192.168.11.22
Subnet Mask: 255.255.255.0
DNS: 192.168.11.10
Connecting Cluster2 to the iSCSI Targets
- In Server Manager, click Tools and then iSCSI Initiator.
- Click Yes to prompt.
- Type 192.168.1.11 for Target and click Quick Connect and then Done.
- From the Volumes and Devices Tab click Auto Configure and then click OK.
- Still in Server Manager, click on the Tools drop down menu and select Computer Management | Disk Management, Bring the two new disks online.
- Back in Server Manager. click on Manage, then select Add roles and features… On the Roles window select the File Server role, and then on the Features window select Failover Clustering feature (also accept the pop-up for the default dependencies).
Configuring the Cluster
- Switch back to the console for Cluster1.
- Click the Refresh button in the top ribbon of Server Manager. Select All Servers in the far left navigation pane, then in the middle pane right click Cluster1 and click Failover Cluster Manager
- In the right-hand Actions Pane, click Create Cluster.
- Add Cluster1 and Cluster2 to the cluster, click Next.
- Run the Validation Wizard and run all tests. (Be patient. It takes a while, ignore any pop ups about the volumes that may appear.) Click Finished when complete.
- Create the cluster with the following information:
Cluster name: MainCluster
IP Address: 192.168.1.14
Uncheck the192.168.11.0/24 network
Check Add all available storage to the cluster.
Create Highly Available File Shares
- Expand MainCluster.corp.contoso.loc and expand all Nodes, Storage and Networks.
- Take a few minutes and explore the environment (but don’t make any changes)
- In Failover Cluster Manager, click Roles.
- In Actions pane, click Configure Role.
- Configure a Cluster resource with the following information:
Server Role: File Server
File Server Type: Scale-Out File Server for application data
Name: HAFileServer
Configure the File Shares
- Expand Storage and click Disks. Right click Cluster Disk 1 and select Add to Cluster Shared Volumes.
- (You may need to wait for the network syncronization to finish for this step. This can take around 5 minutes in some lab environments, sometimes to speed up this process, right click the HAFileServer role and move it to Cluster1.) From the left-hand menu, click on Roles. Right Click HAFileServer and select Add File Share with the following information:
(NOTE: You may get a “The Client Access Point is not ready..” error. Wait a few minutes and try again. See note above as well.)
Profile: SMB Share – Applications
Share Location: C:\ClusterStorage\Volume1 (which is the default)
Share Name: VMStore
Other Settings: Accept Defaults
Transfer file server traffic to a different cluster node, without interruption of network services.
- Open the network share \\hafileserver\vmstore and copy the folder named NativeImages_v4.0.30319_32 from the C:\Windows directory to this new share. QUICK! In Failover Cluster Manager, right click HAFileServer and select Move | Select Node.
- Click OK to move to other Cluster Node. Monitor copy process to see that it does not fail. Delete the NativeImages_v4.0.30319_32 folder from the file share.
You have complete Lab Guide Part 3!
Follow Up Guides: coming soon:
Lab Guide 4 – Windows 2012 R2 – Hyper-V Over SMB
Lab Guide 5 – Windows 2012 R2 – Enabling Hyper-V Replica
Lab Guide 6 – Windows 2012 R2 – Shared Nothing Live Migration
More Information
Tommy’s Blog
https://www.virtuallycloud9.com
Windows Server Blogs
https://blogs.technet.com/b/windowsserver
Windows Server 2012 Product Download
https://aka.ms/ws2012tp
Microsoft Virtual Academy
https://aka.ms/tpva
Windows Server 2012 Virtual Labs
https://technet.microsoft.com/en-us/windowsserver/hh968267.aspx
Windows Azure 90-Day Free Trial Page
https://aka.ms/mshosting