One of the mandatory requirement to install SQL Server and similar application in cluster is to have shared disk.
I will explain how to create shared disk using iSCSI software target in this blog. You can download iSCSI Software Target from This link.
Installing Microsoft iSCSI software target.
When you invoke the self extracting package from downloaded above link it extracts X64 and x86 version of installer.
- Select iSCSI_target for installation on the system which will act as iSCSI target. We will create iSCSI target disks in this machine and these disks will be shared by nodes using iSCSI initiator.
- Select iSCSItargetClient_public and install in nodes in which you would like to have shared disk probably all nodes which is going to be part of cluster you are installing.
INSTALLATION IN CLUSTER NODES:(Follow same steps in all the nodes which will be part of cluster which you are installing)
Install iSCSItargetClient _public in all nodes which are going to be part of cluster which you are installing .
Run the file to start the installation.
Click Next and continue
Select the type of installation as Typical.
Specify users account that is member of administrators group in system which is acting iSCSI target and iSCSI initiator (current system).
Configure other settings.
Start the installation by clicking Install button.
Click finish to complete the installation
Install the iSCSI_target on the system which will act as iSCSI target probably file server (or) Domain controller if you are installing failover clustering for testing.
CONFIGURE iSCSI INITIATOR IN CLUSTER NODE’S:
After installation,Open ISCSI initiator.
- Select yes and continue.
- Type the target server name and click on Quick Connect
- Click Discover panel and select the target sever.
- Give the server IP address.Click ok.
Similarly Follow the above steps and select the target in all nodes of cluster.
Configuring iSCSI target
Now after selecting the target,we have to add the all the iSCSI clients in iSCSI target.
Open MS iSCSI Target in system which is acting as iSCSI target.
Right click iSCSI target->create ISCSI target.
Create target wizard will open.
Specify the target node name,click Next.
Browse and select the iSCSI initiator,click ok.
Selected initiator will appear.Click Next.
Click Finish and complete the target creation.
Target Node1 is added.
Follow the above steps in all nodes.
CREATING VIRTUAL DISK FOR ALL NODES:
To create virtual disk in iSCSI target right click Node1->Create virtual disk.
Specify the file name which will be used as virtual disk.Specify it with .vhd extension.Click Next.
Specify the size for your virtual disk.Click Next.
For node2,Right click Node2->Add Existing virtual disk to iSCSI target.
Now after adding the nodes as target in DC,we have to initiate the server in cluster nodes.
Select iSCSI initiator.Click Refresh,if you didn’t get any discovered target.
Select the target and connect it.Click OK.
Open Disk management in cluster nodes:
Right click Disk1->Online
Again ,Right click Disk1->New Simple Volume.
New Simple Volume Wizard->Format this volume with the following setting.Click Next.
Then Finish the setting.
Open Failover cluster manager.Expand SQL Cluster.mssql.wiki.com.
Storage->Add a disk.
Click OK and add disk to a cluster.
Disk is added. (If disk is created for one node,automatically it will be shared by other node)
Now the shared disk is ready for use and can be used for installation of SQL Server cluster (or) any other cluster aware application which needs shared disk.