Cluster Lab 2
Cluster Lab 2
powershell
Install-WindowsFeature –Name Failover-Clustering –
IncludeManagementTools
Install-WindowsFeature -ComputerName 'SEA-SVR1.contoso.com'
–Name Failover-Clustering –IncludeManagementTools
Note: Wait for the installation process to complete. The installation should
take about 1 minute.
powershell
Install-WindowsFeature -ComputerName 'SEA-DC1.contoso.com' –
Name FS-iSCSITarget-Server –IncludeManagementTools
Note: Wait for the installation process to complete. The installation should
take about 1 minute.
Important: The lab uses SEA-DC1, which serves as an Active Directory Domain
Services (AD DS) domain controller to host shared iSCI storage for a Windows Server-
based cluster. This is not meant to represent in any way a recommended configuration
but rather is done to simplify the lab configuration and minimize the number of lab
virtual machines. In any production environment, domain controllers should not be used
to host shared storage for failover clusters. Instead, such storage should be hosted on
highly available infrastructure.
powershell
Enter-PSSession -ComputerName SEA-DC1.contoso.com
powershell
New-Item -ItemType Directory C:\Storage -Force
New-IscsiVirtualDisk C:\Storage\disk1.VHDX –size 10GB
New-IscsiVirtualDisk C:\Storage\disk2.VHDX –size 10GB
New-IscsiVirtualDisk C:\Storage\disk3.VHDX –size 10GB
powershell
Enter-PSSession -ComputerName SEA-SVR1.contoso.com
Note: At this point, you should have three Windows PowerShell windows
opened. You will use the first one to run commands locally on SEA-SVR2,
while using the other two to interact with SEA-DC1 and SEA-SVR1. You
can easily recognize each of them by identifying the PowerShell prompt
(for the second and third one, the prompt will contain [SEA-
DC1.contoso.com] and [SEA-SVR1.contoso.com] prefix, respectively).
powershell
Start-Service -ServiceName MSiSCSI
Set-Service -ServiceName MSiSCSI -StartupType Automatic
powershell
Start-Service -ServiceName MSiSCSI
Set-Service -ServiceName MSiSCSI -StartupType Automatic
powershell
New-IscsiServerTarget -TargetName “iSCSI-L03” –InitiatorIds
“IQN:iqn.1991-05.com.microsoft:sea-
svr1.contoso.com","IQN:iqn.1991-05.com.microsoft:sea-
svr2.contoso.com"
powershell
Add-IscsiVirtualDiskTargetMapping -TargetName “iSCSI-L03”
-DevicePath “C:\Storage\Disk1.VHDX”
Add-IscsiVirtualDiskTargetMapping -TargetName “iSCSI-L03”
-DevicePath “C:\Storage\Disk2.VHDX”
Add-IscsiVirtualDiskTargetMapping -TargetName “iSCSI-L03” -
DevicePath “C:\Storage\Disk3.VHDX”
powershell
New-iSCSITargetPortal –TargetPortalAddress SEA-
DC1.contoso.com
Connect-iSCSITarget –NodeAddress iqn.1991-
05.com.microsoft:sea-dc1-iSCSI-L03-target
Get-iSCSITarget | fl
Note: Verify that after you run the last command, the value for
the IsConnected variable is True.
powershell
New-iSCSITargetPortal –TargetPortalAddress SEA-
DC1.contoso.com
Connect-iSCSITarget –NodeAddress iqn.1991-
05.com.microsoft:sea-dc1-iSCSI-L03-target
Get-iSCSITarget | fl
Note: Verify that after you run the last command, the value for
the IsConnected variable is True.
powershell
Get-Disk
powershell
Get-Disk | Where OperationalStatus -eq 'Offline' |
Initialize-Disk -PartitionStyle MBR
New-Partition -DiskNumber 2 -Size 5gb -AssignDriveLetter
New-Partition -DiskNumber 3 -Size 5gb -AssignDriveLetter
New-Partition -DiskNumber 4 -Size 5gb -AssignDriveLetter
Format-Volume -DriveLetter E -FileSystem NTFS
Format-Volume -DriveLetter F -FileSystem NTFS
Format-Volume -DriveLetter G -FileSystem NTFS
Note: Verify the disk numbers match the previous command output before
running the commands. Verify that each command completed successfully.
powershell
New-Cluster -Name SEA-CL03 -Node SEA-SVR2.contoso.com -
StaticAddress 172.16.10.125
Note: The command should return the name of the newly created cluster
(SEA-CL03).
powershell
Add-ClusterNode -Cluster SEA-CL03 -Name SEA-SVR1.contoso.com
Note: Verify that the command completed successfully.
Note: In the Storage node, with the Disks node selected, verify that three
cluster disks are online. Cluster Disk 1 and Cluster Disk 2 should be
assigned to FSCluster.
2. On the Select Profile page, ensure that the SMB Share - Quick profile is
selected, and then select Next.
3. On the Share Location page, select Next.
4. On the Share Name page, enter Docs for the share name, and then
select Next.
5. On the Other Settings page, select Next.
6. On the Permissions page, select Next.
7. On the Confirmation page, select Create.
8. On the View results page, select Close.
Task 2: Validate the failover and quorum configuration for the File Server role
Congratulations!
You have successfully completed this Lab, to mark the Lab as complete
click End.