NVMe構成ファイルの作成およびNVMe-oFデバイスの使用

NVMe over Fabricsは、構成ファイルnvmip.oraを使用して、NVMe-oFの構成およびオプションを決定します。

  1. NVMe Oracle Disk Manager (ODM)ライブラリを作成します。
    $ cd $ORACLE_HOME/rdbms/lib
    $ make -f ins_rdbms.mk nvm_on
  2. 次の属性を使用して、各Oracle Grid Infrastructureクラスタ・ノードの/etc/oracle/nvmディレクトリにnvmip.oraファイルを作成します。

    • initiator

      現在のOracle ClusterwareノードのイニシエータIPアドレス。

      ノート:

      • すべてのイニシエータIPアドレスは、すべてのNVMe-oFストレージ・ターゲットIPアドレスと通信できる必要があります。
      • 構成ファイルのイニシエータIPアドレスは、現在のノードのIPアドレスです。
    • target

      NVMe-oFストレージ・デバイスのストレージ・ターゲットIPアドレスおよびポート番号。すべてのOracle Grid Infrastructureノードに同じターゲットIPアドレスを使用します。

次の例は、2つのストレージ・サーバーからNVMe-oFデバイスを使用し、2つのデータベース・ホストを持つデータベースを作成する方法を示しています。データベース・ホスト1のIPアドレスは192.168.1.1、データベース・ホスト2のIPアドレスは192.168.1.2です。ストレージ・ノード1のIPアドレスは192.168.1.11、ストレージ・ノード2のIPアドレスは192.168.1.12です。

例9-1 ノード1でのNVMe over Fabricsの構成

次の例は、ノード1の1つのイニシエータIPアドレスと2つのNVMe-oFストレージ・ターゲットIPアドレスを示しています。

# IP addresses following [initiator] are initiator IP addresses of the Oracle Grid Infrastructure server. 
# Failover among these IP addresses is handled by Oracle Grid Infrastructure and Oracle Database.
# IP addresses following [target] are target IP address:port numbers.
# Mention all storage targets here to which Oracle Grid Infrastructure and Oracle Database need to connect.
# A set of one or more targets create a "failure domain" when all the
# disks/devices serviced by those targets can be accessed by each of the targets.
# Oracle DB will automatically batch the targets running in one failure domain.
# Ensuring failover across targets from a single failure domain is responsibility of the storage server.

[initiator]
192.168.1.1
[target]
192.168.1.11:4091
192.168.1.12:4091

例9-2 ノード2でのNVMe over Fabricsの構成

次の例は、ノード2の1つのイニシエータIPアドレスと2つのNVMe-oFストレージ・ターゲットIPアドレスを示しています。

# IP addresses following [initiator] are initiator IP addresses of the Oracle Grid Infrastructure server. 
# Failover among these IP addresses is handled by Oracle Grid Infrastructure and Oracle Database.
# IP addresses following [target] are target IP address:port numbers.
# Mention all storage targets here to which Oracle Grid Infrastructure and Oracle Database need to connect.
# A set of one or more targets create a "failure domain" when all the
# disks/devices serviced by those targets can be accessed by each of the targets.
# Oracle DB will automatically batch the targets running in one failure domain.
# Ensuring failover across targets from a single failure domain is responsibility of the storage server.

[initiator]
192.168.1.2
[target]
192.168.1.11:4091
192.168.1.12:4091

Oracle ASMでNVMe-oFストレージ・デバイスを検出して使用するには、asm_diskstring='n:/*/*'を使用します。NVMe-oFストレージ・デバイスの名前は、NQNとIPアドレスの組合せです。たとえば、前述の構成では、kfod disks=allまたはasm_disksting='n:/*/*'を使用してNVMe-oFストレージ・デバイスを検出すると、次の出力が表示されます。

---------------------------------------------------------------------------------------
 Disk Size     Path                                                       User    Group
=======================================================================================
   1: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/1
   2: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/2
   3: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/3
   4: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/4
   5: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/1
   6: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/2
   7: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/3
   8: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/4