DB2基础版本安装
3.5 核心文件安装
注:需要在所有节点上都安装DB2 pureScale
3.5.1 使用 db2_install安装
3.5.1.1 AIX服务器DB2软件安装
用root用户登录到AIX服务器,具体安装步骤如下: ? 解压DB2数据库产品映像文件 #cd /tmp/db2v105 #gzip -cd DB2_Svr_10.5.0.4_AIX.tar.gz | tar -xvf - 解压后,DB2数据库安装介质目录位于/tmp/db2v105/server。 ? db2prereqcheck命令检查软硬件是否符合安装需求 # cd /tmp/db2v105/server # ./db2prereqcheck -v 10.5.0.0 ? 安装DB2数据库产品 执行db2数据库安装命令(需root用户运行): # ./db2_install 系统回显如下信息,DB2开始安装,在安装过程中,会提示你选择安装目录(输入yes),需要安装的产品(输入server),是否安装pureScale 特性(输入yes)
Requirement not matched for DB2 database \Summary of prerequisites that are not met on the current system: DBT3589W The db2prereqcheck utility failed to validate that the IOCP is enabled on the following host machine: \ 26
DBI1324W Support of the db2_install command is deprecated. For more information, see the DB2 Information Center. 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 CLIENT RTCL Enter \Enter \*********************************************************** server *********************************************************** Do you want to install the DB2 pureScale Feature? [yes/no] yes Requirement not matched for DB2 database \Summary of prerequisites that are not met on the current system: DBT3589W The db2prereqcheck utility failed to validate that the IOCP is enabled on the following host machine: \ Requirement not matched for DB2 database \Summary of prerequisites that are not met on the current system: DBT3589W The db2prereqcheck utility failed to validate that the IOCP is enabled on the following host machine: \DB2 installation is being initialized. 27
Total number of tasks to be performed: 51 Total estimated time for all tasks to be performed: 3685 second(s) Task #1 start Description: Enabling IOCP Estimated time 1 second(s) iocp0 Task #1 end …… …… Task #55 start Description: Updating global profile registry Estimated time 3 second(s) Task #55 end The execution completed successfully. For more information see the DB2 installation log at \当出现【The execution completed successfully.】提示信息时,确认DB2已成功完成安装。
3.5.1.2 linux服务器DB2软件安装
用root用户登录到linux服务器,具体安装步骤如下: ? 解压DB2数据库产品映像文件 # cd /tmp/db2v105 # tar -zxvf DB2_Svr_10.5.0.4_Linux_x86-64.tar 解压后,DB2数据库安装介质目录位于/tmp/db2v105/ese。 ? db2prereqcheck命令检查软硬件是否符合安装需求 # cd /tmp/db2v105/server # ./db2prereqcheck -v 10.5.0.0 ? 安装DB2数据库产品 执行db2数据库安装命令(需root用户运行):
# ./db2_install 系统回显如下信息,DB2开始安装,在安装过程中,会提示你选择安装目录(输入yes),需要安装的产品(输入server),是否安装pureScale 特性(输入yes)
28
DBI1324W Support of the db2_install command is deprecated. For more information, see the DB2 Information Center. 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 \Enter \*********************************************************** 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: 51 Total estimated time for all tasks to be performed: 3685 second(s) Task #1 start Description: Enabling IOCP Estimated time 1 second(s) iocp0 Task #1 end …… …… Task #55 start Description: Updating global profile registry Estimated time 3 second(s) 29
Task #55 end The execution completed successfully. For more information see the DB2 installation log at \当出现【The execution completed successfully.】提示信息时,确认DB2已成功完成安装。
3.5.2 GPFS 文件系统配置与挂载
3.5.2.1 AIX GPFS文件系统配置与挂载
安装完DB2之后,root在主CF节点(cnwbzp0222)上执行:
#/opt/IBM/db2/V10.5/instance/db2cluster_prepare -instance_shared_dev /dev/hdisk1 系统回显:
-bash-4.2# /opt/IBM/db2/V10.5/instance/db2cluster_prepare -instance_shared_dev /dev/hdisk1 DBI1446I The db2cluster_prepare command is running. DB2 installation is being initialized. Total number of tasks to be performed: 1 Total estimated time for all tasks to be performed: 60 second(s) Task #1 start Description: Creating IBM General Parallel File System (GPFS) Cluster and Filesystem Estimated time 60 second(s) Task #1 end The execution completed successfully. For more information see the DB2 installation log at \DBI1070I Program db2cluster_prepare completed successfully.
查看文件系统,多了个带时间戳的/db2sd_20150115181124.
# lsfs 系统回显:
-bash-4.2# lsfs Name Nodename Mount Pt VFS Size Options Auto Accounting 30