#009 Build a Windows Server Failover Cluster - Part 5
Last week, you finished adding the shared storage.
We'll complete the cluster build this week in preparation for the SQL Server installation. There's a twist, though. Instead of using your domain admin credentials (the admin_* account you created in challenge 004) to build the cluster, we'll use our standard user account that was added as a local admin on each node. You'd likely encounter this situation when building clusters within a production environment.
This challenge has seven objectives.
- Create the Cluster Network Object (computer account) in Active Directory.
- Disable the CNO in AD.
- Grant full control permissions to the user you'll use to create the cluster (your non-domain admin account).
- Create the cluster and review any warnings.
- Set the CNO to use a static IP address
- Add storage
- Configure quorum
If you're using Vagrant, go ahead and spin up your lab using "vagrant up".
Ready?
Estimated time to complete: Less than 4 hours.
Step 1: Create the Cluster Network Object in Active Directory
We're going to pre-stage the CNO in AD to avoid any permissions issues that we would otherwise encounter.
Log on to your domain controller, DC1, using your admin_* credentials. This is a step that would typically be completed by the systems admin.
- Open Active Directory Users and Computers.
- Select the Computers container. If you're building the cluster within an OU (organizational unit), you have other permissions to consider. But, in our simple example, we won't cover those. Check here for more information.
- Right-click on Computers, select New, and then Computer.
- Type "CLUSTER1" in the computer name and then click ok.
Step 2: Disable the CNO
You may be asking why we are disabling the object we just created. Fair question. It must be disabled so that the creation process can ensure the object is not already in use when you create the cluster.
Right-click on CLUSTER1 and choose disable.
Step 3: Grant User Permissions to Create the Cluster
You'll grant your standard user account full control permissions on the CNO in this step. But first, you'll need to enable the Advanced Features menu within Active Directory Users and Computers.
Click View and then make sure Advanced Features is selected.
Next, right-click on CLUSTER1 and select properties. We're going to change two things;
- Click on the Object tab and check the box next to "Protect object from accidental deletion."
- Next, click on the Security tab and click Add. Find your standard user account and click ok (mine is Luke without the admin_ prefix).
- With the user selected, grant the Full Control permission. Click Ok.
Step 4: Create the Cluster and Review any Warnings
You'll need to install the Failover Cluster feature and management tools on CLUSTER1SRV1 and CLUSTER1SRV2. We're going to take a shortcut here and use PowerShell.
Login to CLUSTER1SRV1 and CLUSTER1SRV2, using your standard account, and open PowerShell as an admin.
Run "Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools". Restart if required.
Open Server Manager on CLUSTER1SRV1, click tools and then select Failover Cluster Manager.
- Click Create Cluster (in the middle of the screen under Management). This will start the Create Cluster Wizard.
- Click next. Enter CLUSTER1SRV1, click add, then repeat the process for CLUSTER1SRV2.
- Click next (there are easier and faster methods for doing this, but seeing it manually first is helpful).
- Leave "Yes. When I click Next, run configuration validation tests, and then return the process of creating the cluster." selected. Click next.
- Click next (again).
- On the Testing Options screen, choose "Run only tests I select." Click next.
- Review Inventory, Network, Storage, and System Configuration to understand which tests are being performed. Don't change anything, but I thought getting familiar with these would be a good idea. Click next whenever you're ready.
- Click next (again). Validation will begin. If everything has been set up correctly, you should receive all green checks (unless an update has snuck in and only been applied to one of the nodes). This step takes a few minutes.
- Click View Report. The report should open in a browser window. Review any warnings or errors and address those. If all you see are green checkmarks, click finish.
- Cluster Name - Enter CLUSTER1. Click Next.
- Uncheck "Add all eligible storage to the cluster." We'll do this manually to avoid the wizard adding storage that we don't intend to add.
- Click next. This step takes a few seconds. Notice that the IP address is using a DHCP address. You'll fix that soon. Click Finish.
Jump back on your domain controller, DC1, and look at the CLUSTER1 object. It should now be enabled (refresh the view in Active Directory Users and Computers).
Step 5: Set the CNO to Use a Static IP Address
We don't want the IP address changing. Let's fix that now.
Back on CLUSTER1SRV1, open Failover Cluster Manager.
Select your new cluster on the left (if it hasn't already been selected).
In the middle of the screen, you'll see Cluster Core Resources. Expand Name, and then you'll see the IP Address: YourIpHere resource.
- Right-click on IP Address and select properties.
- Choose Static IP Address and then provide an address. This should be an address that falls outside of your DHCP range. For me, that's any available address occurring before 192.168.88.128. I'll assign 192.168.88.7.
- You'll get an informational box stating the change was stored, but not all changes will take effect until the IP Address resource is taken offline and then online again. Go ahead and do that now.
Step 6: Add Storage
Now, we'll add storage.
While you're still in Failover Cluster Manager, expand Storage and then right-click on Disks.
- Click Add Disk.
- Review the list of available disks. You should see the 4 disks we created previously. Click ok.
You should now see that all disks are online and belong to CLUSTER1SRV1.
Perfect. You're almost finished.
Step 7: Configure the Disk Witness
Click on CLUSTER1 on the left menu. You'll notice that we don't currently have a witness configured. Remember, we need an odd number of votes in the cluster to break ties. Currently, we have two. Let's set up the witness for the third vote.
- Right-click CLUSTER1, select More Actions and then choose Configure Cluster Quorum Settings.
- Click next. Select "Select the quorum witness" and then click next.
- Choose "Configure a disk witness." Then, click next.
- Select the correct disk (Q:). For me, this was cluster disk 3.
- Click next (argh, click ops).
- Click next a couple of times and then click Finish.
You should now see Witness: Cluster Disk 3 under the summary. Under Cluster Core Resources, you'll see Cluster Disk 3 under Storage.
Helping Others and Sharing Your Results
That's it for this week. Spend some time taking a look around and failing over your new cluster. In the next challenge, we'll start installing SQL Server. However, my family and I will be taking fall break next week, so I may skip next week's challenge (extra time for you to get familiar with the cluster).
If you have tips other readers can learn from, please share them in the comments. You can message me on LinkedIn or post about it and tag me with the #dbachallenges hashtag.
Feedback
If there's a DBA Challenge you'd like to see, let me know by replying to this email.
P.S. If you're a DBA managing 10s or 100s of instances and feeling overwhelmed, I’d love your input on a few quick questions:
1. What’s your biggest frustration with managing SQL Server?
2. What concerns you most about automation?
3. Where do you need the most support in automating SQL Server management?
4. What would the ideal solution be if you could solve these issues?
Lastly, I've released a presale offer for Ansible for SQL Server DBAs: Level 1. It includes a few bonuses for registering early and is limited to 10 spots. However, this course isn't for everyone.
Who Should Not Enroll?
- Those Unwilling to Commit: If you're not ready to invest time and effort, this course isn't the right fit.
- Looking for Quick Fixes: This program requires dedication and application, not a passive approach.
How to Secure Your Spot.
- Enroll Today: Click the link below to secure your spot in this exclusive pre-sale offer.
- Watch Your Email: You'll be notified as the modules and bonuses are released.
Feel free to reply to this email and share your thoughts anytime—I’m all ears!
Good luck, and I look forward to seeing your results!
Luke
Responses