テスト:Oracle 19 c RACプライベートネットワークの追加

5207 ワード

最近、ある12.2バージョンのRAC環境にハートビートネットワークを追加する必要があるお客様がいます.ついでに、以前のハートビートネットワークをasm専用に変更することを考えています.私は現在19 cのRACのテスト環境(19 cは12 cの最終安定バージョン)しかなく、直接テストしてプロセスのメモを検証しています.
  • 1.テスト環境の概要
  • 2.ハートビートネットワーク
  • を追加
  • 3.asmネットワーク
  • の変更
  • 4.hasクラスタ
  • を再起動
  • 5.心拍数をチェック
  • 1.試験環境の概要


    まず私のテスト環境はこうです.
    [grid@db195 ~]$ oifcfg getif
    enp0s3  192.168.1.0  global  public
    enp0s8  10.10.1.0  global  cluster_interconnect,asm

    2.ハートビートネットワークの追加


    ホストレベルで新しいNIC enp 0 s 9を追加し、対応するIPアドレスを構成した後、enp 0 s 9を心拍ネットワークに追加することができます.
    [grid@db195 ~]$ oifcfg setif -global enp0s9/10.10.1.0:cluster_interconnect
    [grid@db195 ~]$ oifcfg getif
    enp0s3  192.168.1.0  global  public
    enp0s8  10.10.1.0  global  cluster_interconnect,asm
    enp0s9  10.10.1.0  global  cluster_interconnect

    3.asmネットワークの修正


    以前の設定をasm専用にする必要があることを確認したら、再変更できます.
    [grid@db195 ~]$ oifcfg setif -global enp0s8/10.10.1.0:asm
    [grid@db195 ~]$ oifcfg getif
    enp0s3  192.168.1.0  global  public
    enp0s8  10.10.1.0  global  asm
    enp0s9  10.10.1.0  global  cluster_interconnect

    RACの他のノードの構成が同じであることを確認します.

    4.hasクラスタの再起動


    ifconfig-aを使用して、新規NIC enp 0 s 9の情報がHAIPに引き継がれていないかを確認します(169セグメントに対応するアドレス情報はありません)
    enp0s9: flags=4163  mtu 1500
            inet 10.10.1.196  netmask 255.255.255.0  broadcast 10.10.1.255
            inet6 fe80::2549:d14d:7dfd:61c4  prefixlen 64  scopeid 0x20
            ether 08:00:27:59:1a:a6  txqueuelen 1000  (Ethernet)
            RX packets 66  bytes 19094 (18.6 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 16  bytes 1170 (1.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    crsctl stop hasを使用して各ノードクラスタを閉じる必要があります.
    [root@db193 ~]# /u01/app/19.3.0/grid/bin/crsctl stop has
    [root@db195 ~]# /u01/app/19.3.0/grid/bin/crsctl stop has
    
    [root@db193 ~]# /u01/app/19.3.0/grid/bin/crsctl start has
    [root@db195 ~]# /u01/app/19.3.0/grid/bin/crsctl start has

    5.心拍状態の検査


    再起動後、ifconfig-aを再度観察すると、新しいNIC enp 0 s 9には対応するHAIPアドレスがありますが、enp 0 s 8はありません.enp 0 s 8はasmを使用しているだけです.
    enp0s8: flags=4163  mtu 1500
            inet 10.10.1.195  netmask 255.255.255.0  broadcast 10.10.1.255
            inet6 fe80::5a1e:e7de:fe1a:a286  prefixlen 64  scopeid 0x20
            ether 08:00:27:1d:85:d4  txqueuelen 1000  (Ethernet)
            RX packets 38565  bytes 27624748 (26.3 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 69723  bytes 72018893 (68.6 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    enp0s9: flags=4163  mtu 1500
            inet 10.10.1.196  netmask 255.255.255.0  broadcast 10.10.1.255
            inet6 fe80::2549:d14d:7dfd:61c4  prefixlen 64  scopeid 0x20
            ether 08:00:27:59:1a:a6  txqueuelen 1000  (Ethernet)
            RX packets 12510  bytes 7500503 (7.1 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 14723  bytes 17562072 (16.7 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    enp0s9:1: flags=4163  mtu 1500
            inet 169.254.3.55  netmask 255.255.224.0  broadcast 169.254.31.255
            ether 08:00:27:59:1a:a6  txqueuelen 1000  (Ethernet)

    以前のenp 0 s 8 NICがasm専用、すなわちasm,cluster_に変更されていない場合Interconnectの場合、enp 0 s 8 NICはHAIPアドレスを保持します.
    --  enp0s8 asm,cluster_interconnect
    [grid@db195 ~]$ oifcfg setif -global enp0s8/10.10.1.0:asm,cluster_interconnect
    
    --     ,ifconfig -a    enp0s8     HAIP  :
    enp0s8: flags=4163  mtu 1500
            inet 10.10.1.195  netmask 255.255.255.0  broadcast 10.10.1.255
            inet6 fe80::5a1e:e7de:fe1a:a286  prefixlen 64  scopeid 0x20
            ether 08:00:27:1d:85:d4  txqueuelen 1000  (Ethernet)
            RX packets 41817  bytes 28559675 (27.2 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 89166  bytes 88323795 (84.2 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    enp0s8:1: flags=4163  mtu 1500
            inet 169.254.7.148  netmask 255.255.240.0  broadcast 169.254.15.255
            ether 08:00:27:1d:85:d4  txqueuelen 1000  (Ethernet)
    
    enp0s9: flags=4163  mtu 1500
            inet 10.10.1.196  netmask 255.255.255.0  broadcast 10.10.1.255
            inet6 fe80::2549:d14d:7dfd:61c4  prefixlen 64  scopeid 0x20
            ether 08:00:27:59:1a:a6  txqueuelen 1000  (Ethernet)
            RX packets 103509  bytes 77082525 (73.5 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 237436  bytes 290562629 (277.1 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    enp0s9:1: flags=4163  mtu 1500
            inet 169.254.22.254  netmask 255.255.240.0  broadcast 169.254.31.255
            ether 08:00:27:59:1a:a6  txqueuelen 1000  (Ethernet)

    注意:新しいenp 0 s 9心拍ネットワークカードが以前の心拍ネットワークセグメントと異なる場合、例えば10.10.2.195、oiffg setif enp 0 s 9/10.10.10.2.0:cluster_にも注意してください.interconnect、セグメントは新しいNICのネットワークと一致し、互いに一致します.このことをまとめると、まず物理的に心拍数カードと心拍数線を増加させることを確認し、データベースレベルでoiffgを直接使用すると、hasクラスタを再起動して有効にする必要があります.