首页  :: 新随笔  :: 管理

背景

RedHat Linux 6.5

DB2 10.5.10

安装DB2 purescale,通过db2prereqcheck检查符合安装要求,但是执行db2_install安装时却报错:

[rootserver_t]# ./db2_install 
DBI1324W  Support of the db2_install command is deprecated.

Default directory for installation of products - /opt/ibm/db2/V10.5

***********************************************************
Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no] 
yes

Specify one of the following keywords to install DB2 products.

  SERVER 
  CONSV 
  EXP 
  CLIENT 
  RTCL 
 
Enter "help" to redisplay product names.

Enter "quit" to exit.

***********************************************************
SERVER
***********************************************************
Do you want to install the DB2 pureScale Feature? [yes/no] 
yes
DB2 installation is being initialized.

 Total number of tasks to be performed: 53 
Total estimated time for all tasks to be performed: 2201 second(s) 

Task #1 start
Description: Checking license agreement acceptance 
Estimated time 1 second(s) 
Task #1 end 

省略部分...

Task #47 start
Description: Installing or updating DB2 SSH Utilities 
Estimated time 5 second(s) 
Task #47 end 

Task #48 start
Description: Compiling GPL 
Estimated time 30 second(s) 
Task #48 end 

A major error occurred while installing "DB2 Server Edition " on this
computer. The installation cannot continue. If the problem persists contact
your technical service representative.

For more information see the DB2 installation log at
"/tmp/db2_install.log.38995".

解决办法

根据提示查看/tmp/db2_install.log.38995日志

[root@cf1 server_t]# cat /tmp/db2_install.log.38995
省略部分信息...

ERROR: An error occurred while compiling IBM General Parallel File System
(GPFS) Portability Layer (GPL) on host "cf1". Return code "3". GPL compilation
log file location  "/tmp/compileGPL.log.000". The GPFS file system cannot be
mounted properly until the GPL module is successfully compiled on this host. 
For details, see the specified GPL compilation log. After fixing the problems
shown in the log file, re-run the DB2 installer. For information regarding the
GPFS GPL module compile, see DB2 Information Center.

Compiling GPL :.......Failure 
ERROR: A major error occurred while installing "DB2 Server Edition " on this
computer. The installation cannot continue. If the problem persists contact
your technical service representative.

省略部分信息...

 

参考:https://www.ibm.com/support/pages/purescale-installation-failed-compiling-ibm-general-parallel-file-system-gpfs-portability-layer-gpl,应该是kernel版本问题导致。

 

查看当前系统内核版本,操作系统kernel版本是2.6.32-754.35

[root@cf1]# uname -r
2.6.32-754.35.1.el6.x86_64

 

查看已安装的kernel,发现kernel-2.6.32-431.el6.x86_64与操作系统kernel版本不一致

[root@cf1]# rpm -qa | grep kerne
abrt-addon-kerneloops-2.0.8-44.el6.centos.x86_64
kernel-headers-2.6.32-754.35.1.el6.x86_64
dracut-kernel-004-411.el6.noarch
kernel-firmware-2.6.32-754.35.1.el6.noarch
kernel-devel-2.6.32-754.35.1.el6.x86_64
kernel-2.6.32-431.el6.x86_64
kernel-2.6.32-754.35.1.el6.x86_64
libreport-plugin-kerneloops-2.0.9-34.el6.centos.x86_64

 

卸载kernel-2.6.32-431.el6.x86_64

[root@cf1]# yum remove -y kernel-2.6.32-431.el6.x86_64

 

重新执行db2_install ,成功安装db2 purescale

[root@cf1]# ./db2_install 
DBI1324W  Support of the db2_install command is deprecated.


 
Default directory for installation of products - /opt/ibm/db2/V10.5

***********************************************************
Install into default directory (/opt/ibm/db2/V10.5) ? [yes/no] 
yes
 
 
Specify one of the following keywords to install DB2 products.

  SERVER 
  CONSV 
  EXP 
  CLIENT 
  RTCL 
 
Enter "help" to redisplay product names.

Enter "quit" to exit.

***********************************************************
SERVER
***********************************************************
Do you want to install the DB2 pureScale Feature? [yes/no] 
yes
DB2 installation is being initialized.

 Total number of tasks to be performed: 9 
Total estimated time for all tasks to be performed: 150 second(s) 

Task #1 start
Description: Installing or updating DB2 HA scripts for IBM Tivoli System Automation for Multiplatforms (Tivoli SA MP) 
Estimated time 40 second(s) 
Task #1 end 

Task #2 start
Description: Compiling GPL 
Estimated time 30 second(s) 
Task #2 end 

Task #3 start
Description: Executing control tasks 
Estimated time 20 second(s) 
Task #3 end 

Task #4 start
Description: Updating global registry 
Estimated time 20 second(s) 
Task #4 end 

Task #5 start
Description: Updating the db2ls and db2greg link 
Estimated time 1 second(s) 
Task #5 end 

Task #6 start
Description: Setting default global profile registry variables 
Estimated time 1 second(s) 
Task #6 end 

Task #7 start
Description: Initializing instance list 
Estimated time 5 second(s) 
Task #7 end 

Task #8 start
Description: Registering DB2 Update Service 
Estimated time 30 second(s) 
Task #8 end 

Task #9 start
Description: Updating global profile registry 
Estimated time 3 second(s) 
Task #9 end 

The execution completed successfully.

For more information see the DB2 installation log at
"/tmp/db2_install.log.87073".

 

参考官方解决方案:https://www.ibm.com/support/pages/purescale-installation-failed-compiling-ibm-general-parallel-file-system-gpfs-portability-layer-gpl