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.
- 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
- Next, we can create our volume.
- Select the pool, parent filesystem, and name of the volume along with the size
- Next, we create the volume LU under the Comstar menu
- Select the pool and then the type of LU
- By default when you create the volume, Writeback Cache is not enabled, I would enable this for best performance
- Next we add a view
- 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
- 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.
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.