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 (12)

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

Share

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

2.4.1 Manual failover

Mobile AG resources

Manually fail over the AG resource ag_cluster to the cluster node nodeName2:

Sudo pcs resource move ag_cluster-master nodeName2-master

Delete position constraint

First look at the location constraints of the resources added on the new target node:

Sudo pcs constraint list-full

For example:

Enabled on: Node1 (score:INFINITY) (role: Master) (id:cli-prefer-ag_cluster-master)

Cli-prefer-ag_cluster-master is the constraint ID that needs to be deleted.

Perform the deletion:

Sudo pcs constraint remove cli-prefer-ag_cluster-master

Note: automatic failover does not add positional constraints, so cleanup is not required.

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