In part 1 of this series I showed you how to configure the virtual storage required for the cluster. In part 2 of this series I showed you how to configure two SQL instances on the created windows cluster. In this part I will show you how to configure these two SQL instances into an Active/Active configuration.
In this series of posts I will walk you through the processes of creating an Active/Active SQL server cluster using Hyper-V and Microsoft iSCSI target software for virtualized SAN. The target is to create first a storage server hosted on a normal Windows 2008 R2 server. Then connect to this server using two other machines as iSCSI initiators. Then I will create the windows cluster along with the DTC clustered service. A clustered SQL server instance will then be created. Finally another clustered SQL server instance will be created and Active/Active configuration of both instances will be applied.
The solution is fairly simple as per the below configuration.
Setting Active-Active Configuration
Since we need to configure an Active/Active configuration for this cluster and we do not want any instance to depend on other components from the other instance we will have to add another DTC clustered service to the windows cluster. This is to allow the separation of the DTC service between both instances. I will also show you how to configure the SQL service to depend on its relating DTC service instance so that it moves it along with the SQL instance.
Prepare the second DTC cluster
3- Now open the disk management utility and create the active partition on this disk and format it using NTFS.
Move each SQL instance and its associated DTC service to its preferred node
1- Move one SQL instance and one DTC to the server UK-LIT-DB1
2- The other SQL instance and the other DTC make sure they are moved to the other server UK-LIT-DB2
Add each DTC service as a resource to the associated SQL service
The dependency report for one of the SQL server clusters should look something like the below diagram.
Setup the Preferred owners for both the SQL instances and associated DTC services
Now you will need to make sure that the preferred owner is one of the nodes for each couple of the SQL instances and the DTC instances.
- Services that has UK-LIT-DB-01 as the preferred owner
- Services that has UK-LIT-DB-02 as the preferred owner
This makes the two nodes working together as an Active/Active SQL cluster with the appropriate services running on both. So if you open the first node you will find a SQL server clustered instance running and a clustered DTC running. On the second node you will find the other clustered SQL server instance running and the associated clustered DTC.