当前位置: 首页 > news >正文

<IBM AIX> 《AIX中HA的网卡IP确认方法》

《HA网卡确认方法》

  • 1 HA IP地址类型
  • 2HA IP地址设置原则
  • 3 HA网卡日常查看方法
    • 3.1 查看hosts文件
    • 3.2 查看网卡和IP
  • 4 通过命令方式直接查看
  • 5 直接查看HA配置
  • 4 HA网卡SMIT查看方法(暂不完整)
    • 4.1 根据hosts文件确认IP对应的别名
    • 4.2 根据serviceIP确认Persistent IP的网络
    • 4.3 根据Persistent IP的网络得到Persistent IP

1 HA IP地址类型

IP类型标识全称说明配置
boot ipboot_ip真实IP,物理IPboot一般在计算机中指的是引导。这里指的是,操作系统装入的IP地址,即物理网卡IP地址配置网卡
Persistent IPper_ip永久IPPersistent 是持续的意思。这里是指一直在一台服务器上的IP地址。配置Persistent IP
Service IPser_ip服务IP,浮动IPService是提供服务的意思。这里指应用访问的IP地址。配置Service IP

2HA IP地址设置原则

序号原则
1HA集群每台服务器配置两个物理网卡,即使用两个物理网卡IP作为boot_IP。
2HA集群每台服务器配置一个永久IP,即per_IP。依附在其中一个boot_IP。
3HA集群只有一个服务IP,即ser_ip。存在于集群的某台服务器。
4服务IP所在的服务器,同样依附在其中一个boot_IP上,且可与永久IP分布在不同的boot_ip。
5HA集群服务器的一个boot_IP网卡down掉后,依附其上的per_IP和ser_IP会切换至另一个up的网卡。
6A集群服务器的两个boot_IP网卡都down掉后,per_IP将down掉,ser_IP才会切换至备机。

3 HA网卡日常查看方法

HA 集群配置规范,hosts别名不存在异议,且不存在多个物理网卡的情况下,一般可用下列方法确认网卡。

3.1 查看hosts文件

1、查看主机名对应的IP地址。
2、查看节点名对应的IP地址。

$ cat /etc/hosts
100.1.0.1       test1_boot1  test1
100.1.0.2       test2_boot1  test2
192.168.0.1     test1_boot2
192.168.0.2     test2_boot2
10.1.0.1        test1_svc
10.1.0.2        test2_svc
10.1.0.5        test1_per
10.1.0.6        test2_per

说明:一般**_per为真实IP,**_svc为服务IP,或称serviceIP

3.2 查看网卡和IP

$ ifconfig -a
$ netstat -in

4 通过命令方式直接查看

1、通过以下方式可以查看

$ cat /etc/hosts
196.141.100.110       tredb01_boot1  tredb01
196.141.100.100       tredb02_boot1  tredb02
196.141.10.110     tredb01_boot2
196.141.10.100     tredb02_boot2
18.6.6.4         tredb02_svc
18.6.6.5         tredb01_per  db1
18.6.6.6         tredb02_per  db2
$ cllsif
Adapter              Type       Network    Net Type   Attribute  Node       IP Address       Hardware Address Interface Name   Global Name      Netmask          Alias for HB Prefix Lengthhdiskpower0_01       service    net_diskhb_01 diskhb     serial     tredb01    /dev/hdiskpower0                  hdiskpower0                                             
tredb01_boot1        boot       net_ether_01 ether      public     tredb01    196.141.100.110                   en0                         255.255.255.224             27
tredb01_boot2        boot       net_ether_01 ether      public     tredb01    196.141.10.110                    en4                         255.255.255.224             27
tredb02_ser          service    net_ether_01 ether      public     tredb01    18.6.6.4                                                      255.255.255.224             27
hdiskpower0_02       service    net_diskhb_01 diskhb     serial     tredb02    /dev/hdiskpower0                  hdiskpower0                                             
tredb02_boot2        boot       net_ether_01 ether      public     tredb02    196.141.10.100                    en4                         255.255.255.224             27
tredb02_boot1        boot       net_ether_01 ether      public     tredb02    196.141.100.100                   en0                         255.255.255.224             27
tredb02_ser          service    net_ether_01 ether      public     tredb02    18.6.6.4                                                      255.255.255.224             27
$ cllscf
Cluster Name: tredb
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There were 2 networks defined : net_diskhb_01, net_ether_01
There are 2 nodes in this cluster.NODE tredb01:This node has 2 service IP label(s):Service IP Label hdiskpower0_01:IP address:     /dev/hdiskpower0Hardware Address:       Network:        net_diskhb_01Attribute:      serialAliased Address?:       DisableService IP Label hdiskpower0_01 has no communication interfaces.Service IP Label hdiskpower0_01 has no communication interfaces for recovery.Service IP Label tredb02_ser:IP address:     18.6.6.4Hardware Address:       Network:        net_ether_01Attribute:      publicAliased Address?:       EnableService IP Label tredb02_ser has 2 communication interfaces.(Alternate Service) Communication Interface 1: tredb01_boot1IP address:     196.141.100.110Network:        net_ether_01Attribute:      publicAlias address for heartbeat:    (Alternate Service) Communication Interface 2: tredb01_boot2IP address:     196.141.10.110Network:        net_ether_01Attribute:      publicAlias address for heartbeat:    Service IP Label tredb02_ser has no communication interfaces for recovery.This node has 1 persistent IP label(s):Persistent IP Label tredb01_per:IP address:     18.6.6.5Network:        net_ether_01NODE tredb02:This node has 2 service IP label(s):Service IP Label hdiskpower0_02:IP address:     /dev/hdiskpower0Hardware Address:       Network:        net_diskhb_01Attribute:      serialAliased Address?:       DisableService IP Label hdiskpower0_02 has no communication interfaces.Service IP Label hdiskpower0_02 has no communication interfaces for recovery.Service IP Label tredb02_ser:IP address:     18.6.6.4Hardware Address:       Network:        net_ether_01Attribute:      publicAliased Address?:       EnableService IP Label tredb02_ser has 2 communication interfaces.(Alternate Service) Communication Interface 1: tredb02_boot2IP address:     196.141.10.100Network:        net_ether_01Attribute:      publicAlias address for heartbeat:    (Alternate Service) Communication Interface 2: tredb02_boot1IP address:     196.141.100.100Network:        net_ether_01Attribute:      publicAlias address for heartbeat:    Service IP Label tredb02_ser has no communication interfaces for recovery.This node has 1 persistent IP label(s):Persistent IP Label tredb02_per:IP address:     18.6.6.6Network:        net_ether_01Breakdown of network connections:Connections to network net_diskhb_01Node tredb01 is connected to network net_diskhb_01 by these interfaces: hdiskpower0_01Node tredb02 is connected to network net_diskhb_01 by these interfaces: hdiskpower0_02Connections to network net_ether_01Node tredb01 is connected to network net_ether_01 by these interfaces: tredb01_boot1tredb01_boot2tredb02_sertredb01_perNode tredb02 is connected to network net_ether_01 by these interfaces: tredb02_boot2tredb02_boot1tredb02_sertredb02_per

5 直接查看HA配置

# smit hacmp
1、选择 --> Initialization and Standard Configuration
2、选择 --> Display HACMP Configuration
Command: OK            stdout: yes           stderr: noBefore command completion, additional instructions may appear below.Cluster Name: tredb
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There are 2 node(s) and 2 network(s) definedNODE tredb01:Network net_diskhb_01hdiskpower0_01  /dev/hdiskpower0Network net_ether_01tredb02_ser     18.6.6.4tredb01_boot1   196.141.100.110tredb01_boot2   196.141.10.110NODE tredb02:Network net_diskhb_01hdiskpower0_02  /dev/hdiskpower0Network net_ether_01tredb02_ser     18.6.6.4tredb02_boot2   196.141.10.100tredb02_boot1   196.141.100.100Resource Group tredbrgStartup Policy   Online On Home Node OnlyFallover Policy  Fallover To Next Priority Node In The ListFallback Policy  Never FallbackParticipating Nodes      tredb01 tredb02Service IP Label                 tredb02_serTotal Heartbeats Missed:        42
Cluster Topology Start Time:    02/10/2023 22:07:38

4 HA网卡SMIT查看方法(暂不完整)

4.1 根据hosts文件确认IP对应的别名

$ cat /etc/hosts
100.1.22.1       test1_boot1  test1
100.1.22.2       test2_boot1  test2
192.168.22.1     test1_boot2
192.168.22.2     test2_boot2
10.1.22.1        test1_svc
10.1.22.5        test1_per  db1
10.1.22.6        test2_per  db2

4.2 根据serviceIP确认Persistent IP的网络

# smit hacmp
1、选择 --> Initialization and Standard Configuration
2、选择 --> Configure Resources to Make Highly Available
3、选择 --> Configure Service IP Lables/Addresses
4、选择 --> Add a Service IP Lable/Address
添加db1_svc,选择网络 net_ether_01
“IP Lable/Address”选择test1_svc

确认获取网络为net_ether_01
在这里插入图片描述
在这里插入图片描述

4.3 根据Persistent IP的网络得到Persistent IP

# smit hacmp
1、选择 --> Initialization and Standard Configuration
2、选择 --> Configure Resources to Make Highly Available
3、选择 --> Configure Persistent Node IP Lables/Addresses
4、选择 --> Add a Persistent Node IP Lable/Address
5、两个节点分别按规划配置。先配置节点db1
6、配置
“Network Name”net_ether_01
“Node IP Lable/Address”选择db1
“Netmask”填写255.255.255.0

确认网络为net_ether_01的Persistent IP为db1
在这里插入图片描述
在这里插入图片描述

相关文章:

<IBM AIX> 《AIX中HA的网卡IP确认方法》

《HA网卡确认方法》 1 HA IP地址类型2HA IP地址设置原则3 HA网卡日常查看方法3.1 查看hosts文件3.2 查看网卡和IP 4 通过命令方式直接查看5 直接查看HA配置4 HA网卡SMIT查看方法(暂不完整)4.1 根据hosts文件确认IP对应的别名4.2 根据serviceIP确认Persis…...

AMB300系列母线槽红外测温解决方案某锂电厂房项目案例分享

安科瑞 耿敏花 一、 行业背景 近年来,在国家政策引导与技术革新驱动的双重作用下,锂电产业保持快速增长态势,产业规模持续扩大,同时新能源产业工厂锂电池生产线对于电的依赖性很高,因而对供电设备的可靠性提出…...

go语言学习——4

文章目录 Map Map map是一种特殊的数据结构:一种元素对pair的无序集合,pair的一个元素是key,对应一个value,这种结构也称为“关联数组或字典”引用类型 map声明 var map1 map[keytype] valuetype var map1 map[string] intmap可以…...

vulnhub-RAVEN:2(MYSQL-UDF提权,手工提权/工具自动提权)

镜像下载:Raven: 2 ~ VulnHub 实验环境:kali:192.168.78.128 vulnhub镜像:192.168.78.133 1、kali查看本地ip地址,以便使用nmap扫描ip段存活主机 2、nmap扫描IP段,发现靶机的IP地址为192.168.78.133 4、访问…...

如何完整地掌握一个机器学习模型

如何完整地掌握一个机器学习模型 要全面地学习、掌握一个机器学习模型,可以遵循以下步骤: 基础理论学习:了解该模型的背后数学原理和推导过程,包括假设、损失函数、优化方法等。 学习算法实现:通过查阅论文、教程或…...

Nevron Open Vision for .NET 2022.3 Crack

Nevron Open Vision for .NET 适用于 Blazor、WPF、WinForms 和 Xamarin.Mac 的领先用户界面组件 Nevron Open Vision for .NET 是一套高级 UI 组件,可帮助您从单个代码库开发功能丰富的 Web (Blazor WebAssembly) 和桌面 (WinFor…...

【Linux】冯诺依曼体系结构以及操作系统的初步认知

🏖️作者:malloc不出对象 ⛺专栏:Linux的学习之路 👦个人简介:一名双非本科院校大二在读的科班编程菜鸟,努力编程只为赶上各位大佬的步伐🙈🙈 目录 前言一、冯诺依曼体系结构二、操…...

盖雅工场重磅发布「劳动力账户」,助力企业实现全面工时成本管理

2023年5月10日,亚太地区领先的劳动力管理云服务商盖雅工场宣布,在原有的智能排班和实时考勤系统基础之上,正式推出全新模块「劳动力账户」,通过为企业里的每一位员工建立劳动力账户,实现工时与成本的全面管控&#xff…...

数据结构与算法基础(青岛大学-王卓)(2)

第二弹火爆来袭中 这波是单链表的内容整理,废话不多说,上小龙虾呀(又到了龙虾季节了,哎,口水直流了~~) beautiful的分割线 文章目录 第二弹火爆来袭中这波是单链表的内容整理,废话不多说,上小龙虾呀(又到了…...

水产亚硝酸盐偏高解决办法,饮用水亚硝酸盐超标

使用常规的离子交换树脂处理含硫酸盐水中的硝酸盐是困难的。因为树脂几乎交换了水中的所有的硫酸盐后,才与水中的硝酸盐交换。也就是说,硫酸盐的存在会降低树脂对硝酸盐的去除能力。采用Tulsimer A-62MP除硝酸盐树脂优先交换硝酸盐,对硝酸盐的…...

linux 设备树详解

设备树 描述设备树的文件叫做 DTS(Device Tree Source),这个 DTS 文件采用树形结构描述板级设备,也就是开发板上的设备信息,比如CPU 数量、 内存基地址、IIC 接口上接了哪些设备、SPI 接口上接了哪些设备等等。 树的主干就是系统总线&#x…...

STM32 学习笔记_7 定时器中断:输出比较

输出比较 电机相关比较重要。 OC Output Compare(IC 是输入捕获,CC代指这两个单元),用于输出一定频率和占空比的PWM波形。 右下角四个就是CCR。只有通用计时器和高级计时器有,共用一个cnt计数器,高级计数…...

HTML购物车示例(勾选、删除、添加和结算功能)

以下是一个简单的HTML购物车示例,包含勾选、删除、添加和结算功能。结算功能使用PHP实现,可以获取选中商品的ID。 以下是一个简单的HTML购物车示例,包含勾选、删除、添加和结算功能。结算功能使用PHP实现,可以获取选中商品的ID以下…...

MySQL原理(十):主从架构

前言 上一篇介绍了 MySQL 的表分区和分库分表,这一篇将介绍主从架构相关的内容。 主从架构 常见的主从架构模式有四种: 一主多从架构:适用于读大于写的场景,采用多个从库来分担数据库系统的读压力。多主架构:适用于…...

一文了解Moonbeam智能合约

智能合约:区块链交易的基石 20世纪90年代,Nick Szabo首次提出智能合约的概念,这是一个建立在自动化、加密安全世界之上的数字化市场。在这种数字化市场中,交易和业务可以在无需信任的情况下进行,无需中间人。 以太坊…...

【加解密篇】利用HashCat破解RAR压缩包加密文件详细教程

【加解密篇】利用HashCat解密RAR压缩包加密文件 在取证知识里挖呀挖呀挖—【蘇小沐】 文章目录 【加解密篇】利用HashCat解密RAR压缩包加密文件1.实验环境2.RAR加密压缩包 (一)john软件1.使用CMD命令: run\rar2john.exe (二&…...

React面试题汇总1

1.React的严格模式如何使用&#xff0c;有什么用处&#xff1f; React中StrictMode严格模式_react.strictmode_前端精髓的博客-CSDN博客当我们使用 npx create-react-app my-app 创建一个项目的时候。项目中有一段如下所示的代码&#xff1a;ReactDOM.render( <React.Stric…...

Golang每日一练(leetDay0066) 有效电话号码、转置文件

目录 193. 有效电话号码 Valid Phone Numbers &#x1f31f; 194. 转置文件 Transpose File &#x1f31f;&#x1f31f; &#x1f31f; 每日一练刷题专栏 &#x1f31f; Golang每日一练 专栏 Python每日一练 专栏 C/C每日一练 专栏 Java每日一练 专栏 193. 有效电话号…...

前端 之 FormData对象浅谈

一、简介 ​ 通常情况下&#xff0c;前端在使用post请求提交数据的时候&#xff0c;请求都是采用application/json 或 application/x-www-form-urlencoded编码类型&#xff0c;分别是借助JSON字符串来传递参数或者keyvalue格式字符串&#xff08;多参数通过&进行连接&…...

【分布式锁】Redisson分布式锁的使用(推荐使用)

文章目录 前言一、常见分布式锁方案对比二、分布式锁需满足四个条件三、什么是Redisson?官网和官方文档Redisson使用 四、Redisson 分布式重入锁用法Redisson 支持单点模式、主从模式、哨兵模式、集群模式自己先思考下,如果要手写一个分布式锁组件&#xff0c;怎么做&#xff…...

《C++ 模板》

目录 函数模板 类模板 非类型模板参数 模板特化 函数模板特化 类模板的特化 模板&#xff0c;就像一个模具&#xff0c;里面可以将不同类型的材料做成一个形状&#xff0c;其分为函数模板和类模板。 函数模板 函数模板可以简化函数重载的代码。格式&#xff1a;templa…...

C++.OpenGL (20/64)混合(Blending)

混合(Blending) 透明效果核心原理 #mermaid-svg-SWG0UzVfJms7Sm3e {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-SWG0UzVfJms7Sm3e .error-icon{fill:#552222;}#mermaid-svg-SWG0UzVfJms7Sm3e .error-text{fill…...

Canal环境搭建并实现和ES数据同步

作者&#xff1a;田超凡 日期&#xff1a;2025年6月7日 Canal安装&#xff0c;启动端口11111、8082&#xff1a; 安装canal-deployer服务端&#xff1a; https://github.com/alibaba/canal/releases/1.1.7/canal.deployer-1.1.7.tar.gz cd /opt/homebrew/etc mkdir canal…...

五、jmeter脚本参数化

目录 1、脚本参数化 1.1 用户定义的变量 1.1.1 添加及引用方式 1.1.2 测试得出用户定义变量的特点 1.2 用户参数 1.2.1 概念 1.2.2 位置不同效果不同 1.2.3、用户参数的勾选框 - 每次迭代更新一次 总结用户定义的变量、用户参数 1.3 csv数据文件参数化 1、脚本参数化 …...

C# WPF 左右布局实现学习笔记(1)

开发流程视频&#xff1a; https://www.youtube.com/watch?vCkHyDYeImjY&ab_channelC%23DesignPro Git源码&#xff1a; GitHub - CSharpDesignPro/Page-Navigation-using-MVVM: WPF - Page Navigation using MVVM 1. 新建工程 新建WPF应用&#xff08;.NET Framework) 2.…...

【QT控件】显示类控件

目录 一、Label 二、LCD Number 三、ProgressBar 四、Calendar Widget QT专栏&#xff1a;QT_uyeonashi的博客-CSDN博客 一、Label QLabel 可以用来显示文本和图片. 核心属性如下 代码示例: 显示不同格式的文本 1) 在界面上创建三个 QLabel 尺寸放大一些. objectName 分别…...

解决MybatisPlus使用Druid1.2.11连接池查询PG数据库报Merge sql error的一种办法

目录 前言 一、问题重现 1、环境说明 2、重现步骤 3、错误信息 二、关于LATERAL 1、Lateral作用场景 2、在四至场景中使用 三、问题解决之道 1、源码追踪 2、关闭sql合并 3、改写处理SQL 四、总结 前言 在博客&#xff1a;【写在创作纪念日】基于SpringBoot和PostG…...

Go 语言中的内置运算符

1. 算术运算符 注意&#xff1a; &#xff08;自增&#xff09;和--&#xff08;自减&#xff09;在 Go 语言中是单独的语句&#xff0c;并不是运算符。 package mainimport "fmt"func main() {fmt.Println("103", 103) // 13fmt.Println("10-3…...

民锋视角下的资金流效率与账户行为建模

民锋视角下的资金流效率与账户行为建模 在当前复杂多变的金融环境中&#xff0c;资金流效率已成为衡量一家金融服务机构专业能力的重要指标。民锋在账户管理与资金调配的实战经验中&#xff0c;逐步建立起一套以资金流路径为核心的行为建模方法&#xff0c;用以评估客户行为、交…...

SAP学习笔记 - 开发24 - 前端Fiori开发 Filtering(过滤器),Sorting and Grouping(排序和分组)

上一章讲了SAP Fiori开发的表达式绑定&#xff0c;自定义格式化等内容。 SAP学习笔记 - 开发23 - 前端Fiori开发 Expression Binding&#xff08;表达式绑定&#xff09;&#xff0c;Custom Formatters&#xff08;自定义格式化&#xff09;-CSDN博客 本章继续讲SAP Fiori开发…...