Windows 2022
Sponsored Link

Windows Server Failover Clustering : Configure Cluster2022/12/27

 
Configure Windows Server Failover Clustering (WSFC).
This example is based on the environment like follows.
Prepare 2 Nodes for clustering and they are in Active Directory domain (AD is not mandatory requirements).
Furthermore, they have shared storages for clustering provided from iSCSI Target Server.
                                   |
+----------------------+           |           +----------------------+
|  [      AD DS     ]  |10.0.0.100 | 10.0.0.110|  [  iSCSI Target  ]  |
|    fd3s.srv.world    +-----------+-----------+    tgt01.srv.world   |
|                      |           |           |                      |
+----------------------+           |           +----------------------+
                                   |
+----------------------+           |           +----------------------+
|  [ Cluster Node#1 ]  |10.0.0.101 | 10.0.0.102|  [ Cluster Node#2 ]  |
|    rx-7.srv.world    +-----------+-----------+    rx-8.srv.world    |
|                      |                       |                      |
+----------------------+                       +----------------------+

 
On CUI Configuration, run PowerShell and Set like follows.
[1] Logon to a Node that has cluster administration tools and Test to create cluster to verify each Nodes settings.
If some errors are shown, improve your System and retry Test Job.
For [WARNING] items, you should care them but they are not essential requisites, so if [ClusterConditionallyApproved] is shown, it's possible to create a Cluster.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# [-Node] ⇒ specify Nodes
PS C:\Users\Serverworld> Test-Cluster -Node "RX-7", "RX-8" 
WARNING: Network - Validate Network Communication: The test reported some warnings..
WARNING:
Test Result:
HadUnselectedTests, ClusterConditionallyApproved
Testing has completed for the tests you selected. You should review the warnings in the Report.  A cluster solution is
supported by Microsoft only if you run all cluster validation tests, and all tests succeed (with or without warnings).
Test report file path: C:\Users\Serverworld\AppData\Local\Temp\Validation Report 2022.12.26 At 17.54.06.htm

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        12/26/2022   5:56 PM         705421 Validation Report 2022.12.26 At 17.54.06.htm
[2] Configure Cluster.
# [-Name] ⇒ any Cluster Name
# [-Node] ⇒ specify Nodes for Cluster
# [-AdministrativeAccessPoint] ⇒ Administrative Access Point
# [-StaticAddress] ⇒ IP address for Cluster access
PS C:\Users\Serverworld> New-Cluster -Name Cluster01 -Node "RX-7", "RX-8" `
-AdministrativeAccessPoint ActiveDirectoryAndDns `
-StaticAddress 10.0.0.111 

Name
----
Cluster01

# confirm settings
PS C:\Users\Serverworld> Get-Cluster | Format-List -Property * 

AddEvictDelay                           : 60
AdministrativeAccessPoint               : ActiveDirectoryAndDns
AutoAssignNodeSite                      : 1
AutoBalancerMode                        : 2
AutoBalancerLevel                       : 1
BackupInProgress                        : 0
BlockCacheSize                          : 1024
DetectedCloudPlatform                   : None
DetectManagedEvents                     : 1
DetectManagedEventsThreshold            : 60
ClusSvcHangTimeout                      : 135
ClusSvcRegroupStageTimeout              : 15
ClusSvcRegroupTickInMilliseconds        : 300
ClusterEnforcedAntiAffinity             : 0
ClusterFunctionalLevel                  : 11
ClusterUpgradeVersion                   : 4
ClusterGroupWaitDelay                   : 120
ClusterLogLevel                         : 3
ClusterLogSize                          : 1536
CrossSiteDelay                          : 1000
CrossSiteThreshold                      : 20
CrossSubnetDelay                        : 1000
CrossSubnetThreshold                    : 20
CsvBalancer                             : 1
DatabaseReadWriteMode                   : 0
DefaultNetworkRole                      : 3
Description                             :
Domain                                  : srv.world
DrainOnShutdown                         : 1
DumpPolicy                              : 1376850201
DynamicQuorum                           : 1
EnableSharedVolumes                     : Enabled
FixQuorum                               : 0
GroupDependencyTimeout                  : 600
HangRecoveryAction                      : 6
Id                                      : 12e92f11-d9db-42d5-a350-6f8ec56c5d25
IgnorePersistentStateOnStartup          : 0
LogResourceControls                     : 0
LowerQuorumPriorityNodeId               : 0
MaximumParallelMigrations               : 1
MessageBufferLength                     : 50
MinimumNeverPreemptPriority             : 3000
MinimumPreemptorPriority                : 1
Name                                    : Cluster01
NetftIPSecEnabled                       : 1
PlacementOptions                        : 0
PlumbAllCrossSubnetRoutes               : 0
PreferredSite                           :
PreventQuorum                           : 0
QuarantineDuration                      : 7200
QuarantineThreshold                     : 3
QuorumArbitrationTimeMax                : 20
RecentEventsResetTime                   : 12/27/2022 1:58:19 AM
RequestReplyTimeout                     : 60
ResiliencyDefaultPeriod                 : 240
ResiliencyLevel                         : AlwaysIsolate
RouteHistoryLength                      : 40
S2DBusTypes                             : 0
S2DCacheBehavior                        : Default
S2DCacheDesiredState                    : Enabled
S2DCacheMetadataReserveBytes            : 34359738368
S2DCachePageSizeKBytes                  : 16
S2DEnabled                              : 0
S2DIOLatencyThreshold                   : 10000
S2DOptimizations                        : 0
WprSessionCount                         : 2
WprSessionCoolOffTime                   : 600
SameSubnetDelay                         : 1000
SameSubnetThreshold                     : 20
SecurityLevel                           : 1
SecurityLevelForStorage                 : 0
SetSMBBandwidthLimit                    : 1
SMBBandwidthLimitFactor                 : 2500
SharedVolumeCompatibleFilters           : {}
SharedVolumeIncompatibleFilters         : {}
SharedVolumeSecurityDescriptor          : {1, 0, 4, 128...}
SharedVolumesRoot                       : C:\ClusterStorage
SharedVolumeVssWriterOperationTimeout   : 1800
ShutdownTimeoutInMinutes                : 20
UseClientAccessNetworksForSharedVolumes : 2
WitnessDatabaseWriteTimeout             : 300
WitnessDynamicWeight                    : 1
WitnessRestartInterval                  : 15
EnabledEventLogs                        : {Microsoft-Windows-Hyper-V-VmSwitch-Diagnostic,4,0xFFFFFFFD,
                                          Microsoft-Windows-SMBDirect/Debug,4, Microsoft-Windows-SMBServer/Analytic,
                                          Microsoft-Windows-Kernel-LiveDump/Analytic}
UseRdmaForStorage                       : 1
[3] Verify it's possible to access to Cluster IP address from an any Computer in your Network.
# for example, access via SSH to Cluster IP address
PS C:\Users\Serverworld> ssh serverworld@10.0.0.111 
serverworld@10.0.0.111's password:

Microsoft Windows [Version 10.0.20348.1311]
(c) Microsoft Corporation. All rights reserved.

fd3s01\serverworld@RX-7 C:\Users\Serverworld> powershell 
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\Serverworld> Get-ClusterNode 

Name State Type
---- ----- ----
rx-7 Up    Node
rx-8 Up    Node

PS C:\Users\Serverworld> hostname 
rx-7

PS C:\Users\Serverworld> Get-Volume 

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining      Size
----------- ------------ -------------- --------- ------------ ----------------- -------------      ----
                         NTFS           Fixed     Healthy      OK                     85.68 MB    523 MB
                         FAT32          Fixed     Healthy      OK                     67.21 MB     96 MB
D           Local Disk   NTFS           Fixed     Healthy      OK                     53.85 GB  79.98 GB
C                        NTFS           Fixed     Healthy      OK                    103.06 GB 119.37 GB
F                        NTFS           Fixed     Healthy      OK                    451.25 MB 495.93 MB

# restart computer to verify failover runs normally
PS C:\Users\Serverworld> Restart-Computer -Force 

# access to Cluster again
PS C:\Users\serverworld> ssh serverworld@10.0.0.111 
serverworld@10.0.0.111's password:

fd3s01\serverworld@RX-8 C:\Users\serverworld> powershell 
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\serverworld> Get-ClusterNode 

Name State Type
---- ----- ----
rx-7 Up    Node
rx-8 Up    Node


PS C:\Users\Serverworld> hostname 
rx-8
PS C:\Users\Serverworld> Get-Volume 

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining      Size
----------- ------------ -------------- --------- ------------ ----------------- -------------      ----
                         NTFS           Fixed     Healthy      OK                     85.68 MB    523 MB
                         FAT32          Fixed     Healthy      OK                     67.21 MB     96 MB
D           Local Disk   NTFS           Fixed     Healthy      OK                     53.85 GB  79.98 GB
C                        NTFS           Fixed     Healthy      OK                    103.06 GB 119.37 GB
F                        NTFS           Fixed     Healthy      OK                    451.25 MB 495.93 MB
Windows Server Failover Clustering : Configure Cluster (GUI)
[4] Logon to a Node that has cluster administration tools and start [Server Manager] - [Tools] - [Failover Cluster Manager].
[5] Right-Click [Failover Cluster Manager] on the left pane and start [Create Cluster].
[6] Click [Nect] button.
[7] Input Hostname in [Enter server name] field and Click [add] button, then it is added in [Selected servers]. After adding all Nodes, Click [Nect] button.
[8] Input any Cluster name in [Cluster Name] field and also set IP address for the Cluster name in [Address] section.
[9] Confirm settings and proceed to next if that's OK.
[10] After finishing creation, Click [Finish] button.
[11] It's possible to manage Cluster on [Failover Cluster Manager].
Matched Content