In this post I’m going to show my self or the others that read this post about how to configure a Windows Server 2012 R2 to act as iSCSI target. I was prepare 3 Virtual Machine running Windows Server 2012 R2, one as Domain Controller and the others two will be 2 nodes failover cluster. I will use Domain Controller (DC) as iSCSI target server to host failover cluster shared storage.
Before we add iSCSI Target Server role, we have to create new SCSI disk from Hyper-V Manager and attach it to DC01.
Open DC01 Hyper-V Settings, Select “SCSI Controller” – select “Hard Drive” – and click “Add“
Click “New” to create new virtual hard disk
Choose Disk format between VHD or VHDX and click “Next“
Choose “Disk Type” and Click “Next“
Specify Virtual Disk file name and location, click “Next“
Select “Create a new blank virtual hard disk, set it size and then click “Next“
Review the changes you’ve made and click “Finish“
You will return to DC01 Settings, and you will notice new virtual disk has just created, click “OK“
Open “Disk Management” on DC01 virtual machine and you will notice there is an additional disk. Add new simple volume and format that disk.
Once the SCSI disk was ready, now Open Server Manager and Click “Add roles and features“
Select “Role-based or feature-based installation“and click “Next“
On server selection page, select a server from the server pool and click “Next“
Expand “File and Storage Services” – “File and iSCSI Services“, then select “iSCSI Target Server” and click “Next“
Nothing to add in “Features” page, click “Next“
Once the installation finished, go back to “Server Manager” and click “File and Storage Services“
Select “iSCSI” on file and storage services page and then click “To create an iSCSI virtual disk, start new iSCSI Virtual Disk Wizard” link.
Select Volume E: and click “Next“
Type iSCSI Virtual Disk name, and take note for its location, and click “Next“
Specify iSCSI Virtual disk size, select disk type and click “Next”
Select “New iSCSI Target” and click “Next“
Specify iSCSI Target Name and click “Next“
On “Access Server” page, click “Add” to add servers that will be access this shared storage
Click “Browse” to select server name, and click “OK”
Repeat the same step on “Access Server” page to add the other server until you have two value on the list, then click “Next“
If you want to secure the initiation, you can enable “CHAP” and click “Next”
Review all changes and click “Create“
Wait till all process completed and click “Close“
Back to “iSCSI” page you can add more iSCSI Virtual disk by right click and select “New iSCSI Virtual Disk” and repeat the same steps above.
Now, move to both cluster node to initiate connection to this iSCSI Virtual Disk. Open Server Manager – Click “Tools” from menu bar and select “iSCSI Initiator”
You will get prompt that Microsoft iSCSI Service was not running, click “Yes” to run the service
Type target name on “Target” text box and click “Quick Connect“
You will now notice that all iSCSI Virtual Disk was detected on “Disk Management” console.
That’s it, you’ve successfully prepared the shared server storage for Windows Server Failover Cluster. Hope this help.