重庆思庄Oracle、Redhat认证学习论坛

标题: ORACLE 19C RAC 修改公共网卡为其他网卡 [打印本页]

作者: 郑全    时间: 2021-1-14 20:06
标题: ORACLE 19C 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、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2