Add iSCSI Shared Storage in Windows Server 2016
If you are configuring a Windows Server 2016 Failover cluster or you are building a Windows Server 2016 Hyper-V cluster, you will need shared storage so that either the file or virtual machine resources don’t live on local storage which would negate the high availability benefits of a Windows Server 2016 cluster. ย A very popular and useful storage protocol in use everywhere today is iSCSI orย Internet Small Computer System Interface that allows SCSI messages to be sent end to end in conjunction with the TCP protocol. ย Let’s take a look at how to add iSCSI shared storage in Windows server 2016.
Add iSCSI Shared Storage in Windows Server 2016
Before we begin, let’s talk about prerequisites. ย We need to have connectivity from the iSCSI initiator which will be our Windows Server 2016 server and the iSCSI target, which in this demonstration will be a FreeNAS appliance. ย You need to take into consideration any firewall or filtering issues that would prevent communication between the devices. ย Typically, iSCSI uses TCP ports 860 and 3260 for communication.
In Windows Server 2016, you can find theย iSCSI Initiatorย application by clicking the Windows button and then starting to typeย iSCSI to initiate the search. ย It should populate. ย However, you can also launch the application by simply typingย iscsicpl.exe in the run or search menu.
You will see a dialog box pop up when you first launch the iSCSI initiator application. ย This dialog lets you know that theย Microsoft iSCSI service is not running. ย If you clickย Yes, it will start the service and it will set the service to start automatically. ย When thinking about mounting storage, we definitely want the Microsoft iSCSI service to start automatically as this will allow any storage targets to mount when the server is started or rebooted, etc.
After clickingย Yes on the dialog box, we can check the services console and see theย Microsoft iSCSI Initiator Service is nowย Running and also set to theย Automaticย Startup Type.
Now that we have theย iSCSI Initiator Properties dialog box open, we can enter the IP address of theย iSCSI Target. ย In my case there are no special connection considerations that I have setup for the FreeNAS target, so I can simply hit theย Quick Connect button which will automatically connect to the iSCSI target.
Notice when clicking theย Quick Connect button, I see theย Status ofย Connected and the target name matches the target setup in FreeNAS.
Next, we need to click theย Volumes and Devices tab to setup the iSCSI volume. ย Again, here I click theย Auto Configure option as this will automatically add and configure all available devices in the target.
Now, I see the device volume mounted.
If you have any special considerations to be made in the configuration of the iSCSI connection, those can be setup under theย Configurationย tab. ย These include CHAP or IPsec credentials, etc. ย You can also generate reports about the connected targets and devices as well as change the initiator name from the configuration tab.
Adding iSCSI Storage in Disk Management Windows Server 2016
Our work is not done yet. ย We still need to add the volume in Windows Server 2016 Disk Management so the volume can actually be used by Windows. ย Notice below, after rescanning the disks we see our iSCSI volume now showing up. ย It will be added asย Offlineย when it is brought in initially.
Right-click the new volume and selectย Online. ย This will bring the disk online.
Next, we need toย Initializeย the disk. ย So again, we right-click and selectย Initialize Disk.
We have the option here for eitherย MBR orย GPT which for all volumes to support large volumes sizes, etc, we want to chooseย GPT.
Now we have a new disk that is ready to be provisioned, formatted, etc.
Thoughts
The process toย Add iSCSI Shared Storage in Windows Server 2016 is very straightforward. ย After we have network connectivity between our initiator and the iSCSI target, we can use the GUI setup shown above to actually setup the connection between the two. ย Additionally, we have to add the storage in disk management to Windows so that it has the storage provisioned and ready to use.