Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SQL Server 2017 AlwaysOn on Linux configuration and maintenance (18)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

2.6.2 modify CIB using Pacemaker

On the Windows platform, WSFC itself supports multiple subnets and handles multiple IP addresses through OR dependence on IP addresses.

On the Linux platform, there is no OR dependency, but you can use Pacemaker to modify the CIB to support multiple subnets. You cannot simply modify a resource through the Pacemaker command, you need to modify the cluster information base (CIB). CIB is an XML file for Pacemaker configuration.

Export CIB

Sudo pcs cluster cib

Edit the CIB file

In the section, you will see the various resources created by the tail AG or FCI. Locate the resource associated with the IP address. For the second IP address, above or below the existing IP address, but before, add

Part. The syntax is similar to:

For example:

Import CIB and reconfigure Pacemaker

Sudo pcs cluster cib-push

Check and verify the failover

1.PING the DNS name associated with the IP address resource in Pacemaker. It should return the IP address associated with the current subnet that hosts the AG or FCI.

two。 Fail over AG or FCI to another subnet.

3. PING the DNS name associated with the IP address after AG or FCI is fully online. It should return the IP address of the second subnet.

4. If necessary, fail over AG or FCI back to the original subnet.

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report