Configuring Windows Server 2012 as an iSCSI Target SAN in a Two Host Failover Cluster Part 4

Here we go over my steps for the actual cluster creation, cluster and node validation, quorum setup and cluster shared volume configuration.We have by running a cluster validation on each node. This can be achieved with the following cmdlets:
Test-Cluster -Node hyperv01
Test-Cluster -Node hyperv03
In this case, the test passed. The process basically gives us an idea if the nodes’ config are capable of supporting our cluster, with recommendations on what config changes if any we need to apply.

We’ll go ahead and create the cluster without storage at this time:
New-Cluster -Name Cluster00 -Node Hyperv01,Hyperv03 -StaticAddress -NoStorage

We’ll use the Get-ClusterAvailableDisk cmdlet to display available disks for the cluster nodes and pipe the cmdlet to the add-ClusterDisk cmdlet:Capture_edited1
Get-ClusterAvailableDisk -Cluster cluster00 (Displays the disks available to the nodes in the cluster)
Get-ClusterAvailableDisk -Cluster cluster00 | ?{$_.Name -eq ‘cluster disk 1’} | Add-ClusterDisk ( Adds the available disk to the cluster)

Add-ClusterSharedVolume -Name “Cluster Disk 1” -Cluster cluster00 (Makes the volume available in Cluster Shared Volumes in a failover cluster.)

Display the remaining available disk and also add to the cluster:
Get-ClusterAvailableDisk -Cluster cluster00 | Add-ClusterDisk (Add the remaining disk we earlier reserved as witness to the cluster)

Reconfigure the cluster disk quorum:
Set-ClusterQuorum -Cluster cluster00 -NodeAndDiskMajority “Cluster Disk 2” -Verbose (Set the quorum configuration of the cluster to NodeAndDiskMajority)

The following screenshot illustrates this step:Capture_edited

The PowerShell cmdlets can also be put together in a script to automate the tasks. At this point, we could choose to continue managing the cluster using the Failover Cluster Manager GUI or PowerShell. The next screenshot displays the disks as shown in FCM GUI interface:Capture_edited4 To be continued..

This entry was posted in Cluster Shared Volume, CSV, Failover Cluster, Hyper-v, ISCSI, ISCSI Initiator, ISCSI Target, Microsoft Hyper-v, PowerShell, PowerShell 3.0, Quorum, Windows Server 2012, Witness. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s