Windows

Setup iSCSI Napp-it Windows Server 2012 R2 Cluster

Setup iSCSI Napp-it Windows Server 2012 R2 Cluster

In playing around recently in my home VMware lab, I set about created a Windows Server 2012 R2 cluster with iSCSI storage. ย I have used many products over the years as opensource NAS appliances such as OpenFiler and others out there. ย Openfiler was my first download of choice. ย So I quickly got the ISO downloaded and installed into a VM running in my home lab setup and got a separate VMDK mounted as storage.

Of course I had no idea that I would run into any issues with Windows Server 2012 R2 and creating a failover cluster using Openfiler iSCSI storage, but more to come on that in a minute. ย The servers themselves were “plain jane”ย installs of Windows Server 2012 R2 Datacenter edition in identical VMs with the latest Windows updates installed. ย I mounted two LUNs on both servers via iSCSI, one for the data drive and one for the quorum drive.

I configured contiguous manual IPs, named both servers what I wanted them named and installed the Failover Cluster Feature in both VMs. ย The first step I took before attempting to setup the cluster was to “Validate configuration” on the nodes before running the cluster wizard. ย In fact, this is what the normal prompting in the wizard will have you do anyway.

Not suspecting any errors, I was surprised to see theย storage doesn’t support iscsi-3 persistent reservationsย error in the validation wizard. ย In doing some reading others had issues with OpenFiler and even other opensource products out there which offer iSCSI.

I decided to try FreeNas which had been mentioned by a couple of blog posts that it supported the scsi-3 standard. ย Same setup, I downloaded the ISO, installed in a VM, configured iSCSI LUNs and then mounted these on both VMs. ย Again! ย Same error when running the validation wizard!

Napp-it

I had read a blurb from someone that they had used Napp-it and they had verified it will pass the SCSI-3 persistent reservation test. ย I decided to give it a try. ย Napp-it is available in a ready to run VM appliance that is free to download from here:ย https://www.napp-it.org/downloads/index_en.html

The download was painless and was around 1.3G in a .zip file. ย After extracting the .zip, it weighed in at around 20G. ย The extracted folder contains the .vmdk and .vmx files that you need to import into your VMware environment.

After doing the initial setup on Napp-it, setting passwords, ip address, etc, I added a couple of Hard Disks to the VM appliance for storage to assign via iSCSI. ย Napp-it is definitely a lot less intuitive than Openfiler, FreeNas, and others. ย However, below are the steps you need to follow to get a working LUN setup . ย Also, make sure yourย Comstar iscsi service shows online and is running.

  • After you have added the storage physically (hard disks, or vmdk files) you will want to go toย Pools >> create Pool to start provisioning your storage.

win2k12r2_cluster2

 

  • Select the name of the pool, ZFS version, the disks you want to provision in the pool, and I just accepted the defaults on the rest

win2k12r2_cluster3

  • Next, we can create our volume.


win2k12r2_cluster4

  • Select the pool, parent filesystem, and name of the volume along with the size


win2k12r2_cluster5

  • Next, we create the volume LU under the Comstar menu


win2k12r2_cluster6

  • Select the pool and then the type of LU


win2k12r2_cluster7

  • By default when you create the volume, Writeback Cache is not enabled, I would enable this for best performance


win2k12r2_cluster8


win2k12r2_cluster9

  • Next we add a view


win2k12r2_cluster10

  • We select the logical unit GUID, and I set the target group and host group to all, since this is in a test isolated network


win2k12r2_cluster11

 

  • On our Windows 2012 R2 servers, we need to launch the iSCSI Initiator Properties (select yes to the message about starting the service automatically) and then enter our target. ย You simply enter the IP address of your napp-it server here.


win2k12r2_cluster12

 

Additional Windows Considerations

After you configure your iSCSI Initiator Properties, you will need to go into Disk Management and actually Provision the volumes and drive letters within Windows. ย You may need to bring the disk online and initialize it first, especially on the first host that touches the iSCSI storage.

After you setup the storage on both hosts, then install theย Failover Clusterย Feature, you will then be able to Validate the Cluster and see that the SCSI-3 Persistent Reservations should pass with napp-it.

win2k12r2_cluster1

 

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.