インストールおよびインスタンス作成時の問題に関する診断データの収集

Db2®ソフトウェアのインストールやインスタンスの作成時に発生した問題を解決するために、診断データを収集する必要があるかもしれません。 Db2 インストーラーによって DBI2047E エラー・メッセージが生成され、インストールまたはインスタンスの作成が失敗したという通知が出された場合は、db2support コマンドを使用して、診断データを自動収集できます。

始める前に

可能な限り多くのソースから診断データを収集できるようにするには、root 権限が必要です。 非 root 権限を使用して db2support コマンドを発行すると、一部のソースの診断データを収集できないことがあります。

-host パラメーターを使用してリモート・ホストについての情報を収集するには、SSH 接続が必要です。

このタスクについて

db2support -installコマンドを使用して収集した情報は、IBMサポートが分析を行うために必要とする場合があります。 診断データは、db2support コマンドを発行することにより、ディスク上のログ・ファイルと、その他診断コマンドの出力の両方から収集されます。

Db2インストールイメージに同梱されている'db2supportコマンドは、Db2製品をインストールした後に使用できるコマンドパラメータのサブセットのみをサポートしています。 Db2 製品のインストールが完了するまで、db2support コマンド・パラメーターのうち、使用できるものは -install-host パラメーターのみです。

プロシージャー

診断データを収集するには、以下のようにします。

  1. DBI2047E エラー・メッセージの情報を参考にして障害がどのホスト (複数の場合もあり) で発生したのかを特定します。
  2. 以下のいずれかの方法で「db2supportコマンドを発行する:
    • ローカル・ホストの診断データを収集するには、次のコマンドを発行します。
      db2support -install
    • リモート・ホストの診断データを収集するには、次のコマンドを発行します。
      db2support -install -host hostname
      hostname は診断データの収集対象であるリモート・ホストの名前です。 例えば、ホスト hotellnx96 の診断データを収集するには、次のコマンドを発行します。
      db2support -install -host hotellnx96
    • 複数のホストの診断データを収集するには、次のコマンドを発行します。
      db2support -install -host hostname_list
      hostname_list は診断データの収集対象であるホストのコンマ区切りリストです。 例えば、ホスト hotellnx96、hotellnx97、および hotellnx98 の診断データを収集するには、次のコマンドを発行します。
      db2support -install -host hotellnx96,hotellnx97,hotellnx98

結果

診断データは db2support.zip ファイルに収集されます。 このファイルは現行ディレクトリーが書き込み可能であれば、そこに作成されます。 書き込み可能でない場合、このファイルはホーム・ディレクトリーに入れられます。

次の例は、「db2support -installコマンドの典型的な出力である。 この場合、診断データはローカル・ホストで収集されます。


              _______   D B 2  S u p p o r t   ______


Output file is "/home/hotellnx96/db2docs1/db2support.zip"
Time and date of this collection: 2010-11-01-10.06.16.559562
Creating directory /home/hotellnx96/db2docs1/DB2SUPPORT
Starting collection on host hotellnx96
 Creating directory /home/hotellnx96/db2docs1/DB2SUPPORT/hotellnx96_IIH
Collecting resources group information
Collecting user identity information
Collecting current process information
Collecting active interprocess communications facilities information
Collecting system information
Collecting detailed data on system and hardware errors
Collecting registry contents
Collecting GPFS information
Collecting configuration, log and trace information for RSCT
Collecting information about installed Db2 products
Collecting information about state of db2 instance
Collecting "/home/hotellnx96/db2docs1/sqllib/db2dump/db2diag.log"
Collecting /etc/services
Collecting /home/hotellnx96/db2docs1/sqllib/db2nodes.cfg
Collecting directory /home/hotellnx96/db2docs1/sqllib/db2dump
Collection on host hotellnx96 completed
Compressing files in /home/hotellnx96/db2docs1/DB2SUPPORT directory
Collecting /home/hotellnx96/db2docs1/db2support.log
Collecting db2support.out


db2support is now complete.
 An archive file has been produced: "/home/hotellnx96/db2docs1/db2support.zip"

次の作業

Db2のインストールやインスタンス作成に関する問題のトラブルシューティングをIBMサポートと行っている場合、サポート担当者が分析するために'db2support.zipファイルをアップロードする方法について指示があるかもしれません。