In this series of posts, I will explain how to build a Windows Server 2008 cluster with Server Core and Hyper-V. There will be three posts as linked to below. Each post will be published as it get ready. Each post will have step-by-step snapshots. If it happens a certain image thumbnail is not good enough for you, then click on the snapshot to see a larger image.
2nd Part: ISCSI Storage Preperation & Configuration:
From now on, we will perform all operations under the domain log-in administrator. This is very important because if we were logged in as local administrators for each node, we would not be able to conduct operations that have an impact on Active Directory.
Go to Switch User and make sure to log in as the domain administrator, in my case ponicke\administrator.
We are going to enable remote management and disable the firewall (Be careful with this last step as, here, we are in the laboratory, this should not be done in production so adjust the firewall appropriately)
Cscript /windows/system32/scregedit.wsf /ar 0
Cscript /windows/system32/scregedit.wsf /cs 0
Netsh advfirewall set allprofiles state off
Now comes a very exciting and important moment! We are going to enable the Hyper-V and Failover Cluster services.
(Please remember that all this is supposed to be done on both nodes even though I am only showing you one)
Once this is done, you will have to restart both nodes, which will complete the installation.
Now, it’s time to start thinking about connecting the LUNs to the nodes so that we make sure that we have automated and running iSCSI services in both nodes. It is easier to do this from an OS with GUI using an MMC with Services Snap-in connected to each node.
From the DC, we will run MMC and add the snap-ins pointing to the server core nodes. This will give us their service console.
Then, for each node, we will make sure that the service is automated and running.
Now, we can start connecting the LUNS to the nodes. To do so, in Node 1, we will use the command iscsicli (remember to repeat the same actions for the other node).
In my case, the storage (iSCSI Target) is at ip 172.16.16.2
iscsicli QAddTargetPortal 172.16.16.2
Now we will list the target for connection with the command iscicli ListTargets. This step is important to obtain the IQN that we will be using later.
The upper screen shows the IQN listed for my iSCSI Target.
iscicli AddTarget IQN (previously obtained with ListTargets)
Finally, we will log in with iscicli QloginTarget IQN (previously obtained with ListTargets)
We’re almost done!
Let’s list the discs!!
Diskpart and list disk
Here you can see the three LUNS created for the cluster: a small one for the quorum and two 20GB for the VMs.
We put them online select the disk.
sele disk 1
Repeat this for disc 2 and 3.
Then come back to each disc to create the primary partitions.
If, upon creating them, you get an error such as:
Diskpart has encountered an error. The media is write protected,then you say:
ATTRIBUTES DISK CLEAR READONLY
and try again.
In my case:
sele disc 1
create partition primary size = 498
and the same with the disc 2 and 3.
Assign the letters (if you want)
Repeat for all volumes
And reformat (leave diskpart with Exit)
Thanks again to ponicke for giving us this informative and very helpful article in Spanish. We hope that all of our English readers will find it just as helpful.