<IBM> 《HA网卡确认方法》

news2024/10/7 13:14:38

《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 Length

hdiskpower0_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/hdiskpower0
                Hardware Address:       
                Network:        net_diskhb_01
                Attribute:      serial
                Aliased Address?:       Disable

        Service 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.4
                Hardware Address:       
                Network:        net_ether_01
                Attribute:      public
                Aliased Address?:       Enable

        Service IP Label tredb02_ser has 2 communication interfaces.
                (Alternate Service) Communication Interface 1: tredb01_boot1
                IP address:     196.141.100.110
                Network:        net_ether_01
                Attribute:      public
                        Alias address for heartbeat:    
                (Alternate Service) Communication Interface 2: tredb01_boot2
                IP address:     196.141.10.110
                Network:        net_ether_01
                Attribute:      public
                        Alias 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.5
                Network:        net_ether_01


NODE tredb02:
        This node has 2 service IP label(s):

        Service IP Label hdiskpower0_02:
                IP address:     /dev/hdiskpower0
                Hardware Address:       
                Network:        net_diskhb_01
                Attribute:      serial
                Aliased Address?:       Disable

        Service 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.4
                Hardware Address:       
                Network:        net_ether_01
                Attribute:      public
                Aliased Address?:       Enable

        Service IP Label tredb02_ser has 2 communication interfaces.
                (Alternate Service) Communication Interface 1: tredb02_boot2
                IP address:     196.141.10.100
                Network:        net_ether_01
                Attribute:      public
                        Alias address for heartbeat:    
                (Alternate Service) Communication Interface 2: tredb02_boot1
                IP address:     196.141.100.100
                Network:        net_ether_01
                Attribute:      public
                        Alias 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.6
                Network:        net_ether_01




Breakdown of network connections:

Connections to network net_diskhb_01
        Node tredb01 is connected to network net_diskhb_01 by these interfaces: 
                hdiskpower0_01

        Node tredb02 is connected to network net_diskhb_01 by these interfaces: 
                hdiskpower0_02


Connections to network net_ether_01
        Node tredb01 is connected to network net_ether_01 by these interfaces: 
                tredb01_boot1
                tredb01_boot2
                tredb02_ser
                tredb01_per

        Node tredb02 is connected to network net_ether_01 by these interfaces: 
                tredb02_boot2
                tredb02_boot1
                tredb02_ser
                tredb02_per

5 直接查看HA配置

# smit hacmp
1、选择 --> Initialization and Standard Configuration
2、选择 --> Display HACMP Configuration
Command: OK            stdout: yes           stderr: no

Before 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) defined

NODE tredb01:
        Network net_diskhb_01
                hdiskpower0_01  /dev/hdiskpower0
        Network net_ether_01
                tredb02_ser     18.6.6.4
                tredb01_boot1   196.141.100.110
                tredb01_boot2   196.141.10.110

NODE tredb02:
        Network net_diskhb_01
                hdiskpower0_02  /dev/hdiskpower0
        Network net_ether_01
                tredb02_ser     18.6.6.4
                tredb02_boot2   196.141.10.100
                tredb02_boot1   196.141.100.100

Resource Group tredbrg
        Startup Policy   Online On Home Node Only
        Fallover Policy  Fallover To Next Priority Node In The List
        Fallback Policy  Never Fallback
        Participating Nodes      tredb01 tredb02
        Service IP Label                 tredb02_ser

Total 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
在这里插入图片描述
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/512546.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Django SQL注入漏洞分析(CVE-2022-28346)

漏洞简介 Django 在2022年发布的安全更新&#xff0c;修复了在 QuerySet 的 annotate()&#xff0c; aggregate()&#xff0c; extra() 等函数中存在的 SQL 注入漏洞。 影响版本 2.2< Django Django <2.2.28 3.2< Django Django ❤️.2.13 4.0< Django Django &…

白盒测试的静态和动态

白盒测试的静态和动态 静态白盒测试 检查设计和代码 静态测试是指测试非运行部分——检查和审查。白盒测试是指访问代码&#xff0c;能够查看和审查。静态白盒测试实在不执行的条件下有条理地仔细审查软件设计、体系结构和代码&#xff0c;从而找出软件缺陷的过程。有时也称为结…

SpringBoot中@ControllerAdvice/@RestControlAdvice+@ExceptionHandler实现全局异常捕获与处理

场景 在编写Controller接口时&#xff0c;为避免接口因为未知的异常导致返回不友好的结果和提示。 如果不进行全局异常捕获则需要对每个接口进行try-catch或其他操作。 可以对Controller进行全局的异常捕获和处理&#xff0c;一旦发生异常&#xff0c;则返回通用的500响应码与…

洁净环境GMP 要求悬浮粒子 浮游菌 高效过滤器检漏验证所需仪器

lighthouse尘埃粒子计数器 北京中邦兴业是美国lighthouse中国区核心代理服务商&#xff0c;各类型号尘埃粒子计数器均有现货可发。常见尘埃粒子计数器类型&#xff1a;便携式&#xff08;台式&#xff09;、手持式、在线式、液体式。 客户现场 lighthouse浮游菌采样器 北京中…

nginx(七十五)nginx与Vary响应头细节探讨

一 Vary ① nginx与Vary有关联的地方 nginx源码分析处理Vary响应头的逻辑 CORS和缓存 gzip_vary 1) gzip_vary on 如果设置为开启2) 服务器返回数据时会在头部带上"Vary:Accept-Encoding"的标识3) 客户端便可以知道获取到的数据是否已经被压缩,默认为关闭 prox…

ros获取typec-usb摄像头

确保usb或者typec摄像头插在主机上,我这里是typec摄像头&#xff0c;使用了一个usb-typec转接头。 windows在设备管理器中查看是否存在端口&#xff0c;如果没有&#xff0c;可以使用下面的软件进行尝试。 链接&#xff1a;https://pan.baidu.com/s/1hxp3m68W6NjY-3D7q8rGnA 提…

Linux线程同步(1)——一个例子看懂为什么需要线程同步?

对于一个单线程进程来说&#xff0c;它不需要处理线程同步的问题&#xff0c;所以线程同步是在多线程环境下需要注意的问题。线程的主要优势在于&#xff0c;资源的共享性&#xff0c;譬如通过全局变量来实现信息共享&#xff0c;不过这种便捷的共享是有代价的&#xff0c;那就…

postman处理各种请求数据

1、后台request接收postman参数 2、后台单个参数接收postman 3、后台RequestParam参数接收postman 注意事项&#xff1a;情况一&#xff1a;全部都是单个字符串的 情况二&#xff1a;有可能是一个json对象序列化成字符串过来的&#xff0c;那么需要在form-data中设置 …

区间预测 | MATLAB实现QRCNN-LSTM卷积长短期记忆神经网络分位数回归时间序列区间预测

区间预测 | MATLAB实现QRCNN-LSTM卷积长短期记忆神经网络分位数回归时间序列区间预测 目录 区间预测 | MATLAB实现QRCNN-LSTM卷积长短期记忆神经网络分位数回归时间序列区间预测效果一览基本介绍模型描述程序设计参考资料 效果一览 基本介绍 1.Matlab实现基于QRCNN-LSTM分位数回…

Elasticsearch:如何在 Elasticsearch 中存储复杂的关系数据

在传统的数据库中&#xff0c;对数据关系的描述无外乎三种&#xff1a;一对一、一对多和多对多关系。 如果有关系相关的数据&#xff0c;我们一般在建表的时候加上主外键。 建立数据链接&#xff0c;然后在查询或者统计中通过 join 恢复或者补全数据&#xff0c;最后得到我们需…

Springboot +Flowable,设置流程变量的方式(二)

一.简介 为什么需要流程变量。 举个例子&#xff0c;假设有如下一个流程&#xff0c;截图如下&#xff1a; 这是一个请假流程&#xff0c;那么谁请假、请几天、起始时间、请假理由等等&#xff0c;这些都需要说明&#xff0c;不然领导审批的依据是啥&#xff1f;那么如何传递…

软件测试面试宝典,最常见的7个高频面试题(附答案,建议收藏)

收集了2022年所有黑马学员的面试题后&#xff0c;负责就业的黑马讲师们整理出了7个高频出现的面试题&#xff0c;一起来看看。 高频问题1&#xff1a;请自我介绍下&#xff1f; 高频问题2&#xff1a;请介绍下最近做过的项目&#xff1f; 高频问题3&#xff1a;请介绍下你印象…

2023 年第三届长三角高校数学建模 A 题 快递包裹装箱优化问题

2022 年&#xff0c;中国一年的包裹已经超过 1000 亿件&#xff0c;占据了全球快递事务量的一 半以上。近几年&#xff0c;中国每年新增包裹数量相当于美国整个国家一年的包裹数量&#xff0c; 十年前中国还是物流成本最昂贵的国家&#xff0c;当前中国已经建立起全世界最强大、…

利用jQuery做一个简单的猜数字游戏

目录 利用jQuery做一个简单的猜数字游戏 代码 效果 利用jQuery做一个简单的猜数字游戏 代码 <!DOCTYPE html> <html><head><title>键盘事件-猜数字</title><style>#body_style {background-color: #c7f5db;}#myDiv {position: absolu…

单片机GD32F303RCT6 (Macos环境)开发 (十七)—— i2c1从机中断接收发送数据

i2c1从机中断接收发送数据 1、将i2c1设置为从机模式&#xff0c;与树莓派连接。树莓派发送或者读取数据&#xff0c;gd32中断触发&#xff0c;从而接收数据或者向主机发送数据。 2、关于代码的宏定义配置 Application目录的Makefile中 ENABLE_I2C_TEST yes才会编译I2C1的相关…

为啥马斯克一边反对Open AI,一边又自己另搞AI

这事我过去就说过&#xff0c;我现在再老生常谈一次。 &#xff08;1&#xff09; 我过去说过一个事&#xff1a;汽车自己智能其实还不能做到真正的智能&#xff0c;必须车路人都智能了&#xff0c;智能汽车才能真正智能。 因为车路人智能&#xff0c;这本质是数字世界和数字世…

开源之夏 2023 | 与 Databend 一同探索云数仓的魅力

活动概览 开源之夏是由中科院软件所“开源软件供应链点亮计划”发起并长期支持的一项暑期开源活动&#xff0c;旨在鼓励在校学生积极参与开源软件的开发维护&#xff0c;培养和发掘更多优秀的开发者&#xff0c;促进优秀开源软件社区的蓬勃发展&#xff0c;助力开源软件供应链…

基于AT89C52单片机的交通信号灯设计

点击链接获取Keil源码与Project Backups仿真图&#xff1a; https://download.csdn.net/download/qq_64505944/87772657 源码获取 主要内容&#xff1a; 本次设计所提出的一种基于单片机技术的简易计算器的方案&#xff0c;能更好的解决计算机计算的问题,随着数字生活的到来&…

eSIM-GSMA-1-EID规则定义

规范 SGP.02-v4.0.pdf Official Document SGP.02 - Remote Provisioning Architecture for Embedded UICC Technical Specification eid管理规则-SGP.29-1.0 EID Principles 国家编号机构发布 ICCID 的现有机制&#xff0c;以及后续的用户识别不受影响 EID 的核心目的是唯…

知识管理协同工具:助力企业综合信息规整化发展

随着信息化时代的来临&#xff0c;企业面临的信息越来越庞杂&#xff0c;如何管理和利用这些信息成为了企业发展的关键。知识管理作为一种新型的管理思想和方法&#xff0c;已经被广泛应用于企业管理中。知识管理工具是知识管理的重要手段之一&#xff0c;它可以帮助企业实现信…