龙空技术网

ORACLE 19C RAC 修改公共网卡为其他网卡

思庄认证培训 158

前言:

当前小伙伴们对“oracle rac网卡”都比较看重,你们都想要学习一些“oracle rac网卡”的相关知识。那么小编在网络上收集了一些对于“oracle rac网卡””的相关文章,希望我们能喜欢,朋友们一起来学习一下吧!

修改ORACLE 19C RAC公共网卡为其他网卡

比如由 enp49s0f0 修改为 ens4f0

1.集群在所有节点正常

crsctl stat res -t

2.删除以前的网卡,增加新的网卡

% $CRS_HOME/bin/oifcfg/oifcfg delif -global <if_name>[/<subnet>]

% $CRS_HOME/bin/oifcfg/oifcfg setif -global <if_name>/<subnet>:public

For example:

% $CRS_HOME/bin/oifcfg delif -global enp49s0f0/192.168.2.0

% $CRS_HOME/bin/oifcfg setif -global ens4f0/192.168.2.0:public

确认修改:

[grid@easdb2 ~]$ oifcfg getif

ens4f1 10.0.0.0 global cluster_interconnect,asm

ens4f0 192.168.2.0 global public

3.在操作系统上修改网卡IP

停用以前网卡

启用新网卡IP

nmcli con

[root@easdb2 ~]# nmcli con

NAME UUID TYPE DEVICE

ens4f0 11d1d159-e438-bc38-bba2-411145f244b4 ethernet ens4f0

ens4f1 f540b644-ada1-a879-c4aa-2566c44f1e74 ethernet ens4f1

enp0s20f0u1u6 f3520517-3b4c-450c-b520-37c22b7e07ff ethernet --

enp49s0f0 9fb76c61-ffba-4bf8-8b64-e81e9843b389 ethernet --

enp49s0f1 df4dfab5-33b8-492d-820a-01c286f27114 ethernet --

enp49s0f2 b828e9b6-7866-4151-a015-f1313fde047e ethernet --

enp49s0f3 32d4d54a-6052-4127-8ebe-00f01989bf02 ethernet --

4.修改对应VIP

先确定一下当前VIP 在哪个网卡

srvctl config nodeapps -a

修改新VIP到新的网卡

srvctl modify nodeapps -n <nodename>1 -A <nodename>1-nvip/255.255.255.0/<if_name>

for example:

su - root

/u01/app/19.3.0/grid/bin/srvctl modify nodeapps -n easdb1 -A 192.168.2.36/255.255.255.0/ens4f0

/u01/app/19.3.0/grid/bin/srvctl modify nodeapps -n easdb2 -A 192.168.2.37/255.255.255.0/ens4f0

确认修改:

srvctl config nodeapps -a

[grid@easdb1 ~]$ srvctl config nodeapps -a

Network 1 exists

Subnet IPv4: 192.168.2.0/255.255.255.0/ens4f0, static

Subnet IPv6:

Ping Targets:

Network is enabled

Network is individually enabled on nodes:

Network is individually disabled on nodes:

VIP exists: network number 1, hosting node easdb1

VIP Name: easdb1-vip

VIP IPv4 Address: 192.168.2.26

VIP IPv6 Address:

VIP is enabled.

VIP is individually enabled on nodes:

VIP is individually disabled on nodes:

VIP exists: network number 1, hosting node easdb2

VIP Name: easdb2-vip

VIP IPv4 Address: 192.168.2.27

VIP IPv6 Address:

VIP is enabled.

VIP is individually enabled on nodes:

VIP is individually disabled on nodes:

标签: #oracle rac网卡 #oracle19c rac搭建