Creating a completely virtualized cluster using Hyper-V and Windows Storage Server 2008
Setting up Windows Storage Server 2008 on Hyper-V
- Setup a new virtual machine using the Hyper-V manager - I provisioned mine with 1 GB of RAM and 2 VHDs – one for the OS and one for storage.
- Setup the Windows Storage Server 2008 operating system – this is remarkably easy. It’s more or less an abbreviated Server 2008 installation. The only “gotcha” was that Storage Server utilizes a default password (wSS2008!) instead of prompting you for one.
- Log onto Storage Server using the default password, then do your normal new machine maintenance (i.e. configure Windows Update, join to domain, configure security, etc.)
- Run the Microsoft iSCSI Software Target 3.2 software. This is a separate download, available in the same directory on MSDN as the Storage Server 2008 media.
- Configure Windows Firewall to allow the iSCSI traffic – this helpful Technet article details the programs and ports needed to support the iSCSI service.
- Configure the iSCSI target and storage. The iSCSI Target is configured either under the Storage node in Server Manager, or via a dedicated MMC add in found in Administrative Tools.
- Create the virtual disks: Under “devices” in the iSCSI Target MMC, create or import the VHDs necessary to support your cluster. I created 2 small (5 GB) VHDs for my Quorum and MSDTC disk resources, and a few larger VHDs to serve as my SQL shared storage. I used my “second” VHD as the primary storage for these resources.
- Bring the disks online
- Create the iSCSI target: Above the “Devices” node is the node “iSCSI Targets.” Simply right-click this node and choose “New iSCSI Target” to start the wizard.
- NOTE: You will be prompted by the wizard for an ICN of at least one iSCSI initiator. If your cluster nodes are Windows 2008, the iSCSI initiator software is built in. If your cluster nodes are Windows 2003, you will need to download and install the iSCSI initiator software. In either case, run the software to create an ICN initiator name which will be used by your target for access. If your nodes aren’t ready for this step, you can always specify an IP address, but you’ll have to run the initiator at some point.
- Add the storage devices to your target. Right click your new target and add the storage created in the previous step to the target.
- Configure iSCSI initiators – right click the target and choose Properties. You must list each of the ICNs (or IPs) for the nodes in your cluster here, otherwise the disk resource will not be available to them.
And that’s it for the Storage Server – fairly easy.
On the cluster nodes
- Run the iSCSI Initiator
- Discover the Storage Server by entering its IP address or DNS name
- Discovery (if your firewall settings are correct and the node’s ICN or IP is configured with the target) should show the Storage Server as a target and all of the volumes created above. Bind to all of the volumes.