4.4 ipconfユーティリティの使用

ipconfユーティリティは、Oracle Exadataサーバーの次のパラメータを設定および変更するために使用します。

また、Oracle Exadata Database Machineの初期構成時に、データベース・サーバーも構成します。

  • IPアドレス
  • ホスト名
  • NTPサーバー
  • タイムゾーン
  • DNSネーム・サーバー
  • RDMAネットワーク・ファブリックのアドレス

ipconfユーティリティでは、変更されたファイルのバックアップ・コピーが作成されます。ユーティリティを再実行すると、既存のバックアップ・ファイルは上書きされます。ログ・ファイルには、実行したすべてのipconf操作の完全な履歴が記録されます。

表4-1 ipconfのオプション

オプション 説明

オプションなし

ユーティリティはメイン編集モードで起動します。

-check-consistency [-pkey-file pkey.conf]

cell.confを調べて、pkeyが現在のホスト上で構成されているかどうかを確認します。pkeyが構成されている場合、このコマンドはサブ・インタフェースとifcfg構成ファイルを逆にチェックし、それらをpkey.confと比較し、検出された不整合を報告します。

-ignoremismatch

格納されているセルの構成と実行構成との間に不一致がある場合は、ユーティリティをメイン編集モードで起動します。

-ilom print

ILOMの基本設定を出力します。

-ilom set

ILOMの基本設定を設定します。

-pkey-add $PKEY.CONF -pkey-apply [-force]

pkey構成を未構成のシステムに適用するか、現在のpkey構成済ホストに(現在のpkey設定は変更せずに)新しいpkey構成を追加します。pkeyファイルに指定されたインタフェースがすでに存在する場合は、コマンドはエラーで終了します。

-forceオプションを含めると、すでに構成されているインタフェースの現在のpkey構成が削除され、新しいpkey.confファイルに基づいて構成が適用されます。

-pkey-delete $PKEY.CONF -pkey-apply

現在のpkey構成済ホスト上の一部のpkeyを削除する場合、$PKEY.CONFは、pkeyおよび物理デバイスのみをエントリに含める簡単なpkeyファイルです。システムがpkeyでまだ構成されていない場合、コマンドはエラーで終了します。

-pkey-getruntime

現在のシステムのInfiniBandパーティション化pkey構成を取得します。

-pkey-matchruntime [-pkey-file pkey.conf]

ランタイムpkey構成を取得し、-pkey-fileオプションで指定されたファイルと一致させます。ファイルが指定されていない場合は、/opt/oracle.cellos/pkey.confがデフォルトとして使用されます。

-preconf preconf.scv [-pkey-file pkey.conf] {-generate | -generateall | -verify}

pkey.confファイルとpreconf.scvを検証し、cell.confを生成して、最後にpkey.confcell.confを相互検証します。

-semantic

DNS構成およびNTP構成のみをチェックします。

-semantic-min

少なくとも1つのNTPサーバーおよび1つのDNSサーバーへのアクセスをチェックします。

-update [-dns dns_ip_list] [-ntp ntp_ip_list] [-ilom-dns ilom_dns_list] [-ilom-ntp ilom_ntp_list] [-force | -dry]

LinuxおよびILOMのDNSサーバーとNTPサーバーを更新します。DNSサーバーおよびNTPサーバーについては、カンマで区切ったIPアドレスのリストを指定します。

-ilom-dnsでは、最大3つのDNSサーバーが許可されます。-ilom-ntpでは、最大2つのNTPサーバーが許可されます。

新しいNTPサーバーから取得されたタイムスタンプと、システムに認識されている現在の時間との差が1秒を超える場合(時間ステップ)、コマンドはエラーになり、NTP設定は更新されません。コマンドラインの-forceフラグは、このチェックをオーバーライドします。

-dryオプションは、コマンドがすべての設定をチェックする必要があるが、適用する必要がないことを示します。

-verbose

-verboseオプションを使用すると、すべての詳細情報が表示されます。-verboseを使用しないと、エラーのみが表示されます。

-verify

格納されているセルの構成と実行構成との整合性を検証します。正常な場合、エラーは返されません。

-verifyでは、-pkey-file-semantic-semantic-minのオプションを使用できます

次の例は、Sun ILOMインタフェース設定時のipconfユーティリティによる表示を示しています。

例4-1 ipconfユーティリティを使用したSun ILOMインタフェースの設定

# ipconf
Logging started to /var/log/cellos/ipconf.log
Interface ib0 is Linked. hca: mxx4_0
Interface ib1 is Linked. mxx4_0
Interface eth0 is Linked. driver/mac: igb/00:00:00:01:cd:01
Interface eth1 is ... Unlinked. driver/mac: igb/00:00:00:01:cd:02
Interface eth2 is ... Unlinked. driver/mac: igb/00:00:00:01:cd:03
Interface eth3 is ... Unlinked. driver/mac: igb/00:00:00:01:cd:04
 
Network interfaces
Name  State      IP address      Netmask         Gateway         Hostname       
ib0   Linked                                                                    
ib1   Linked                                                                    
eth0  Linked                                                                    
eth1  Unlinked                                                                  
eth2  Unlinked                                                                  
eth3  Unlinked                                                                  
Warning. Some network interface(s) are disconnected. Check cables and switches
         and retry
Do you want to retry (y/n) [y]: n
 
The current nameserver(s): 192.0.2.10 192.0.2.12 192.0.2.13
Do you want to change it (y/n) [n]: 
The current timezone: America/Los_Angeles
Do you want to change it (y/n) [n]: 
The current NTP server(s): 192.0.2.06 192.0.2.12 1192.0.2.13
Do you want to change it (y/n) [n]: 
 
Network interfaces
Name  State   IP address      Netmask       Gateway        Hostname       
eth0  Linked  192.0.2.151  255.255.252.0 192.0.2.15  Managment myg.example.com
eth1  Unlinked
eth2  Unlinked
eth3  Unlinked
bond0 ib0,ib1    192.168.13.101  255.255.252.0        Private myg.example.com 

Select interface name to configure or press Enter to continue: 
 
Select canonical hostname from the list below
1: myg.example.com
2: myg-private.example.com
Canonical fully qualified domain name [1]: 
 
Select default gateway interface from the list below
1: eth01
Default gateway interface [1]:

Canonical hostname: myg.example.com
Nameservers: 192.0.2.10 192.0.2.12 192.0.2.13
Timezone: America/Los_Angeles
NTP servers: 192.0.2.06 192.0.2.12 192.0.2.13
Network interfaces
Name  State  IP address      Netmask        Gateway        Hostname       
eth0  Linked 192.0.2.151 255.255.252.0  192.0.2.15  myg.example.com
eth1  Unlinked
eth2  Unlinked
eth3  Unlinked
bond0 ib0,ib1  192.168.13.101 255.255.252.0 Private  myg-priv.example.com
Is this correct (y/n) [y]: 
 
Do you want to configure basic ILOM settings (y/n) [y]: y
Loading configuration settings from ILOM ...
ILOM Fully qualified hostname [myg_ilom.example.com]:
ILOM IP discovery (static/dhcp) [static]:
ILOM IP address [192.0.2.201]: 
ILOM Netmask [255.255.252.0]: 
ILOM Gateway or none [192.0.2.15]: 
ILOM Nameserver or none: [192.0.2.10]:
ILOM Use NTP Servers (enabled/disabled) [enabled]: 
ILOM First NTP server. Fully qualified hostname or ip address or none [192.0.2.06]:
ILOM Second NTP server. Fully qualified hostname or ip address or none [none]:

Basic ILOM configuration settings:
Hostname             : myg.example.com
IP Discovery         : static
IP Address           : 192.0.2.10
Netmask              : 255.255.252.0
Gateway              : 192.0.2.15
DNS servers          : 192.0.2.10
Use NTP servers      : enabled
First NTP server     : 192.0.2.06
Second NTP server    : none
Timezone (read-only) : America/Los Angeles
 
Is this correct (y/n) [y]: