In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Scheme 1: the active and standby source IP is used for business access, and the new Nic is bound to IP for AG communication.
Test environment description:
AG role
Hostnam
Network adapter
IP address
Main library
TEST-GS-ZHXT1
Ethernet0
10.198.197.167
Ethernet1
10.198.197.173
Prepare the library
TEST-GS-ZHXT2
Ethernet0
10.198.197.168
Ethernet1
10.198.197.174
Disaster preparedness
TEST-GS-ZHXT3
Ethernet0
10.198.194.183
DNS parsing:
Failover cluster configuration:
AG deployment:
1. Create communication endpoints for proprietary AG communication IP 173,174.
USE [master] GO/* Object: Endpoint [Hadr_endpoint] Script Date: 14:33:43 on 2018-6-26 * / CREATE ENDPOINT [Hadr_endpoint] STATE=STARTEDAS TCP (LISTENER_PORT = 5022, LISTENER_IP = (10.198.197.173)) FOR DATA_MIRRORING (ROLE = ALL, AUTHENTICATION = WINDOWS NEGOTIATE, ENCRYPTION = REQUIRED ALGORITHM AES) GO
two。 Create an availability group and specify ENDPOINT_URL as the exclusive AG communication IP.
Test:
1. Local and remote access to primary and standby source IP database services
Try to access through SSMS:
Can be accessed normally.
two。 Primary node downtime switch to standby node
Perform an AG failover manually, and then attempt to access the new primary node source IP database service locally and remotely:
Can be accessed normally.
3. Remove the backup node from AG and swap 10.198.197.167 with 10.198.197.168
First add a static route from the remote access exit IP to the server 167and168 Ethernet 1 interfaces to avoid Ethernet 0 disabling and enabling during the IP exchange to prevent RDP from being able to connect to the server.
Remove the standby node from AG
Connect to the server through 10.198.197.173 and disable Ethernet 0
Connect to the server by 10.198.197.174 and modify the IP of Ethernet 0 to 10.198.197.167
Connect to the server by 10.198.197.173, modify the IP of Ethernet 0 to 10.198.197.168, and enable the network card
From DNS queries to updates to
To observe that the state of WSFC is normal and that of AG is normal.
Node 1 Network connection switches to Ethernet 1
Node 2 IP of network connection Ethernet 0 has been switched
Attempt to access the primary and standby node source IP database service locally and remotely:
Can be accessed normally.
Summary:
Solution 1: Ethernet 1 will be recognized when Ethernet 0 is temporarily disabled during IP handover, so Ethernet 1 needs to add static routes in advance to ensure normal communication between WSFC and AG.
The first scheme can meet the needs of separate use of business IP and high-availability IP.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.