Tag: EnterpriseInfrastructure

  • Windows Server 2022 Failover Clustering iSCSI Target

    Windows Server 2022 Failover Clustering iSCSI Target

    Let’s have a look at Windows Server 2022 Failover Clustering iSCSI Target setup and configuration. The two-node failover cluster configuration operating Windows Server 2022 with shared disks mapped from the ISCSI san.

    In this guide, I will cover the steps of the creation of a two-node Active/Passive Windows Server Failover Cluster. For the purpose of creating such a cluster it is necessary to have a few things in place, so I thought I should start from the beginning. This guide will brief connection to shared NAS storage using the iSCSI initiator.

    I have experience involving in creating High Availability solutions for Enterprise products and based on that work have a short time ago worked with Windows Failover Clustering and network load balancing clustering in Windows Server 2022. I have built multi-node failover clusters for Hyper-V, SQL Server, different applications, and Network Load Balancing clusters.

    Table of contents

    Summary of Windows Server 2022 Failover Cluster

    Virtual Machines Settings

    Add DNS Records

    Enable Windows Failover Clustering features

    Install Windows Failover Clustering PowerShell

    Configure iSCSI Initiator

    Create Windows Cluster Configuring iSCSI Disk

    Failover Cluster Validate Configuration

    Creating Failover Cluster

    Verify the DNS Configuration

    Summary of Windows Server 2022 Failover Cluster Deployment

    The below steps are the high-level steps required for your Windows Cluster deployment.
    Deploy two Windows Server 2022
    Finish all Windows Updates
    Join Servers to domain
    Each Node will have two network interfaces
    Production Network
    Cluster Network
    Add DNS records
    Primary Server
    Secondary Server
    Cluster Server Name (My-Cluster)
    Attach the same ISCSI disk (LUN) to the primary node and secondary node.
    Install Failover clustering role on both nodes
    Bring the disk online via disk management on the primary node.
    Join nodes to the cluster

    Virtual Machines Settings

    Domain Controller – DC (WS2022-DC)
    IP Address – 192.168.241.100
    iSCSI Server – iSCSI-Shared
    IP Address – 192.168.241.102
    Node 1 – WS2022-01
    Primary Network – Production – 192.168.241.104
    Secondary Network – Cluster – 10.0.0.2
    Node 2 – WS2022-02
    Primary Network – Production – 192.168.241.108
    Secondary Network – Cluster – 10.0.0.3
    Cluster Name – My-Cluster
    IP Address – 192.168.241.112
    Two nodes Network Connections

    Network connections

    Add DNS records for the Virtual Machines.

    DNS Manager

    Windows Failover Clustering in Windows Server 2022

    You can install failover clustering via GUI, In the server manager dashboard, click on Add roles and features.

    Server manager 2022

    Click Next to Continue

    Add roles and features wizard

    Choose Role Based Installation and then click Next.

    Select installation type

    Choose the server and click next.

    Select destination server

    Server Roles, click next

    Select server roles

    Tick failover cluster checkbox.

    Feature failover clustering 2022

    Click on add features

    Select failover clustering tools

    After selecting Failover Clustering, click next.

    Select feature failover clustering 2022

    Click Install

    Confirm installation selection failover

    Click close

    Failover clustering 2022 feature results

    After failover clustering successful installation, it appears in the Server Manager, select Tools, and then select Failover Cluster Manager.

    How to Install failover clustering feature using the PowerShell

    Open Windows PowerShell, type the below command and then press enter.

    Install-WindowsFeature Failover-Clustering –IncludeManagementTools

    Failover clustering PowerShell commands

    Now you can see Failover Cluster Manager in Server Manager tools

    Server manager 2022

    Creating Windows Server cluster – Using iSCSI to connect to shared storage

    Follow the below steps to configure iSCSI.

    Run the iSCSI Initiator from the first Node Server 2022 (WS2022-01).

    Click on tools and then iSCSI initiator

    Server manager 2022

    Select the Yes button to start the iSCSI initiator service and enable it to start automatically every time when a server reboots. You want this service to start automatically so that your cluster nodes will be automatically connected to the shared storage when rebooting.

    Microsoft iSCSI service is not running

    The iSCSI Initiator will popup, click on the Discovery tab.
    Click the Discover Portal button.

    iSCSI initiator properties discovery

    Type the IP Address of the iSCSI shared storage and then click on the Advanced button.

    Discover target portal

    In the Advanced settings from the Local Adapter, the dropdown box chooses Microsoft iSCSI Initiator, and in the Initiator IP box choose the IP Address of the NIC that is dedicated to your iSCSI connection. Click ok twice

    Discover target portal advanced settings

    Choose the LUNs you need to connect to and then click the Connect button.

    iSCSI initiator properties targets

    Click ok

    iSCSI initiator connect to target

    Now you are connected to your iSCSI target.

    iSCSI initiator properties target

    Follow the same steps for the secondary node

    How to create Windows cluster configuring shared disk in the cluster node 1 (WS2022-01)

    We will have a look at configuring the disks we have attached to our prospective cluster nodes.
    Type DISKMGMT.MSC in the run box and then hit enter to open disk management.

    Diskmgment.msc run command

    Now you can see the shared disk (iSCSI) displayed as Offline, Unknown, and Unallocated.
    Right-click on the disk representation and then choose Online.

    Disk management online disk

    Right-click on the disk and then choose Initialize Disk.

    Disk management initialize disk

    Click ok

    Initialize disk

    Right-click on the disk and then choose New Simple Volume.

    Disk management new simple volume

    Click Next

    Welcome to new simple volume

    Click Next

    New simple volume size

    Assign the drive letter by selecting it from the dropdown menu. In this shared disk I am using E. Click Next

    New simple volume drive letter

    Provide a volume label and then click next.

    New simple volume format partition

    Select the Finish button to complete the creation of the volume.

    Completing the simple volume wizard

    Now you can see the shared disk.

    Disk management

    After configuring the disks on the first node, take them offline. Right-click on the disk and select Offline.

    Disk management disk offline

    On the second cluster node (WS2022-02) open disk management by typing DISKMGMT.MSC in run command.

    Right click on the disk and then select Online.

    Disk management disk online

    The disk(s) appear and are formatted with the drive letter.
    If the drive letter doesn’t show then select Rescan Disks from the Action menu.

    Disk management

    If the drive letter is mismatched so needs to match them.
    How to Change Drive Letter

    Failover Cluster readiness check on Primary Node (WS2022-01)

    Now we have successfully mapped two nic’s to both servers, and added the same ISCSI san on both servers, formatted and have a volume up on one server.

    Let’s verify if everything is ok.

    Under Server Manager choose Tools and then select Failover Cluster Manager.

    Server manager

    Under the Action menu, select Validate Configuration.

    Failover cluster manager

    Click Next.

    Validate a configuration wizard

    Click on the browse button.

    Select servers or a clustering

    Type a node name and then click check names.

    Select servers or a clustering

    Select both the nodes and then click ok.

    Select both the nodes and then click ok

    Click ok

    Enter the object name to select

    After selecting the two-node for validation, click next.

    Select servers or a cluster

    Select Run all tests and then click next.

    Validate a configuration run all tests

    Review the configuration and click next.

    Validate a configuration confirmation

    Cluster validation tests will take a while

    Failover cluster validation in progress

    If you get any errors, correct them before you proceed. Once validation completes, view the report and then click Finish.

    Validate configuration failover cluster summary

    Creating Failover Cluster Server in Windows Server 2022

    Click on Create Cluster.

    Failover cluster manager

    Click Next.

    Create cluster wizard

    Select the browse button to search the servers

    Failover clustering select servers

    Creating cluster wizard servers

    Enter the object name to select

    Click next

    Creating cluster wizard servers

    Enter a cluster name, type the IP address and then click Next.

    Access point for administering the cluster

    Tick add all eligible storage….. and then click next.

    Creating cluster wizard confirmation

    Creating New cluster

    Creating New cluster

    Once done, click Finish

    Create cluster wizard summary

    Failover cluster manager.

    Failover cluster manager 2022

    Click on the nodes option and see both the Nodes are up now.

    Failover cluster manager Nodes

    Click on the Storage option, we can see the disk being mapped.

    Failover cluster manager disks

    Verify the DNS Configuration.

    Active directory users and computers

    Verify if the My-Cluster address is pingable.

    Ping command

    For more details please Microsoft