Setting up a Windows failover cluster: Difference between revisions
(Created page with " == Introduction == Setting up a Windows cluster requires at least three virtual machines and two networks. These instructions assume KVM and libvirt are used. Windows versi...") |
No edit summary |
||
Line 139: | Line 139: | ||
[[File:Setting_up_a_Windows_failover_cluster_ad_domain_provision.png]] |
[[File:Setting_up_a_Windows_failover_cluster_ad_domain_provision.png]] |
||
== Setup cluster nodes == |
|||
In both nodes: |
|||
<ol> |
|||
<li> Install the operating system</li> |
|||
<li> Set the hostname</li> |
|||
<li> Set the IP addresses</li> |
|||
{| class="wikitable" |
|||
! |
|||
!colspan="2"|fover-n1 |
|||
!colspan="2"|fover-n2 |
|||
|- |
|||
! |
|||
!Public |
|||
!Private |
|||
!Public |
|||
!Private |
|||
|- |
|||
!IP Address |
|||
|192.168.150.21 |
|||
|192.168.160.21 |
|||
|192.168.150.22 |
|||
|192.168.160.22 |
|||
|- |
|||
!Netmask |
|||
|255.255.255.0 |
|||
|255.255.255.0 |
|||
|255.255.255.0 |
|||
|255.255.255.0 |
|||
|- |
|||
!Gateway |
|||
|192.168.150.1 |
|||
| |
|||
|192.168.150.1 |
|||
| |
|||
|- |
|||
!DNS 1 |
|||
|192.168.150.10 |
|||
| |
|||
|192.168.150.10 |
|||
| |
|||
|- |
|||
!DNS 2 |
|||
| |
|||
| |
|||
| |
|||
| |
|||
|} |
|||
<li>Join the computer to the domain</li> |
|||
</ol> |
|||
== Setup the iSCSI target server == |
|||
In fover-ad: |
|||
# Open the Server Manager console and go to "File and Storage Services" -> "iSCSI" |
|||
# Click TASKS -> New iSCSI virtual disk |
|||
# Follow the "New iSCSI Virtual Disk Wizard" |
|||
## iSCSI Virtual Disk Location |
|||
##; Select C: |
|||
## iSCSCI Virtual Disk Name |
|||
##; Name: quorum |
|||
##; Description: quorum witness disk</il> |
|||
## iSCSI Virtual Disk Size |
|||
##; 128 MB, Dynamically expanding |
|||
## iSCSI target |
|||
##; Select New iSCSI target |
|||
## Target Name and Access |
|||
##; Name: fover |
|||
##; Description: Fover cluster iSCSI target server |
|||
## Access Server |
|||
### Click add |
|||
### Select Query initiator computer for ID |
|||
### Type the node 1 host name (fover-n1.fover.net) |
|||
### Click OK |
|||
### Click add |
|||
### Select Query initiator computer for ID |
|||
### Type the node 2 host name (fover-n2.fover.net) |
|||
### Click OK |
|||
## Enable authentication |
|||
##; Do not enable |
|||
## Confirm |
|||
[[File:Setting_up_a_Windows_failover_cluster_ad_iscsi_target_server.png]] |
Revision as of 17:49, 10 November 2020
Introduction
Setting up a Windows cluster requires at least three virtual machines and two networks.
These instructions assume KVM and libvirt are used. Windows version is Server 2019.
+-------------+ | SMB Client | +-------------+ | 192.168.150.201 | +---------------------------------------------------------------+ | Clients network | +---------------------------------------------------------------+ | | | 192.168.150.10 192.168.150.21 192.168.150.22 | | | +---------------+ +------------+ +------------+ | AD + iSCSI | | Node 1 | | Node 2 | | target server | +------------+ +------------+ +---------------+ | | | | 192.168.160.21 192.168.160.22 | | +---------------------------------------------------------------+ | Cluster network | +---------------------------------------------------------------+
VM name | Hostname | IP addresses | |
---|---|---|---|
win2k19-fover-ad | fover-ad | 192.168.150.10 | |
win2k19-fover-n1 | fover-n1 | 192.168.150.21 | 192.168.160.21 |
win2k19-fover-n2 | fover-ad | 192.168.150.22 | 192.168.160.22 |
Setup libvirt networks
The first step is to create the public and private networks in libvirt. Save the following fragment to a file named cluster-public.xml
:
<network> <name>cluster-public</name> <forward mode='nat'> <nat> <port start='1024' end='65535'/> </nat> </forward> <domain name='cluster-public'/> <dns> <forwarder domain='fover.net' addr='192.168.150.10'/> </dns> <ip address='192.168.150.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.150.200' end='192.168.150.250'/> </dhcp> </ip> </network>
Save the following fragment to cluster-private.xml
:
<network> <name>cluster-private</name> <domain name='fover.net'/> <dns> <forwarder domain='fover.net' addr='192.168.160.10'/> </dns> <ip address='192.168.160.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.160.200' end='192.168.160.250'/> </dhcp> </ip> </network>
Now define and start the networks:
# virsh net-define cluster-public.xml # virsh net-define cluster-private.xml # virsh net-start cluster-public # virsh net-start cluster-private
Setup AD virtual machine
After installing the operating system, set the host name and IP addresses. It is useful to rename the network adapters to know to which network are connected.
Public | Private | |
---|---|---|
IP Address | 192.168.150.10 | 192.168.160.10 |
Netmask | 255.255.255.0 | 255.255.255.0 |
Gateway | 192.168.150.1 | |
DNS 1 | 192.168.150.1 | |
DNS 2 |
Proceed to install the Active Directory Domain Services and iSCSI target server roles:
Once roles are installed, provision the Active Directory domain following the Wizard:
Setup cluster nodes
In both nodes:
- Install the operating system
- Set the hostname
- Set the IP addresses
- Join the computer to the domain
fover-n1 | fover-n2 | |||
---|---|---|---|---|
Public | Private | Public | Private | |
IP Address | 192.168.150.21 | 192.168.160.21 | 192.168.150.22 | 192.168.160.22 |
Netmask | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 |
Gateway | 192.168.150.1 | 192.168.150.1 | ||
DNS 1 | 192.168.150.10 | 192.168.150.10 | ||
DNS 2 |
Setup the iSCSI target server
In fover-ad:
- Open the Server Manager console and go to "File and Storage Services" -> "iSCSI"
- Click TASKS -> New iSCSI virtual disk
- Follow the "New iSCSI Virtual Disk Wizard"
- iSCSI Virtual Disk Location
- Select C
- iSCSCI Virtual Disk Name
- Name
- quorum
- Description
- quorum witness disk</il>
- iSCSI Virtual Disk Size
- 128 MB, Dynamically expanding
- iSCSI target
- Select New iSCSI target
- Target Name and Access
- Name
- fover
- Description
- Fover cluster iSCSI target server
- Access Server
- Click add
- Select Query initiator computer for ID
- Type the node 1 host name (fover-n1.fover.net)
- Click OK
- Click add
- Select Query initiator computer for ID
- Type the node 2 host name (fover-n2.fover.net)
- Click OK
- Enable authentication
- Do not enable
- Confirm
- iSCSI Virtual Disk Location