【精心整理】DB2 + HADR + TSA 高可用配置(实用)

DB2 HADR 配置 DB2 HADR Configuration 阅读详情
AI摘要

本文分享DB2数据库与TSA高可用集群软件的技术文档。介绍了TSA概念,它与DB2 HADR配合实现故障自动切换。详细说明了配置过程,包括服务器环境配置、TSA安装与配置等。还列举了常见问题及解决办法,如故障切换原理、执行命令报错处理等,并给出常用命令。

目录

前言

一、概念简介

二、配置过程

2.1. 服务器环境配置

2.2. 安装TSA

2.3. 配置TSA

2.3.1. 备机执行 db2haicu

2.3.2. 主机执行 db2haicu

2.4. 查看TSA集群状态

三、常见问题

问题一:DB2 HADR 和 TSAMP 故障切换是如何工作的?

问题二:备机执行db2haicu创建资源时最后报错

问题三:备机执行db2haicu创建资源时最后报错

问题四:执行preprpnode报错

问题五:集群节点状态异常(一般发生在异常切换的时候 )

四、常用命令


前言

12年就注册了CSDN,当时主要是上学为了下载一些资源,后来就一直没用,因为自己也没有技术沉淀,写不出什么花。如今干了十年IT运维,多少也算是有一点点沉淀了。兜兜转转看了好几个平台,还是觉得CSDN的技术氛围最纯粹,都是一群热爱技术的我们。所以,就又回到CSDN,准备与大家一起分享技术,一起共同进步。转眼又一年,2023马上就要到尾声了,今天看到这个话题活动,就想跟大家分享分享。下面我准备了一份关于DB2数据库的技术文档,希望对大家有帮助。虽然在去IOE、大搞信创的大背景下,DB2数据库已经日渐衰落,不过还是想跟大家分享,我们只谈技术。

一、概念简介

TSA(Tivoli System Automation for Multiplatforms)是一款高可用集群软件,它基于IBM的RSCT技术构建。TSA底层可以作为SA MP组件内置于DB2的安装介质中,与DB2一起安装。TSA一般和DB2的HADR配合使用,以实现故障的自动切换和服务IP的提供。

二、配置过程

2.1. 服务器环境配置

操作系统:RedHat 6.5

数据库:DB2 10.5.0.7

A机:192.168.0.11 数据库:mytsa 主机名:tsa-svra

B机:192.168.0.12 数据库:mytsa 主机名:tsa-svrb

服务IP:192.168.0.10

定额(仲裁)设备IP:192.168.0.254

因为没有专门的定额设备或者叫仲裁设备,这里我们暂时使用网关来配置。

2.2. 安装TSA

1. DB2安装包自带TSA软件(/opt/server_t/db2/linuxamd64/tsamp),安装前可执行prereqSAM进行适配性检查,如有依赖包缺失会提示,根据提示安装所需依赖包即可,依赖包在对应系统版本的iso文件中。执行installSAM即可完成TSA的安装。

2. 安装完成后会提示添加profile配置文件

installSAM: Waring: Must set CT_MANAFEMENT_SCOPE=2
在/root/.bash_profile中添加 export CT_MANAFEMENT_SCOPE=2  (重要!!!)
source .bash_profile使配置生效

3. 导入TSA的license

#samlicm –i xxx.lic
#samlicm –s 可查看授权情况 

注意:DB2 10.5.0.8及以上版本在安装DB2数据库服务端的时候是默认会安装TSA的,DB2 10.5.0.8以下版本的需要手工单独安装TSA。 

2.3. 配置TSA

1. 在主备机的 /etc/hosts 文件中添加主机名

echo "tsa-svra   192.168.0.11" >> /etc/hosts
echo "tsa-svrb   192.168.0.12" >> /etc/hosts

2. 创建节点数据库集群

#/usr/sbin/rsct/install/bin/recfgct (初始化ct_node_id,避免由于虚拟机克隆导致的node重复问题,会影响动态逻辑分区(DLPAR))

#/usr/sbin/rsct/bin/preprpnode tsa-svra tsa-svrb(此步骤为主备机提供通讯,若此步骤不执行将无法正常进行通讯)

3. 安装TSA切换脚本

# $DB2DIR/install/tsamp/db2cptsa (即/opt/ibm/db2/V10.5/ha/tsa 目录下脚本) 

4. 使用数据库实例用户通过db2haicu进行集群配置,首先在备机(切记先备后主)进行配置:

2.3.1. 备机执行 db2haicu

Welcome to the DB2 High Availability Instance Configuration Utility (db2haicu).
 
You can find detailed diagnostic information in the DB2 server diagnostic log file called db2diag.log. Also, you can use the utility called db2pd to query the status of the cluster domains you create.
 
For more information about configuring your clustered environment using db2haicu, see the topic called 'DB2 High Availability Instance Configuration Utility (db2haicu)' in the DB2 Information Center.
 
db2haicu determined the current DB2 database manager instance is 'tsainst'. The cluster configuration that follows will apply to this instance.
 
db2haicu is collecting information on your current setup. This step may take some time as db2haicu will need to activate all databases for the instance to discover all paths ...
When you use db2haicu to configure your clustered environment, you create cluster domains. For more information, see the topic 'Creating a cluster domain with db2haicu' in the DB2 Information Center. db2haicu is searching the current machine for an existing active cluster domain ...
db2haicu did not find a cluster domain on this machine. db2haicu will now query the system for information about cluster nodes to create a new cluster domain ...
 
db2haicu did not find a cluster domain on this machine. To continue configuring your clustered environment for high availability, you must create a cluster domain; otherwise, db2haicu will exit.
 
Create a domain and continue? [1]
1. Yes
2. No
1
Create a unique name for the new domain:   # 创建资源名称,根据实际情况取名
db2_tsainst_mytsa
Nodes must now be added to the new domain.
How many cluster nodes will the domain 'db2_tsainst_mytsa' contain?  # 资源组包含几个节点
2
Enter the host name of a machine to add to the domain:  # 输入节点名称,需与步骤 2.3 preprnode 执行名称以及HADR配置主机名一致
tsa-svra
Enter the host name of a machine to add to the domain:
tsa-svrb   
db2haicu can now create a new domain containing the 2 machines that you specified. If you choose not to create a domain now, db2haicu will exit.
 
Create the domain now? [1]
1. Yes
2. No
1
Creating domain 'db2_tsainst_mytsa' in the cluster ...
Creating domain 'db2_tsainst_mytsa' in the cluster was successful.
You can now configure a quorum device for the domain. For more information, see the topic "Quorum devices" in the DB2 Information Center. If you do not configure a quorum device for the domain, then a human operator will have to manually intervene if subsets of machines in the cluster lose connectivity.
 
Configure a quorum device for the domain called 'db2_tsainst_mytsa'? [1]  # 创建定额(仲裁)设备
1. Yes
2. No
 
The following is a list of supported quorum device types:
  1. Network Quorum
Enter the number corresponding to the quorum device type to be used: [1]
1
Specify the network address of the quorum device:   # 定额设备IP,这里我们使用网关IP
192.168.0.254
Configuring quorum device for domain 'db2_tsainst_mytsa' ...
Configuring quorum device for domain 'db2_tsainst_mytsa' was successful.
The cluster manager found the following total number of network interface cards on the machines in the cluster domain: '2'.  You can add a network to your cluster domain using the db2haicu utility.
 
Create networks for these network interface cards? [1]   # 添加网卡进集群,用于通讯及心跳检测
1. Yes
2. No
1
Enter the name of the network for the network interface card: 'eth1' on cluster node: 'tsa-svra'
1. Create a new public network for this network interface card.
2. Create a new private network for this network interface card.
3. Skip this step.
Enter selection:
1
Are you sure you want to add the network interface card 'eth1' on cluster node 'tsa-svra' to the network 'db2_public_network_0'? [1]
1. Yes
2. No
1
Adding network interface card 'eth1' on cluster node 'tsa-svra' to the network 'db2_public_network_0' ...
Adding network interface card 'eth1' on cluster node 'tsa-svra' to the network 'db2_public_network_0' was successful.
Enter the name of the network for the network interface card: 'eth1' on cluster node: 'tsa-svrb'
1. db2_public_network_0
2. Create a new public network for this network interface card.
3. Create a new private network for this network interface card.
4. Skip this step.
Enter selection:  # 记住这里还是选择1,在各个创建的网络中添加
1
Are you sure you want to add the network interface card 'eth1' on cluster node 'tsa-svrb' to the network 'db2_public_network_0'? [1]
1. Yes
2. No
1
Adding network interface card 'eth1' on cluster node 'tsa-svrb' to the network 'db2_public_network_0' ...
Adding network interface card 'eth1' on cluster node 'tsa-svrb' to the network 'db2_public_network_0' was successful.
Retrieving high availability configuration parameter for instance 'tsainst' ...
The cluster manager name configuration parameter (high availability configuration parameter) is not set. For more information, see the topic "cluster_mgr - Cluster manager name configuration parameter" in the DB2 Information Center. Do you want to set the high availability configuration parameter?
The following are valid settings for the high availability configuration parameter:
  1.TSA
  2.Vendor
Enter a value for the high availability configuration parameter: [1]
1
Setting a high availability configuration parameter for instance 'tsainst' to 'TSA'.
Adding DB2 database partition '0' to the cluster ...
Adding DB2 database partition '0' to the cluster was successful.
Do you want to validate and automate HADR failover for the HADR database 'TSADB'? [1]
1. Yes
2. No
1
Adding HADR database 'TSADB' to the domain ...
HADR database 'TSADB' has been determined to be valid for high availability. However, the database cannot be added to the cluster from this node because db2haicu detected this node is the standby for HADR database 'TSADB'. Run db2haicu on the primary for HADR database 'TSADB' to configure the database for automated failover.
All cluster configurations have been completed successfully. db2haicu exiting ...

2.3.2. 主机执行 db2haicu

Welcome to the DB2 High Availability Instance Configuration Utility (db2haicu).

You can find detailed diagnostic information in the DB2 server diagnostic log file called db2diag.log. Also, you can use the utility called db2pd to query the status of the cluster domains you create.

For more information about configuring your clustered environment using db2haicu, see the topic called 'DB2 High Availability Instance Configuration Utility (db2haicu)' in the DB2 Information Center.

db2haicu determined the current DB2 database manager instance is 'tsainst'. The cluster configuration that follows will apply to this instance.

db2haicu is collecting information on your current setup. This step may take some time as db2haicu will need to activate all databases for the instance to discover all paths ...
When you use db2haicu to configure your clustered environment, you create cluster domains. For more information, see the topic 'Creating a cluster domain with db2haicu' in the DB2 Information Center. db2haicu is searching the current machine for an existing active cluster domain ...
db2haicu found a cluster domain called 'db2_tsainst_TSADB' on this machine. The cluster configuration that follows will apply to this domain.

Retrieving high availability configuration parameter for instance 'tsainst' ...
The cluster manager name configuration parameter (high availability configuration parameter) is not set. For more information, see the topic "cluster_mgr - Cluster manager name configuration parameter" in the DB2 Information Center. Do you want to set the high availability configuration parameter?
The following are valid settings for the high availability configuration parameter:
  1.TSA
  2.Vendor
Enter a value for the high availability configuration parameter: [1]
1
Setting a high availability configuration parameter for instance 'tsainst' to 'TSA'.
Adding DB2 database partition '0' to the cluster ...
Adding DB2 database partition '0' to the cluster was successful.
Do you want to validate and automate HADR failover for the HADR database 'TSADB'? [1]
1. Yes
2. No
1
Adding HADR database 'TSADB' to the domain ...
Adding HADR database 'TSADB' to the domain was successful.
Do you want to configure a virtual IP address for the HADR database 'TSADB'? [1]   # 添加虚拟IP,即服务地址
1. Yes
2. No
1
Enter the virtual IP address:
192.168.0.10
Enter the subnet mask for the virtual IP address '192.168.0.10': [255.255.255.0]
255.255.255.0
Select the network for the virtual IP '192.168.0.10':
1. db2_public_network_0
Enter selection:
1
Adding virtual IP address 192.168.0.10 to the domain ... 
Adding virtual IP address 192.168.0.10 to the domain was successful. 
All cluster configurations have been completed successfully. db2haicu exiting …

2.4. 查看TSA集群状态

[root@xsdev-008 tmp]# lssam

Online IBM.ResourceGroup:db2_tsainst_tsa-svra_0-rg Nominal=Online
        '- Online IBM.Application:db2_tsainst_tsa-svra_0-rs
                '- Online IBM.Application:db2_tsainst_tsa-svra_0-rs:tsa-svra
Online IBM.ResourceGroup:db2_tsainst_tsa-svrb_0-rg Nominal=Online
        '- Online IBM.Application:db2_tsainst_tsa-svrb_0-rs
                '- Online IBM.Application:db2_tsainst_tsa-svrb_0-rs:tsa-svrb
Online IBM.ResourceGroup:db2_tsainst_tsainst_TSADB-rg Nominal=Online
        '- Online IBM.Application:db2_tsainst_tsainst_TSADB-rs
                |- Online IBM.Application:db2_tsainst_tsainst_TSADB-rs:tsa-svra
                '- Offline IBM.Application:db2_tsainst_tsainst_TSADB-rs:tsa-svrb
Online IBM.Equivalency:db2_public_network_0
        |- Online IBM.NetworkInterface:eth1:tsa-svra
        '- Online IBM.NetworkInterface:eth1:tsa-svrb
Online IBM.Equivalency:db2_tsainst_tsa-svra_0-rg_group-equ
        '- Online IBM.PeerNode:tsa-svra:tsa-svra
Online IBM.Equivalency:db2_tsainst_tsa-svrb_0-rg_group-equ
        '- Online IBM.PeerNode:tsa-svrb:tsa-svrb
Online IBM.Equivalency:db2_tsainst_tsainst_TSADB-rg_group-equ
        |- Online IBM.PeerNode:tsa-svra:tsa-svra
        '- Online IBM.PeerNode:tsa-svrb:tsa-svrb

至此,DB2 + HADR +TSA 高可用部署完毕。

三、常见问题

问题一:DB2 HADR 和 TSAMP 故障切换是如何工作的?

答:当HADR中的主机发生故障,"hadrV97_monitor.ksh" (/opt/ibm/db2/V10.5/ha/tsa)脚本侦测到故障,然后报告给TSAMP。TSAMP在故障主机调用"hadrV97_stop.ksh"脚本。当调用结束后,在HADR备机上调用"hadrV97_start.ksh"脚本。"hadrV97_start.ksh"脚本会调用 db2gcf程序; db2gcf程序会尝试故障切换让备机接管主机工作。接管的具体命令为"TAKEOVER HADR BY FORCE PEER WINDOW ONLY"。当旧的主机从故障中恢复,TSAMP会自动通过脚本"db2V97_start.ksh"启动DB2实例。作为这个操作的一部分,HADR数据库会通过命令"start hadr on db <dbname> as standby"恢复到 pair状态。

问题二:备机执行db2haicu创建资源时最后报错

报错信息:Creating resources for the instance '' has failed.

答: 检查 db2haicu 步骤 Enter the host name of a machine to add to the domain: 中输入节点、以及preprnode执行加入的加点名称是否一致。 可以通过查看数据库 db2diag 诊断日志定位:

2023-12-01-15.06.57.052079-240 E1413216E647          LEVEL: Error
PID     : 9438                 TID : 139919062497056 PROC : db2haicu
INSTANCE: tsainst              NODE : 000
HOSTNAME: tsa-svrb
FUNCTION: DB2 UDB, high avail services, sqlhaUICreateHADR, probe:7029
RETCODE : ECF=0x90000531=-1879046863=ECF_SQLHA_INVALID_PARAM
          Invalid parameter to SQLHA call
MESSAGE : There is a mismatch between the local hostname value and the HADR DB
          CFG value (HADR_LOCAL_HOST or localHost). Correct this and re-run
          db2haicu.

问题三:备机执行db2haicu创建资源时最后报错

报错信息:DB2 HA scripts were not found in '/usr/sbin/rsct/sapolicies/db2'. Run the db2cptsa utility to install the scripts and then re-run the command.

答:安装TSA切换脚本,执行# $DB2DIR/install/tsamp/db2cptsa  ($DB2DIR是数据库安装目录,以我为例即/opt/ibm/db2/V10.5/ha/tsa 目录下脚本),这个脚本作用其实是将故障转移所需要的脚本手工cp过来而已。

问题四:执行preprpnode报错

报错信息::/opt/rsct/bin/lsrsrc-api: 2612-022 A session could not be established with the RMC daemon on tsa-svra.
preprpnode: Unable to obtain the public key from tsa-svra. 

答:出现类似报错一般为防火墙原因,关闭防火墙后再重新执行即可。
systemctl stop firewalld 

service iptables stop

根据操作系统版本不同,上述两个命令可能不同,请根据实际情况执行。

问题五:集群节点状态异常(一般发生在异常切换的时候 )

报错信息:

Online IBM.ResourceGroup:db2_tsainst_tsa-svra_0-rg Nominal=Online
        '- Online IBM.Application:db2_tsainst_tsa-svra_0-rs
                '- Online IBM.Application:db2_tsainst_tsa-svra_0-rs:tsa-svra
Online IBM.ResourceGroup:db2_tsainst_tsa-svrb_0-rg Nominal=Online
        '- Online IBM.Application:db2_tsainst_tsa-svrb_0-rs
                '- Online IBM.Application:db2_tsainst_tsa-svrb_0-rs:tsa-svrb
Online IBM.ResourceGroup:db2_tsainst_tsainst_TSADB-rg Control=MemberInProblemState Nominal=Online
        |- Online IBM.Application:db2_tsainst_tsainst_TSADB-rs Control=MemberInProblemState
                |- Online IBM.Application:db2_tsainst_tsainst_TSADB-rs:tsa-svra
                '- Failed offline IBM.Application:db2_tsainst_tsainst_TSADB-rs:tsa-svrb
        '- Online IBM.ServiceIP:db2ip_192.168.0.10-rs
                |- Online IBM.ServiceIP:db2ip_192.168.0.10-rs:tsa-svra
                '- Offline IBM.ServiceIP:db2ip_192.168.0.10-rs:tsa-svrb
Online IBM.Equivalency:db2_tsainst_tsa-svra_0-rg_group-equ
        '- Online IBM.PeerNode:tsa-svra:tsa-svra
Online IBM.Equivalency:db2_tsainst_tsa-svrb_0-rg_group-equ
        '- Online IBM.PeerNode:tsa-svrb:tsa-svrb
Online IBM.Equivalency:db2_tsainst_tsainst_TSADB-rg_group-equ
        |- Online IBM.PeerNode:tsa-svra:tsa-svra
        '- Online IBM.PeerNode:tsa-svrb:tsa-svrb
Online IBM.Equivalency:db2_private_network_0
        |- Online IBM.NetworkInterface:eth1:tsa-svra
        '- Online IBM.NetworkInterface:eth1:tsa-svrb
Online IBM.Equivalency:db2_public_network_0
        |- Online IBM.NetworkInterface:eth0:tsa-svra
        '- Online IBM.NetworkInterface:eth0:tsa-svrb

答:出现类似报错需要重置集群节点状态,用root用户执行如下命令:
resetrsrc -s 'Name=="db2_tsainst_tsainst_TSADB-rs" && NodeNameList="tsa-svrb"' IBM.Application

四、常用命令

命令

说明

preprpnode

这个命令为集群中包含的节点准备安全设置。当发出这个命令时,在节点之间交换公共密钥并修改RMC访问控制列表(ACL),让集群的所有节点都能够访问集群资源。

mkrpdomain

这个命令创建一个新的集群定义。它用来指定集群的名称以及要添加进集群的节点列表。

lsrpdomain

这个命令列出运行这个命令的节点所属集群的相关信息。

startrpdomain/stoprpdomain

这些命令分别使集群在线和离线。

addrpnode

在定义并运行集群之后,使用这个命令在集群中添加新节点。

startrpnode/stoprpnode

这些命令分别使集群中的单独节点在线和离线。在执行系统维护时常常使用这些命令。停止节点,执行修复或维护,然后重新启动节点,这时它会重新加入集群。

lsrpnode

这个命令用来查看为集群定义的节点列表,以及每个节点的操作状态(OpState)。注意,这个命令只在集群中的在线节点上有效;在离线节点上,它不显示节点列表。

rmrpdomain

这个命令删除一个定义的集群。

rmrpnode

这个命令从集群定义中删除一个或多个节点。


呕心沥血整理了,希望大家喜欢,不足之处,请多指教。

提前祝大家春节快乐,龙行龘龘!

DB2 HADR 配置 centos 7配置 DB2 HADR 版本 11.1,【亲测可用】全网最细 阅读详情

相关推荐

深入浅出:DB2数据库HADR配置及详解

HADR是一种高可用性和灾难恢复解决方案,旨在确保DB2数据库在发生故障时能够迅速恢复。这项技术支持将数据库的实时数据从一个主节点(Primary)复制到一个或多个备用节点(Standby),从而实现数据的高可用性和高可靠性。HADR的工作原理主要依赖于日志传输,通过安全、可靠的方式将主节点的操作记录传输到备用节点,以确保两者的数据一致性。DB2数据库的HADR特性为企业提供了一种高效、可靠的高可用性和灾难恢复方案。

码上飞扬的博客 2340

db2 数据库配置HADR+TSA添加集群节点

Db2配置HADR高可用+TSA添加集群节点 一、服务器资源 Master IP:10.78.10.1 数据库:dbclassSlave IP:10.78.10.2 数据库:dbclassVIP:10.78.10.10定额设备IP:10.78.10.9 系统版本:Redhat 6.7 数据库版本:V10.5 fp10 二、服务器必要配置 2.1、确认主机名 #hostnam...

andy07310731的博客 1421

证书学习(六)TSA 时间戳服务器原理 + 7 个免费时间戳服务器地址

证书学习(六)TSA 时间戳服务器原理 + 7 个免费时间戳服务器地址

ACGkaka的博客 5267

【笔记】linux搭建DB2数据库以及hadr

链接:https://pan.baidu.com/s/1EQnmpah9HNoC38U2y6aBwg?将压缩包上传至/home/software,解压。前提条件:源备端机器均成功安装db2数据库。在末尾添加源备端机器ip以及机器名。操作系统:centos 7.5。使用DBeaver测试连接。注:HADR启停顺序。

qq_44233566的博客 1790

DB2高可用性实例配置(db2haicu--TSA)

本文介绍了使用共享磁盘存储的 IBM® DB2® for Linux®, UNIX® 自动化软件故障恢复解决 方案的独特配置。这些配置使用了 DB2 9.7 中提供的 DB2 高可用性 (HA) 特性和 DB2 高 可用性实例配置工具 (db2haicu)。

MATLAB并行开不了的解决办法

在服务器上新安装了MATLAB 2013b,在开并行计算的时候出现了下列问题 经过在网上搜多这个问题,我感觉这个问题应该是安装的时候的验证问题或者激活不成功之类的。注意其中有一句validate the profile ‘local’ in the Cluster Profile Manager.在matlab官网上找到了设置Cluster Manager的教程,如下 parallel>

sinat_36713319的博客 5991

DB2高可用实战:HADR与TSA协同故障自动切换

高可用(HA)是保障数据库服务连续性的核心能力,其本质是通过冗余架构与自动化故障响应机制,在节点失效时实现秒级业务恢复与数据零丢失。DB2的HADR(高可用灾难恢复)提供异步/同步日志复制能力,而Tivoli System Automation(TSA)则承担状态感知、健康检查与资源编排职责——二者深度耦合构成可落地的HA闭环。技术价值在于将传统人工干预的分钟级RTO压缩至17秒内,并支持预防性切换、日志重放加速、连接池协同等工程化优化。典型应用于金融交易、制造MES、能源SCADA等对SLA要求严苛的生产

weixin_42648844的博客 316

Python + DeepSeek 完美结合:本地部署提效指南

随着生成式 AI 和深度学习技术的快速发展,如何将智能搜索工具与本地部署结合以提升效率成为了许多企业和开发者关注的重点。DeepSeek 是一款开源的智能搜索框架,结合 Python 的灵活性,能够实现高效、可靠的本地部署方案。本文将介绍如何通过 Python 和 DeepSeek 的完美结合,实现本地化部署并提升工作效率。通过将 Python 与 DeepSeek 结合,可以快速实现语义搜索的本地化部署,确保数据安全的同时提升工作效率。文件可直接作为 DeepSeek 的输入数据。

weixin_44872675的博客 1万+

DB2 HADR+TSA运维,TSA添加资源组的命令

锁定资源组就可以让资源组不再自动根据依赖的资源组进行启停,可以等依赖的资源组发生切换后确定Online后再解锁资源组,确保资源组正常运行,比如一台DB2 HADR上建了很多CDC实例和DSG复制软件实例,并把这些实例进程加到了TSA资源组,并依赖HADR PRIMARY,PRIMARY在哪台机器上,这些CDC和DSG进程就跑在哪台机器上,已保证追到最新的日志。如下cdc_tsa.sh脚本可以将CDC实例添加到TSA集群资源组里:如cdc_I2KFK38-rg资源组,I2KFK38就是CDC的实例名。

liys0811的博客 1558

从零构建:用Arduino和MCP2515模块搭建你的第一个CAN Bus网络

本文详细介绍了如何使用Arduino和MCP2515模块从零搭建CAN Bus网络,实现温湿度数据的传输与显示。涵盖硬件连接、软件配置、发送端与接收端代码实现,以及系统调试和进阶应用,帮助初学者快速掌握CAN总线通信技术。

d6e7f8的博客 838

从MFCC到GMM:手把手教你用Python实现说话人识别(附完整代码)

本文详细介绍了如何使用Python实现说话人识别系统,从MFCC特征提取到GMM模型训练,涵盖完整的技术流程和代码示例。通过梅尔频率倒谱系数(MFCC)和高斯混合模型(GMM)的结合,构建高效的说话人识别系统,适用于身份认证和智能交互场景。文章还探讨了从传统方法到深度学习的进阶话题,如i-vector和x-vector技术。

o1p2q3r的博客 204

db2高可用_DB2高可用性技术

db2高可用 勇往直前的新世界 随着软件即服务(SaaS)的出现,越来越多的企业开始依赖通过基于Web的应用程序访问其业务数据的能力。 除了SaaS和云计算的兴起,我们的业务也在全球范围内不断发展。 当您可以安排在周日晚上进行维护更新时,这现在会影响全球另一端的用户。 但是,如果计划外的停机时间是这些问题的十倍。 这些中断更多 对用户和广大公众可见,并对收入,品牌形象和 顾客满意度...

IT与开发人员的地盘 1152

TypeScript的安装与使用

TypeScript的安装与使用

qq_51589308的博客 602

在Tivoli集群域中实现DB2高可用性灾难恢复

简介和概述    在当今世界上,许多企业为来自世界各地的客户提供一周 7 天每天 24 小时的服务,他们希望自己的计算系统 100% 的可靠。DB2 for Linux, UNIX, and Windows 在数据库领域中非常先进,可以提供工业级的可靠性。在 DB2 UDB V8.2 中,DB2 引入了两个新特性 —— 灾难恢复(HADR)和自动客户机重路由功能,它们为客户提供了更多实现高可用

风之去向 1872

YOLO详解

本文参考知乎 https://zhuanlan.zhihu.com/p/25236464 1. YOLO的创新点 YOLO将物体检测作为回归问题求解。基于一个单独的end-to-end网络,完成从原始图像的输入到物体位置和类别的输出。 从网络设计上,YOLO与two steps的目标检测方法如RCNN、Fast RCNN和Faster RCNN的区别如下: YOLO训练和检测均是在一个单独网...

UnknownPlayer的博客 9999

WinClaw安全实战 02|五层纵深防护体系全解析:从原理到实操,打造零风险AI智能体

2026年AI智能体爆发式普及,OpenClaw以27.3万GitHub星标成为现象级工具,但恶意Skill投毒、提示词注入、数据外泄等安全事故频发,国家互联网应急中心、工信部等多部门接连发布风险警示。威努特基于国家关键信息基础设施安全防护经验,打造WinClaw安全版AI智能体,其核心竞争力在于**五层纵深防护体系**。本文从安全痛点切入,通过真实事故案例揭示风险本质,全景解构五层防护的架构设计与技术原理,逐层拆解身份认证、安装审查、消息拦截、执行约束、监控审计的实现逻辑,搭配20+实操演示、对比表格

专注于人工智能、软件开发、工控自动化、工厂数字化及智能化等领域,希望和大家共同进步! 509

DB2HADR 一主多备 环境搭建 centos7搭建db2 hadr 一主多备

DB2HADR 一主多备 环境搭建 centos7搭建db2 hadr 一主多备

AKA石头 912

基于Simulink的智能车辆电子稳定控制(ESC)仿真

本文完成了基于 Simulink 的智能车辆电子稳定控制(ESC),实现了:✅ 构建含轮胎非线性的车辆动力学模型✅ 设计滑模横摆稳定性控制器✅ 实现四轮制动力分配逻辑✅ 验证在双移线低附着场景下的卓越稳定性✅ 为主动安全控制系统开发提供完整范式。

xiaoheshang_123的博客 88

DB2高可用基础-主从HADR

环境说明: 服务器地址:primary 192.168.247.128 secondary 192.168.247.168 数据库版本:db2高级企业版V10.5+ 环境需求:主备两侧关闭系统防火墙,信任网络互通,scp、ssh可正常跳转 查看状态systemctl status firewalld.service 关闭防火墙systemctl stop firewalld.service 禁用防火墙systemctl disable firewalld.service 数据库实例:在primary,sec

mnasd的博客 3675

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

理解 pureScale 背后的 TSAMP 是如何工作的

理解 pureScale 背后的 TSAMP 是如何工作的

zzrisme的博客 1238

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

实战TSA与HADR

转自:http://www.db2china.net//home/space.php?uid=28836&amp;do=blog&amp;id=31085 IBM信息管理月刊第十期有很多大牛的HADR的文章,正好新接手的team用到了tsa+hadr, tsa这玩意以前没摸过,光见过,就是samp。V9.7自带安装的,历时大约3天左右,进行CentOS 6.4(64 bit)\RHEL ...

dawuafang 708

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

linux安装配置DB2数据库以及HADR

#HADR_LOCAL_* 为当前机器参数 HADR_REMOT_* 为对方的参数(主或者备) HADR_REMOTE_INST 为示例名。链接:https://pan.baidu.com/s/1EQnmpah9HNoC38U2y6aBwg?1.备库/home/db2inst1/db2_backup目录下查看。1.在/home/software/expc目录下安装数据库。2.配置/etc/services。一、环境配置(源备端均需配置)1.配置/etc/hosts。使用DBeaver测试连接。

LH90475的博客 1659

DB2数据库HADR配置及详解

HADR(High Availability Disaster Recovery)是DB2数据库提供的一种高可用性与灾难恢复功能。通过配置HADR,您可以在主数据库(Primary)和备份数据库(Standby)之间实现同步或异步的数据复制,确保主数据库出现故障时可以迅速切换到备库,从而保证业务不中断。HADR的工作原理基于DB2的日志传输机制,主数据库将事务日志传输给备份数据库,从而确保备份数据库保持与主数据库一致的状态。

码上飞扬的博客 1977

HADR配置参数详解

HADR_LOCAL_HOST:HADR本机IP地址。 HADR_LOCAL_SVC:HADR本机端口号。 HADR_REMOTE_HOST:HADR远端IP地址。 HADR_REMOTE_SVC:HADR远端端口号。 HADR_REMOTE_INST:HADR远端实例名。 HADR_SYNCMODE: SYNC:主服务器上的事务只在相关日志写入主服务器和备用服务器上的磁盘后才提交。 NEARSYNC:主服务器上的事务只在相关日志写入主服务器上的磁盘且被备用服务器上的内存接

lglovegq的博客 2835

怎样搭建DB2 HADR(高可用性灾难恢复)?

 DB2 HADR高可用性灾难恢复类似于Oracle的Data Guard。是一种通过重放日志方式实现热备份的数据库备份方式。在实现高可用性方面相对于HA来说有以下好处和缺点:好处:1. 主服务器故障时,HA需要在备份机上重启数据库Instance, 这通常需要花费几分钟时间。而HADR需要回滚未完成的事务,一般来说在正常OLTP环境下,很少有长事务,所以HADR备份机的启动速度比较快(3

db2abc的专栏 2934
上一篇: InsCode AI 创作助手怎样帮我写文章
下一篇: 边缘计算的挑战和机遇-实时性与性能优化
流浪字节π
博客等级 码龄14年 1746粉丝 69原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

流浪字节π

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值