Hello everyone,
I''ve completed this setup:
OS: Windows server 2016
Database: SQL Server 2017
2 node availability group configured with automatic failover on both nodes. Fileshare witness configured, both nodes enabled readable secondary replicas.
Database showing synchronized on both nodes. Availability group state: Healthy, configured normal quorum and Fileshare witness and node 1, node 2 all three has 1 vote and state is online.
The question is i cannot access database when i stopped SQL service on one of nodes. Failover occurs to DB2 and status changed to primary when i stopped SQL service on DB1. When I try to select from BikeStores in DB2 this error shows:
database lacks a quorum of nodes for high availability.
Is my configuration wrong? or am I using try to achieve not possible scenario in availability group?