Hyper-V 2016 Cluster – Create iSCSI Shared disk for Hyper-V Cluster

0
125
iSCSI virtual disk

Microsoft iSCSI Target Server is a server role that enables a Windows server machine to function as a storage device. 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. We need to install the iSCSI target server role on the Windows server 2016 as similar to the installation of other roles to utilize this service to create iSCSI shared disk. Servers which need shared storage, access this iSCSI target servers using iSCSI initiators inbuild on windows server 2016.

we can use the storage from the Microsoft iSCSI target server as a shared storage for any of the failover cluster such as Hyper-V failover cluster, Sharepoint cluster and SQL cluster, etc. Even you can provide this iSCSI storage as the shared storage among the ESXI hosts too. In this article, I am going to explain how to create shared storage in the Microsoft iSCSI target server and assign it to the Hyper-V servers to create a Hyper-v failover cluster.

How to Create iSCSI Shared Disk on Windows Server 2016

Installation of iSCSI role can be done similar to the installation of other roles on the Windows Server 2016. In Server Manager, click Manage, and then click Add Role and Feature-> Role-based or Feature-based Installation -> click File and Storage Services -> iSCSI Target Server. Click Next. Continue with the Installation

iSCSI Shared disk

To provide the shared iSCSI storage, we need to first create the New iSCSI Virtual Disk.  Click On “Server Manager -> File and Storage Services -> iSCSI” tab. Right-click on the empty space and Click “New iSCSI Virtual Disk” to create new iSCSI disk.

For Hyper-V Failover Cluster, I am going to create 2 iSCSI Virtual Disks. One is for Cluster Quorum disk and another one is the Data Disk which will be acting as the shared disk between the Hyper-v hosts in the cluster.

iSCSI Shared disk

In the Select iSCSI Virtual disk Location wizard, select the server and select the volume to store the Virtual disk and click next.

iSCSI Shared disk

Specify the iSCSI virtual disk name and validate the path of the .VHDX disk. When you create the iSCSI lun (iSCSI virtualdisk), the iSCSI virtual disk is backed by a VHD. Click on Next.

iSCSI Shared disk

Specify the Size of the iSCSI Virtual Disk and Choose the Disk type based on your requirement. Since it is for Cluster configuration, I have chosen Fixed Size disk. which provides better performance. Click on Next.

iSCSI Shared disk

In the Assign iSCSI target Wizard, Select the Existing iSCSI Target Name if you create earlier else click on New iSCSI Target option and then click Next. Then you need to specify the name and server information to create new iSCSI target.

iSCSI Shared disk

Click on create to create the iSCSI Virtual disk.

iSCSI Shared disk

We are done with creating iSCSI Virtual disk for Cluster Quorum. Let’s create the iSCSI shared disk for Data disk.

iSCSI Shared disk

Specify the size and disk type. Click on Next.

iSCSI Shared disk

Choose the iSCSI target from the list to assign this virtual disk to the iSCSI taregt called “hyperv-iscsi”

iSCSI Shared disk

Click on Create to create the iSCSI shared disk.

iSCSI Shared disk

Configuring iSCSI Initiator properties in Hyper-V hosts

Login to the Microsoft Hyper-V Server 2016 -> Open command Prompt- > Type iscsicpl to start the iSCSI initiator on the Hyper-V host

iSCSI Shared disk

Specify the iSCSI target server IP address and click on Quick Connect.  It displays the target name. I have created a iSCSI target called “hyperv-iscsi”. Select the target name and Click on Connect.

iSCSI Shared disk

Once it shows the status as “Connected”. Click on Done.

iSCSI Shared disk

You need to repeat the above steps to each hyper-v server to connect to the iSCSI target server by configuring iSCSI initiators.

Open Disk Management tools, Click on Rescan Disks, assigned iSCSI virtual disks on the iSCSI target will start appearing as the Hard disk on the Specific Microsoft Hyper-v 2016 server.

iSCSI Shared disk

similarly, disks started appearing on the second hyper-v hosts too.

iSCSI Shared disk

That’s it. We are done with creating iSCSI shared disk for the Hyper-v 2016 Failover cluster setup. We will see the cluster configuration and other steps in the upcoming posts. I hope this is informative for you. Thanks for Reading. Be social and share it in social media, if you feel worth sharing it.

LEAVE A REPLY