NOTE: this is for quick reference for a friend… I CANNOT guarantee that this information is correct
This will be a quick blog post about setting up file server clustering. I will be expanding on another blog post that I found here. I will focus more on setting up storage and testing out clustering. I will be testing my cluster setup on a subnet on my domain.
- Set up a test domain. My test domain will be called “nc-net”.
- One machine running server 2012, set up with ADDS, DNS and DHCP. I Called this “NC-ADDS”.
- One machine running server 2012, with extra attached storage of 100 GB’s and call this “Nc-Windowsfiler”
- Two machines running server 2012, called “SMB1” and “SMB2”. These will be our cluster node machines.
- One machine running windows 8. This will be our client used for testing the cluster.
- Make a domain administrator account on your test domain. Use this account to setup everything.
Setup Cluster Storage Subnet
- My test domain “nc-net” will need a subnet for my cluster to talk to each other.
- I made my cluster storage subnet ip range 192.168.2.0 ->192.168.2.255.
- SMB1&2 and NC-windowsFiler are all connected to this subnet with a second NIC.
- “nc-net” does not have to connect to the internet.
Install ISCSI Target Server feature
- On the “NC-WindowsFiler” machine, run “Add roles and features”. In roles add “File and Storage Services” and make sure to select “iSCSI Target server”
- Finish the installation.
Start the iSCSI initiator on cluster nodes
- On SMB1 & 2, start the iSCSI initiator.
- Start -> Control panel -> iSCSI intiator -> let the service start.
Configure NC-windowfiler as iSCSI Target server.
- On “NC-WindowsFiler” bring your 100GB hard drive online. Call the virtual hard drive “SMBShared” and assign it a drive letter (I used E:).
- Navigate to “File and Storage Services” -> iSCSI -> “To create an iSCSI virtual disk, start the New iSCSI Virtual Disk Wizard”.
- The “New iSCSI Virtual Disk Wizard” will appear, under “Server:” you should see your “NC-windowsFiler” server. Under storage location choose your “SMBShared” hard drive and hit next.
- Assign the new virtual disk you are creating a name like “iscsi virtual disk”.
- Assign the virtual disk size.
- Assign the iSCSI Target -> new iSCSI Target.
- For the iSCSI Target name I used “iscsitarget”. Proceed to allow SMB1 & SMB2 access to this iSCSI Storage.
- If one of the SMB’s isnt showing up, you may need to hit “Browse” -> search for computer.
- If an SMB still isnt showing up, ensure that the iSCSI initiators have been started on your SMB’s.
- Skip Authentication for now. You may set this up later if you want.
- Install the iSCSI Target role and you should see this screen when the installation is finished.
Configure iSCSI initiators on cluster nodes
- On both SMB’s do the following.
- Open the iSCSI initiator.
- In the box next to “Target:” enter the iSCSI Target name you just set up (I inputted “iSCSITarget”).
- Hit “Quick connect” and a menu called “Quick Connect” will appear. Under “Discovered Targets” you should see your “iqn…iscsiTarget…” and the status should be connected. Under progress report you should see a “Login Succeeded” notice.
Configure disks on cluster nodes
- Do the following on both cluster nodes.
- Open computer management -> disk management.
- Bring the new offline disk online and initialize it as a GPT partition.
- i think once the disk was online, the volume was already configured and called SMBshared.
- The disks should now be visible on both servers.
Setup the cluster
Run validation tests
- Again do the following for both cluster nodes.
- Install the fail over cluster feature.
- Add roles -> features -> “fail over clustering”.
- Open “Fail over Cluster Manager” and select “Validate Configuration”. Hit next and select your cluster nodes. You can only test one at a time.
- Run all tests.
- The validation test will finish. Make sure there are no errors, though there may be a couple warnings.
Create the cluster
- In “Fail over Cluster manager” choose “Create Cluster” from the main menu.
- For the “Select servers” step, input both SMB server names as selected servers.
- Name the cluster “smbcluster” and assign the cluster an IP address.
- Hit next until the end and your cluster should be setup.
Setup Cluster Access Point
- In “Fail over Cluster manager”, expand “smbcluster.nc-net.local” and right click on “Roles” -> add role.
- Select “File Server” and hit next.
- For the “File Server Type”, use “Scale-Out File Server for application data”.
- Assign a name to the client access point. I used “clusterAP” as my name.
- Finish up with the installation.
Enable clients to connect through SAN subnet
- In “Failover Cluster manager”, expand “Networks” and open the properties of “Cluster Network 2”.
- Check the box “Allow clients to connect through this network”.
Setup Cluster Storage
- In “Failover Cluster manager”, expand the “Storage” folder and right click “Disks” -> “Add Disk”.
- Note: If you get a warning that states “No disks suitable for cluster disks were found. For diagnostic information about disks available to the cluster, use the validate a Configuration wizard to run storage tests” check your configuration\look at the trouble shooting at end of this blog.
- A menu will appear named “Add disks to cluster”. Select the available cluster disk and hit “ok”.
- Choose “Scale Out File server…” for your type of cluster storage.
- Set the path for the new shared volume you are creating. The default path should be fine. Just give the share folder a name.
- My cluster storage path is “C:\ClusterStorage\Volume1”.
- Finish the installation, and your cluster should be set up!
- Note: I setup my Quorum based on a 2 node cluster, your setup may be different, check “Clustering and High Availability” for your settings.
- Add another disk to your “NC-WindowsFiler” VM. Bring it online and initialize it.
- Add this disk to your iSCSI target.
- FIle and storage sevices -> iSCSI -> tasks -> New iSCSI virtual disk -> name it “witness”.
- Now the disk should appear on your SMB’s. Bring the disk online on both SMB nodes.
Setup Quorum for the cluster
- On either SMB do the following (not both):
- Open “Failover cluster manager” and right click your cluster name -> “More actions” -> “Configure Cluster Quorum Settings”
- For the “Select Quorum Configuration Option” menu, select the third option “Advanced Quorum configuration and witness selection” and hit next.
- For “Select Voting Configuration”, select “All Nodes” and hit “Next”.
- Check the box next to, “Allow cluster to dynamically manage the assignment of node votes” and hit next.
- For “Select Quorum Witness”, select “Configure a disk witness”.
- For “Configure Storage Witness”, put a check next to “Cluster Disk 2”.
- HIt next and confirm your installation settings. Install the Quorum when you are ready.
- OpenFiler is probably not the best chioce for hosting a iSCSI target.
- I set up an open filer vm as my iSCSI Target, but ran into problems when I tried to add a disk to the cluster. I kept receiving the error below.
- “No disks suitable for cluster disks were found. For diagnostic information about disks available to the cluster, use the validate a Configuration wizard to run storage tests”.
- The only way to fix this is by purchasing the 1000 euro “Advanced iSCSI Target plugin” from their website… nope!
If you have any questions\concerns please feel free to comment. Please no comment spam… I get so much already 😦