hi,
any easy to follow procedure on how to setup :
1) Windows cluster.
2) SQL server 2019 AG of 2 x nodes.
I haven't touch this kind of setup for a long long time and I forget about it.
Did you not setup a failover clusters into an AG?
https://social.msdn.microsoft.com/Forums/en-US/c2b319fb-2f66-471f-a3d1-4e9137baf565/two-single-node-clusterag-with-distributed-availability-group
2) For AG, it is rather straight forward, there are many out there, just list one
Once you receive your pair of servers, the WSFC (no need shared drives) should have already been installed by another team.
Install SQL Server on each node and enable Always On feature by selecting the cluster.
Create database and build AG.
You are right. For some reason, "active-active" is used in the SQL world, it is really active-passive in nature.
You then combine the single node clusters as part of AG.
File share witness requirements
If odd number of nodes, may not have to create quorum.node majority ...
even if even number of nodes, people may forget configure quorum.
Cluster is not absolute necessary for AGwhat good is AG with cluster and without .. ?
In some case, we even do not need HA.in our case we need , so need cluster I belive
, I can migrate a DB on Windows from premise to cloud on Linux using AG.why is it related to cluster?
The difficult is the split-brain situation.
DB migration and distributed AG do not need HA,
It depends. If the primary node down, it will auto failover.
Cluster is not absolute necessary for AG
https://www.sqlshack.com/read-scale-availability-group-in-a-clusterless-availability-group/
SQL Server failover clustering increases the complexity to deploy and sometimes we do not want to configure it. For example, suppose we have a system in the demilitarized zone (DMZ) for reporting purpose. We do not want to configure failover clustering as it involves opening multiple ports between networks.
For your case, just keep it simple: WSFC with Quorum without shared storage + AG, that's good enough.
2 NIC is more common: 1 for connection and another for heart beat.
Shared storage is for SQL Server FCIyes. that concerpt
For AG, do not need it.
Unless you want to build a AG between a FCI and a standard alone SQL.
architecture-wise same as single node + single node
Though it is for active-active FCI, you can check out the Windows Cluster setup portion
2) For AG, it is rather straight forward, there are many out there, just list one
https://www.youtube.com/watch?v=C_upGmeTjz0