This is a guide on how to create and Configure iSCSI windows server 2016. Internet Small Computer System Interface (iSCSI) is a way of connecting storage devices over a network using TCP/IP. It can be used over a local area network (LAN), a wide area network (WAN), or the Internet. In this guide, we will create iSCSI in Windows Server 2016 as target and will connect the same storage from the network. In this way, we can utilize shared storage concept for any failover cluster for SharePoint Cluster, Hyper-V Failover cluster or any other application to build a cluster which requires a common share storage locations.
LAB Setup: –
Installation of iSCSI Role: –
In Server Manager, click Manage, and then click Add Role and Feature. The Add Role and Feature Wizard opens, click Next.
In Select Installation Type page, ensure that Role-based or Feature-based Installation is selected, and then click Next.
In Select destination Server, click File and Storage Services, click File and iSCSI Service, and then Select iSCSI Target Server. Click Next.
On the Feature Window, leave the default selection and then click Next. On the Confirm Installation Selection window, check the Restart the destination server automatically if required, and then click Install.
Click Install to continue
When the installation process has finished, click Close and go for configuring iSCSI in Windows server 2016 in the targeted server.
Configure iSCSI Windows Server 2016: –
Create iSCSI lUN. To share storage, the first thing to create an iSCSI lun (aka. iSCSI virtual disk) the iSCSI virtual disk is backed by a VHD. To complete iSCSI target server, the configuration goes to Server Manager.
On “Server Manager” windows, select “File and Storage Services” tab and then click “iSCSI” tab. Click “to create an iSCSI virtual disk, start the new iSCSI virtual disk wizard”.
New iSCSI Virtual disk wizard will open. Here, select the server and select the volume and then click next.
On the “Specify iSCSI Virtual Disk name window”, Type name of virtual disk. Here, I give “Virtual iSCSI Disk” and then click next.
Specify the virtual disk’s size. Choose the disk type, here I have chosen Dynamically expanding. So, that disk space won’t be over utilized, and then click Next.
In the “Assign iSCSI target “page, choose “New iSCSI Target” option and then click Next.
On the “Specify target name “page, type the name for the new target, and then click Next.
Click Next to open Access Server page, as shown.
Click on Add and provide the Initiator Server IP Address or DNS Name
You can see the initiator Server IP address is configured. Similarly, if you have to access this storage from multiple server you have to add each server IP address or DNS name.
Click Next to Continue
Authentication is optional if you want to secure your storage connectivity remotely then you can configure your Password.
You can review the configure settings.
Click Create to create the storage configuration.
Results of iSCSI Storage Creation :-
At this point we have completed iSCSI storage creation setup.
Let’s Connect this storage from a remote Host.
iSCSI Initiator Remote Connectivity: –
So, now you start your initiator Server that you want to Share your storage to that Serve. On “Server Manager” click Tools menu, and then click iSCSI Target, when click will give this massage.
Click the Yes button to open “iSCSI initiator Properties”. On the iSCSI initiator properties click Discovery tab, then click Discovery Portal, Enter the IP address or DNS name port number of the portal you want to add.
Click Advanced to open Advanced Setting window, on the advanced setting, from the “local adapter” select “Microsoft iSCSI initiator” then from the “initiator IP” Select you IP Address, and then click Ok.
Click Ok to close Advanced Setting, then you will see the target portals in the “Discovery” windows.
Click on Target and click on Refresh
You can see that remote iSCSI storage is connected now.
Let’s check the status on source Server in our case its Windows Server 2016.
Great, its connected.
Disk Management & Disk Creation: –
When the iSCSI initiator is finished, click Ok to close the iSCSI initiator Properties. So, now open “Disk Management” to make sure that the disk is presented correctly.
To Create New volume, right click in the left-hand corner, click Online.
When you online now again right click on that partition, click Initialize Disk.
When you initialize disk, it will help you to create new volume. Right click on that drive, click New Simple Volume, the New Simple Volume wizard will open.
On the “Welcome to the New Simple Volume Wizard” click Next to continue
On the Specify Volume Size page, choose a volume size, and then click Next to continue.
On the Assign Drive Letter or Path page, Select Assign the following drive letter, then select your drive letter, and then click next to continue.
On the Format Partition page, choose format this volume with the following settings, and type your volume label, and then click next.
you have successfully completed the New simple volume wizard. click finish to create a new partition in the hard disk drive.
iSCSI Disk Status as Completed: –
After creating new simple volume, you can see the partition has created on the disk management console.
That all, this is how you can create multiple iSCSI targets and multiple initiators, this is most beneficial when you don’t have hardware storage and you wanted to create failover of some application such as Sharepoint or Hyper-v Failover cluster.
Hope this will help you to setup your environment with iSCSI.