老爷子88 发表于 2018-6-3 12:10:10

Vmware Workstation + Suse Linux 11 SP3 + db2 purescale V10.5 (六)

  本文详细记录了DB2 purescale 10.5在VMware Workstation 上的安装过程,如果大家看了本人的博文后,实践过程中有什么问题,欢迎加本人微信84077708,我将尽我所能为大家解惑。
     

     前面两篇博文已经将在Suse Linux 11SP3上安装db2 purescale所需要的配置基本上已经讲完了,但是现在还不能马上安装DB2 purescale ,因为在安装之前,还需要做一些工作,内容如下:
     node01:~ # cp -v /usr/src/linux-3.0.76-0.11-obj/x86_64/default/include/generated/autoconf.h   /lib/modules/3.0.76-0.11-default/build/include/linux/
              node02:~ # cp -v /usr/src/linux-3.0.76-0.11-obj/x86_64/default/include/generated/autoconf.h   /lib/modules/3.0.76-0.11-default/build/include/linux/
              之所以要执行上面的命令,将autoconf.h文件复制到/lib/modules/3.0.76-0.11-default/build/include/linux/目录下面,是因为DB2 10.5.0.3之个版本的DB2,在安装GPFS时,需要用到这个头文件。否则在编译GPFS时,会报以下错误:
              Compiling GPL :.......Failure错误。
  

     DB2各版本的安装文件中,都建议使用db2setup执行图形安装,但实际上因为DB2给出的官方资料太少,很多东西说得不明不白,导致使用db2setup安装时,基本上都会出错。所以在网上基本上看不到有人用db2setup进行安装,我自己尝试过很多次也是不行,归其原因,还是DB2的问题。

  

      为了正确安装DB2 purescale,我本人用的是db2_install脚本,从命令行方式进行的安装,安装过程如下:

      首先在node01上执行:

     
  login as: root
  Using keyboard-interactive authentication.
  Password:

  Last login: Sun Jun4 10:16:30 2017 from 192.168.142.1
  node01:~ # cd /mnt/hgfs/C                  --前面安装了VMware Tools,在此,就可以直接在Liinux中访问物理机C盘中的数据了

  node01:/mnt/hgfs/C # ls
  $Recycle.Bin            System Volume Information

  360SANDBOX            Users
  DICMS                   Windows
  Documents and SettingsWindows.old
  Intel                   hiberfil.sys
  MSOCache                msdia80.dll
  PerfLogs                oracle
  Program Files         pagefile.sys
  Program Files (x86)   setup.log
  ProgramData             setupinfidb.db
  Recovery                v10.5.0.3_linuxx64_server_t.tar.gz
  

  node01:/mnt/hgfs/C # cd /opt
  node01:opt # tar zxvf/mnt/hgfs/C/v10.5.0.3_linuxx64_server_t.tar.gz      --解压到/opt目录下,解压后的目录为server_t
  

  node01:opt # cd server_t
  node01:/opt/server_t # ./db2prereqcheck -p -v 10.5.0.3---执行安装前检查

  

  如果最后一行显示:

  DBT3533IThe db2prereqcheck utility has confirmed that all installation prerequisites were met.
  则表示检查通过。

  

  除了执行db2prereqcheck脚本执行安装前检查外,还需要执行以下命令检查tsamp组件的安装条件是否满足:

  node01:/opt/server_t # db2/linuxamd64/tsamp/prereqSAM
   prereqSAM: All prerequisites for the ITSAMP installation are met on operating system
   SUSE Linux Enterprise Server 11 (x86_64)
   VERSION = 11
   PATCHLEVEL = 3
  
   只有上面两个检查都通过了,才有可能成功安装db2 purescale,下面开始在节点一node01上安装DB2 purescale软件。
node01:/opt/server_t # ./db2_install -b /opt/ibm/db2/V10.5
  DBI1324WSupport of the db2_install command is deprecated. For
        more information, see the DB2 Information Center.
  

  

  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
  DB2 installation is being initialized.
  

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

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

  Task #2 start
  Description: Base Client Support for installation with root privileges
  Estimated time 3 second(s)
  Task #2 end
  

  Task #3 start
  Description: Product Messages - English
  Estimated time 14 second(s)
  Task #3 end
  

  Task #4 start
  Description: Base client support
  Estimated time 294 second(s)
  Task #4 end
  

  Task #5 start
  Description: Java Runtime Support
  Estimated time 155 second(s)
  Task #5 end
  

  Task #6 start
  Description: Java Help (HTML) - English
  Estimated time 7 second(s)
  Task #6 end
  

  Task #7 start
  Description: Base server support for installation with root privileges
  Estimated time 7 second(s)
  Task #7 end
  

  Task #8 start
  Description: Global Secure ToolKit
  Estimated time 59 second(s)
  Task #8 end
  

  Task #9 start
  Description: Java support
  Estimated time 13 second(s)
  Task #9 end
  

  Task #10 start
  Description: SQL procedures
  Estimated time 3 second(s)
  Task #10 end
  

  Task #11 start
  Description: ICU Utilities
  Estimated time 35 second(s)
  Task #11 end
  

  Task #12 start
  Description: Java Common files
  Estimated time 18 second(s)
  Task #12 end
  

  Task #13 start
  Description: Base server support
  Estimated time 468 second(s)
  Task #13 end
  

  Task #14 start
  Description: Control Center Help (HTML) - English
  Estimated time 13 second(s)
  Task #14 end
  

  Task #15 start
  Description: Connect support
  Estimated time 3 second(s)
  Task #15 end
  

  Task #16 start
  Description: Relational wrappers common
  Estimated time 3 second(s)
  Task #16 end
  

  Task #17 start
  Description: DB2 data source support
  Estimated time 6 second(s)
  Task #17 end
  

  Task #18 start
  Description: Spatial Extender server support
  Estimated time 19 second(s)
  Task #18 end
  

  Task #19 start
  Description: IBM Software Development Kit (SDK) for Java(TM)
  Estimated time 48 second(s)
  Task #19 end
  

  Task #20 start
  Description: DB2 LDAP support
  Estimated time 4 second(s)
  Task #20 end
  

  Task #21 start
  Description: DB2 Instance Setup wizard
  Estimated time 20 second(s)
  Task #21 end
  

  Task #22 start
  Description: Integrated Flash Copy Support
  Estimated time 3 second(s)
  Task #22 end
  

  Task #23 start
  Description: General Parallel File System (GPFS)
  Estimated time 100 second(s)
  Task #23 end
  

  Task #24 start
  Description: Spatial Extender client
  Estimated time 3 second(s)
  Task #24 end
  

  Task #25 start
  Description: Communication support - TCP/IP
  Estimated time 3 second(s)
  Task #25 end
  

  Task #26 start
  Description: Tivoli SA MP
  Estimated time 300 second(s)
  Task #26 end
  

  Task #27 start
  Description: Base application development tools
  Estimated time 35 second(s)
  Task #27 end
  

  Task #28 start
  Description: DB2 Update Service
  Estimated time 4 second(s)
  Task #28 end
  

  Task #29 start
  Description: Parallel Extension
  Estimated time 3 second(s)
  Task #29 end
  

  Task #30 start
  Description: EnterpriseDB code
  Estimated time 4 second(s)
  Task #30 end
  

  Task #31 start
  Description: Replication tools
  Estimated time 53 second(s)
  Task #31 end
  

  Task #32 start
  Description: Cluster Caching Facility
  Estimated time 65 second(s)
  Task #32 end
  

  Task #33 start
  Description: Sample database source
  Estimated time 4 second(s)
  Task #33 end
  

  Task #34 start
  Description: itlm
  Estimated time 3 second(s)
  Task #34 end
  

  Task #35 start
  Description: DB2 Text Search
  Estimated time 119 second(s)
  Task #35 end
  

  Task #36 start
  Description: Command Line Processor Plus
  Estimated time 4 second(s)
  Task #36 end
  

  Task #37 start
  Description: Informix data source support
  Estimated time 4 second(s)
  Task #37 end
  

  Task #38 start
  Description: Oracle data source support
  Estimated time 4 second(s)
  Task #38 end
  

  Task #39 start
  Description: IBM DB2 pureScale Feature
  Estimated time 3 second(s)
  Task #39 end
  

  Task #40 start
  Description: First Steps
  Estimated time 3 second(s)
  Task #40 end
  

  Task #41 start
  Description: Product Signature for DB2 Server Edition
  Estimated time 6 second(s)
  Task #41 end
  

  Task #42 start
  Description: Guardium Installation Manager Client
  Estimated time 20 second(s)
  Task #42 end
  

  Task #43 start
  Description: Setting DB2 library path
  Estimated time 180 second(s)
  Task #43 end
  

  Task #44 start
  Description: Copying DB2 image
  Estimated time 600 second(s)
  Task #44 end
  

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

  Task #46 start
  Description: Installing or updating DB2 Cluster Scripts for IBM General Parallel File System (GPFS)
  Estimated time 40 second(s)
  Task #46 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
  

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

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

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

  Task #52 start
  Description: Registering DB2 licenses
  Estimated time 5 second(s)
  Task #52 end
  

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

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

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

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

  The execution completed successfully.
  

  For more information see the DB2 installation log at
  "/tmp/db2_install.log.9471".
  node01:/opt/server_t #
  

  查看安装日志:
  
  

  node01:/opt/server_t # tail -200f /tmp/db2_install.log.9471
  

  DB2 Setup log file started at:Sat Jun 17 09:49:02 2017 CST
  ============================================================
  

  Operating system information: Linux 3.0.76-0.11-default.#1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64
  

  Product to install:                           DB2 Server Edition
  

  Previously Installed Components:
  

  Components to be installed:
      Base client support
      Java support
      SQL procedures
      Base server support
      Connect support
      DB2 data source support
      Spatial Extender server support
      IBM Software Development Kit (SDK) for Java(TM)
      DB2 LDAP support
      DB2 Instance Setup wizard
      Integrated Flash Copy Support
      General Parallel File System (GPFS)
      Spatial Extender client
      Communication support - TCP/IP
      Tivoli SA MP
      Base application development tools
      DB2 Update Service
      Replication tools
      Sample database source
      DB2 Text Search
      Informix data source support
      Oracle data source support
      IBM DB2 pureScale Feature
      First Steps
      Guardium Installation Manager Client
  

  Languages:
  

  Target directory:                               /opt/ibm/db2/V10.5
  

  Space required:                                 2420 MB
  Install IBM Tivoli System Automation for Multiplatforms (Tivoli SA MP):         Yes
  

  

  

  

  

  Checking license agreement acceptance :.......Success
  Installing: BASE_CLIENT_R
  

  Installing: DB2_PRODUCT_MESSAGES_EN
  

  Installing: BASE_CLIENT
  

  Installing: JAVA_RUNTIME_SUPPORT
  

  Installing: DB2_JAVA_HELP_EN
  

  Installing: BASE_DB2_ENGINE_R
  

  Installing: GSK
  

  Installing: JAVA_SUPPORT
  

  Installing: SQL_PROCEDURES
  

  Installing: ICU_SUP
  

  Installing: JAVA_COMMON_FILES
  

  Installing: BASE_DB2_ENGINE
  

  Installing: DB2_CONTROL_CENTER_HELP_EN
  

  Installing: CONNECT_SUPPORT
  

  Installing: RELATIONAL_WRAPPERS_COMMON
  

  Installing: DB2_DATA_SOURCE_SUPPORT
  

  Installing: SPATIAL_EXTENDER_SERVER_SUPPORT
  

  Installing: JDK
  

  Installing: LDAP_EXPLOITATION
  

  Installing: INSTANCE_SETUP_SUPPORT
  

  Installing: ACS
  

  Installing: GPFS
  

  Installing: SPATIAL_EXTENDER_CLIENT_SUPPORT
  

  Installing: COMMUNICATION_SUPPORT_TCPIP
  

  Installing: TSAMP
  

  Installing: APPLICATION_DEVELOPMENT_TOOLS
  

  Installing: DB2_UPDATE_SERVICE
  

  Installing: DATABASE_PARTITIONING_SUPPORT
  

  Installing: EDB
  

  Installing: REPL_CLIENT
  

  Installing: CF
  

  Installing: DB2_SAMPLE_DATABASE
  

  Installing: ITLM
  

  Installing: TEXT_SEARCH
  

  Installing: CLPPLUS
  

  Installing: INFORMIX_DATA_SOURCE_SUPPORT
  

  Installing: ORACLE_DATA_SOURCE_SUPPORT
  

  Installing: PURESCALE
  

  Installing: FIRST_STEPS
  

  Installing: ESE_PRODUCT_SIGNATURE
  

  Installing: GUARDIUM_INST_MNGR_CLIENT
  

  Installing DB2 file sets :.......Success
  DBI1514IThe 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
  DB2 installer detects whether these DB2 HA scripts need to be installed
  or updated.
  

  User response:
  

  No action is required.
  

  

  Installing or updating DB2 HA scripts for IBM Tivoli System Automation for Multiplatforms (Tivoli SA MP) :.......Success
  Installing or updating DB2 Cluster Scripts for IBM General Parallel File System (GPFS) :.......Success
  Installing or updating DB2 SSH Utilities :.......Success
  Compiling GPL :.......Success
  Executing control tasks :.......Success
  Updating global registry :.......Success
  Updating the db2ls link :.......Success
  Registering DB2 licenses :.......Success
  Setting default global profile registry variables :.......Success
  Initializing instance list :.......Success
  Registering DB2 Update Service :.......Success
  Updating global profile registry :.......Success
  

  Post Install Recommendations
  -----------------------------
  

  Required steps:
  Set up a DB2 instance to work with DB2.
  

  Optional steps:
  Refer to "What's new" http://publib.boulder.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.wn.doc/doc/c0052035.html in the DB2 Information Center to learn about the new functions for DB2 V10.5.
  

  Open First Steps by running "db2fs" using a valid user ID such as the DB2 instance owner's ID. You will need to have DISPLAY set and a supported web browser in the path of this user ID.
  

  Ensure that you have the correct license entitlements for DB2 products and features installed on this machine. Each DB2 product or feature comes with a license certificate file (also referred to as a license key) that is distributed on an Activation CD, which also includes instructions for applying the license file. If you purchased a base DB2 product, as well as, separately priced features, you might need to install more than one license certificate. The Activation CD for your product or feature can be downloaded from Passport Advantage if it is not part of the physical media pack you received from IBM. For more information about licensing, search the Information Center (http://publib.boulder.ibm.com/infocenter/db2luw/v10r5/index.jsp) using terms such as "license compliance", "licensing" or "db2licm".
  

  To use your DB2 database product, you must have a valid license. For information about obtaining and applying DB2 license files, see http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.qb.server.doc/doc/c0061199.html.
  

  

  DB2 Setup log file finished at:Sat Jun 17 09:55:42 2017 CST
  ============================================================
  
从上面的安装日志可以看出,node01上的db2 purescale软件安装成功,没有发生任何错误。
  

  接下来要在第二个节点node02上安装DB2 purescale软件。
  

  由于篇幅过长,接下来的内容就请参见《Vmware Workstation + Suse Linux 11 SP3 + db2 purescale V10.5 (七)》
  

  

  




  
页: [1]
查看完整版本: Vmware Workstation + Suse Linux 11 SP3 + db2 purescale V10.5 (六)