「はじめの1歩」でDB2をインストールした際に下記のようなwarningになった。

# cat /tmp/db2setup.log

・・・省略・・・

WARNING: DBI20105E  An error occurred while installing the following file set:
"TSAMP". Because these files were not successfully installed, functionality
that depends on these files might not work as expected.

・・・省略・・・

DBI1514I  The DB2 High Availability (HA) scripts for the IBM Tivoli
      System Automation for Multiplatforms (SA MP) were successfully
      installed.

Explanation:

You need DB2 HA scripts to use SA MP with the DB2 HA feature.

These DB2 HA scripts are located at /usr/sbin/rsct/sapolicies/db2. The
database product installer detects whether these DB2 HA scripts need to
be installed or updated.

・・・省略・・・

WARNING: A minor error occurred while installing "DB2 Server Edition " on this
computer. Some features may not function correctly.

Post-installation instructions
-------------------------------

Required steps:
There were some errors detected during DB2 installation. To collect the information files from the system, run the "db2support -install" command with the proper options before reporting the problem to IBM service. For information regarding the usage of the db2support tool, check the DB2 Information Center.

・・・省略・・・

 

# ls -l /usr/sbin/rsct/sapolicies/db2
ls: cannot access /usr/sbin/rsct/sapolicies/db2: No such file or directory

そんなもんにゃー

こういうことらしい

Symptom
If there are multiple versions of DB2 installed on the same server and one of them is using IBM® Tivoli® System Automation for Multiplatforms Base Component (SA MP Base Component) with the DB2 HA feature, then during db2 install, the HA scripts are overwritten by the new db2 install in /usr/sbin/rsct/sapolicies/db2.

http://www-01.ibm.com/support/docview.wss?uid=swg21430931

確かに、db2setupでTSAMPだけにチェックをつけて上述のTSAMPインストールだけ失敗したDB2に上書きインストールしたらこのメッセージがインストールログに書かれたし。

勘でやるのはいくないwww

 

# db2support -install
              _______   D B 2  S u p p o r t   ______
This program generates information about a DB2 server, including information
about its configuration and system environment. The output of this program
is stored in a file named 'db2support.zip'. If possible, run this program
while the problem is occurring.

The db2support command was not invoked with root authority. As a result, some
diagnostic data might not get collected.

For the most complete output, this utility should be invoked with root
authority. Users with more limited privileges on the system can run this tool,
however, some of the data collection actions will result in reduced reporting
and reduced output.

Output file is "/home/db2inst1/db2support.zip"
Time and date of this collection: 2017-09-20-10.28.40.652534

Creating directory /home/db2inst1/DB2SUPPORT
Starting collection on host linux-252y
 Creating directory /home/db2inst1/DB2SUPPORT/linux-252y_IIH
Collecting resources group information
   The following file was not found or could not be executed during diagnostic
   data collection: /usr/bin/lssam

   The following file was not found or could not be executed during diagnostic
   data collection: /usr/bin/lsrsrc

   The following file was not found or could not be executed during diagnostic
   data collection: /usr/bin/lsrsrc

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
   The following file was not found or could not be executed during diagnostic
   data collection: /usr/bin/errpt

Collecting registry contents
Collecting GPFS information
   The following file was not found or could not be executed during diagnostic
   data collection: /usr/lpp/mmfs/bin/gpfs.snap

Collecting configuration, log and trace information for RSCT
   The following file was not found or could not be executed during diagnostic
   data collection: /usr/bin/ctsnap

Collecting information about installed DB2 products
Collecting information about state of db2 instance
Collecting information about DB2 product prerequisites
Collecting "/home/db2inst1/sqllib/db2dump/db2diag.log"
Collecting /etc/services
Collecting /tmp/db2icrt_local.log.29721
Collecting /tmp/db2icrt_local.log.52694
Collecting /tmp/db2setup.trc.ctrc
Collecting /tmp/db2setup.err
Collecting /tmp/db2setup.log
Collecting /tmp/db2setup.trc.jtrc
Collecting directory /home/db2inst1/sqllib/db2dump
Collection on host linux-252y completed
Compressing files in /home/db2inst1/DB2SUPPORT directory
Collecting /home/db2inst1/db2support.log
Collecting db2support.out

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

"14" warnings found during db2support collection

 

Tivoli SA MPのユーティリティのいくつかが無い言われても、Tivoli SA MPのインストール自体にこけてるわけだが・・・
 

ここが本家のTSAMPのインストールマニュアルみたいだが

https://www.ibm.com/support/knowledgecenter/ja/SSEPGG_11.1.0/com.ibm.db2.luw.qb.server.doc/doc/t0021237.html

 

なんかライブラリが足りないのか?

 

DB2のインストーラに頼らず、Tivoli SA MPを独立にインストールしてみるか・・・

バージョンは4.1らしいが・・・

 

IBM Tivoli System Automation for Multiplatforms バージョン 4.1単独のインストールマニュアルはここみたい

https://www.ibm.com/support/knowledgecenter/ja/SSRM2X_4.1.0/com.ibm.samp.doc_4.1/samp_IC_planning.html

https://www.ibm.com/support/knowledgecenter/ja/SSRM2X_4.1.0/com.ibm.samp.doc_4.1/samp_IC_installing.html

 

これ見ると、SA_MP_4.1_Linux.tarってのをダウンロードすればいい?

http://www-01.ibm.com/support/docview.wss?uid=swg24036931

 

IBM Passport Advantageに登録してないとダウンロードできないんご

金払わねえと登録でけへんし おいらは金はねえwww

と思ったらここに評価版あったあああ v3.2でちと古いけど

https://www.ibm.com/developerworks/downloads/tiv/tsa/?S_TACT=105AGX28

 

IBM製品評価版はここからたどったんご

http://www-03.ibm.com/software/products/ja/atoz

 

早速ダウンロードしてtar展開したら中に、SAMP-Inst-Config-Guide.pdfがあったんご

こいつか?

# ./installSAM
prereqSAM: Error: The following distribution is not supported:
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed:  Linux i386x
openSUSE 11.4 (x86_64)
VERSION = 11.4
CODENAME = Celadon
prereqSAM: Most severe error code returned:  23
prereqSAM: Unable to perform prerequisite checking.
prereqSAM: For details, refer to the 'Error:' entries in the log file:  /tmp/installSAM.2.log

無念。

 

もしかしてDB2に入ってる「installSAM」みつければよくね?

 

# find /usr/local/install/server_t -name installSAM
/usr/local/install/server_t/db2/linuxamd64/tsamp/installSAM

# cd /usr/local/install/server_t/db2/linuxamd64/tsamp/

# ./installSAM
prereqSAM: Error: The following distribution is not supported:
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed:  SLES 11.4. x86_64
prereqSAM: Unable to perform prerequisite checking.
prereqSAM: For details, refer to the 'Error:' entries in the log file:  /tmp/installSAM.3.log
linux-252y:/usr/local/install/server_t/db2/linuxamd64/tsamp # cat /tmp/installSAM.3.log
installSAM: >>> Installation on linux-252y - log appended : Wed Sep 20 12:38:00 EDT 2017
installSAM:  OPTIONS           =
installSAM:  OPT_FORCE         =
installSAM:  OPT_FORCEALL      =
installSAM:  OPT_SILENT        = 0
installSAM:  OPT_NOLICCHECK    = 0
installSAM:  OPT_NOPREREQCHECK = 0
installSAM:  OPT_NOUPGRADE     = 0
installSAM:  OPT_NONLS         = 0
installSAM:  OPT_NOAIXRSCT     = 0
prereqSAM:  OPTIONS         = '-l /tmp/installSAM.3.log'
prereqSAM:  OPT_SILENT      = 0
prereqSAM:  OPT_NOLICCHECK  = 0
prereqSAM: Detected operating system:  Linux
prereqSAM: Error: The following distribution is not supported:
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed:  SLES 11.4. x86_64
prereqSAM: Unable to perform prerequisite checking.
installSAM: <<< Installation on linux-252y - log  ended : Wed Sep 20 12:38:01 EDT 2017

 

なんで?

prereqSAMの中見たら、SUSE 11.4の場合の記述がない? 

どうやらここがまずいみたい。

# cat /etc/SuSE-release

openSUSE 11.4 (x86_64)
VERSION = 11.4
CODENAME = Celadon

試しに下記のように直してみる

# cat /etc/SuSE-release

SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 4

# ./prereqSAM
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed:  SLES 11.4 x86_64
prereqSAM: One or more required packages are not installed: libstdc++6-32bit (x86_64)
prereqSAM: For details, refer to the 'Error:' entries in the log file:  /tmp/prereqSAM.11.log

なんか状況が改善したしwww

libstdc++6-32bitは当たらない

# zypper search libstdc++
Loading repository data...
Reading installed packages...

S | Name                    | Summary                                               | Type
--+-------------------------+-------------------------------------------------------+--------
i | libstdc++-devel         | The system GNU C++ development files                  | package
  | libstdc++33             | The standard C++ shared library                       | package
i | libstdc++45             | The standard C++ shared library                       | package
i | libstdc++45-32bit       | The standard C++ shared library                       | package
i | libstdc++45-devel       | Include Files and Libraries mandatory for Development | package
  | libstdc++45-devel-32bit | Include Files and Libraries mandatory for Development | package

(2017/10/07追記 と思ったらlibstdc++6-32bitはあった。はぢかちい

ダ> zypper what-provides libstdc++6-32bit
リポジトリのデータを読み込んでいます...
インストール済みのパッケージを読み込んでいます...
S  | 名前                        | 種類             | バージョン                   | アーキテクチャ     | リポジトリ
--+-------------------+------------+--------------------+----------------+---------------------
i  | libstdc++45-32bit    | パッケージ   | 4.5.1_20101208-9.8       | x86_64                 | openSUSE-11.4-11.4-0

)

 

ちなみに、opensuse12.3でやってみたら、

【変更前】

# cat /etc/SuSE-release

openSUSE 12.3 (x86_64)
VERSION = 12.3
CODENAME = Dartmouth

# ./prereqSAM
prereqSAM: Error: The following distribution is not supported:
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed:
prereqSAM: Unable to perform prerequisite checking.
prereqSAM: For details, refer to the 'Error:' entries in the log file:  /tmp/installSAM.1.log

【変更後】

# cat /etc/SuSE-release

SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 3

# ./prereqSAM

prereqSAM: All prerequisites for the ITSAMP installation are met on operating system:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 3

だませたしwww

# ./installSAM
prereqSAM: All prerequisites for the ITSAMP installation are met on operating system:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 3
SAM is currently not installed.
installSAM: The following package is not installed yet and needs to be installed:  ./Linux/x86_64/sam-4.1.0.3-16104.x86_64.rpm

installSAM: A general License Agreement and License Information specifically for System Automation will be shown. Scroll down using the Enter key (line by line) or Space bar (page by page). At the end you will be asked to accept the terms to be allowed to install the product. Select Enter to continue.

International Program License Agreement

Part 1 - General Terms

・・・省略・・・


installSAM: The following license is installed:
Product: IBM Tivoli System Automation for Multiplatforms (Try & Buy License) 4.1.0.0
Evaluation Period: 90 days (90 days left)
Creation date: Fri Aug 16 00:00:01 2013
Expiration date: Thu Dec 31 00:00:01 2037

Subsystem         Group            PID     Status
 ctrmc            rsct             15773   active
installSAM: Warning: Must set CT_MANAGEMENT_SCOPE=2

installSAM: All packages were installed successfully.

 

成功したんですけど先生

# which lssam
/usr/bin/lssam

 

opensuse11.4の方は、libstdc++6-32bitが落とせない(正式にマージされてない)のであえて違うバージョンのライブラリ入れたくないからTSAMPのインストールがまだできないが、opensuse12.3の方は、ディストリビューション名を偽って成功www

仕方ないからopensuse12.3でTSAすっか