IBM Support

[Db2] Db2 V11.1 Mod 3 Fix Pack 3 環境で db2support コマンドを実行するとデータベース破損や Db2 インスタンスの停止を引き起こすことがある

Troubleshooting


Problem

Db2 V11.1 Mod 3 Fix Pack 3 環境で db2support コマンドをある状況下で実行すると誤って重要なデータベース・ファイルが削除され、データベースの破損や Db2 インスタンスの停止を引き起こす可能性があります。

Symptom

Db2 V11.1 Mod 3 Fix Pack 3 でdb2support コマンドを実行すると、インスタンス・ホーム・ディレクトリー以下の一部またはすべてのファイルが削除されることがあります。

Environment

  • Db2 V11.1 Mod 3 Fix Pack 3 以降のすべてのプラットフォーム環境(Db2 V11.1 Mod 3 Fix Pack 3 上に作成された special build を適用した環境含む)
  • db2support コマンドの output_path あるいは - o オプションで指定する出力パスの長さがインスタンス名より十分に長くない場合
  • 2018年4月10日以前に Fix Central から、以下の製品イメージをダウンロードして適用している場合

  • IBM Data Server Client
    IBM Data Server Runtime Client
    Db2 Runtime Client Merge Modules for Windows
    Db2 Server
    Db2 Universal Fixpack

Diagnosing The Problem


回避策

出力パスには完全修飾名を使用します。
明示的に、インスタンス名の長さ + 9 文字より長い出力パス名の指定が必要です。

例えば、Db2 インスタンス名が db2inst1 (8文字) の場合、以下のように 18 文字以上のパスを指定します。

(出力パスが 26 文字 "/tmp/db2v111/work/20180101")
$ db2support /tmp/db2v111/work/20180101 -s -d SAMPLE -c -f > db2support.log 2>&1

以下のように、18 文字より短いパス名を指定するとこの問題に該当します。

(出力パスが 9文字 "/tmp/work")
$ db2support /tmp/work -s -d SAMPLE -c -f > db2support.log 2>&1
(インスタンス名より短い場合)
$ db2support /tmp -s -d SAMPLE -c -f > db2support.log 2>&1
$ db2support . -s -d SAMPLE -c -f > db2support.log 2>&1

取得手順については以下の FAQ をご参照ください。

[DB2 LUW] db2support の取得手順 (Linux/UNIX 版)
[DB2 LUW] db2support の取得手順 (Windows 版)

Resolving The Problem


2018年4月16日現在、Linux 版の Db2 V11.1 Mod 3 Fix Pack 3 のダウンロードイメージが更新され、この問題は修正されました。
Db2 Version 11.1 Mod 3 Fix Pack 3 for Linux, UNIX, and Windows

Linux / UNIX 環境

Linux / UNIX 環境では、以下の手順で修正版が適用されているかどうかを確認できます。
  1. 以下のパスへ移動します。
    cd <インスタンス・オーナーのホーム・ディレクトリー>/sqllib/bin
  2. 以下コマンドを実行します。
    strings -a db2support_internal | grep "Apr 10"
  3. 以下の行が生成されれば、修正版のイメージです。
    Apr 10 2018
4月10日以前にダウンロードしたイメージを適用しているLinux/Unix 環境の解決策は以下のとおりです。
  1. 以下 Fix Central より、最新のイメージをダウンロードし、installFixPack コマンドに -f level オプションを付与して適用します。
    Db2 Version 11.1 Mod 3 Fix Pack 3 for Linux, UNIX, and Windows
  2. プラットフォームごとに提供された hotfix パッケージをダウンロードし README の手順にしたがってフィックスを適用します。

Windows 環境:
Windows 環境で、db2support.exe のファイルサイズが以下の場合は、Windows プラットフォーム用の hotfix パッケージをダウンロードし、README の手順に従ってフィックスを適用します。

dir <path to sqllib>\bin\db2support.exe
  • Windows (32 bit): 742,024 Bytes
  • Windows (64 bit): 911,496 Bytes


Hotfix Packages:
AIX 64
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-aix64-db2support-11.1.3.3-FP003%3A331363450751590784&includeSupersedes=0

Linux zSeries
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-linux390x64-db2support-11.1.3.3-FP003%3A813405866832182400&includeSupersedes=0

Linux x86
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-linuxx64-db2support-11.1.3.3-FP003%3A944553956149331328&includeSupersedes=0

Linux 32bit
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-linuxia32-db2support-11.1.3.3-FP003%3A380658719376834240&includeSupersedes=0

Linux ppcle
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-linuxppc64le-db2support-11.1.3.3-FP003%3A474229244064740736&includeSupersedes=0

Solaris SPARC
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-sun64-db2support-11.1.3.3-FP003%3A999257411440160384&includeSupersedes=0

Windows 32bit
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-nt32-db2support-11.1.3030.239-FP003%3A782641455864144512&includeSupersedes=0

Windows 64bit
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~Information%2BManagement&product=ibm/Information+Management/IBM+Data+Server+Client+Packages&release=All&platform=All&function=fixId&fixids=DSClients-ntx64-db2support-11.1.3030.239-FP003%3A212874752157737312&includeSupersedes=0



関連情報
Running db2support on Db2 V 11.1 Mod 3 Fix Pack 3 can remove critical database files with potential result of corruption / database outage
パスポート・アドバンテージによく寄せられる質問

お問合せ先
技術的な内容に関して、サービス契約のもと IBM サービス・ラインにお問い合わせください。
IBM サービス・ライン

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"DB2 Tools - db2support","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg22015432