Projekt mspr@job1

From JoBaPedia
Jump to navigation Jump to search

How I move the MSPR site from job4 to job1

Preparation

  • Install standard opensuse 12.1
  • Add repositories pacman, nvidia, vlc
  • Install the following packages
zypper install apache2 php5 hg apache2-mod_php5 php5-devel php5-pear gcc-c++
  • Install db2 express-c 9.7.4
  • Create instance db2mspr
  • Configure instance like db2inst4 on job4
db2 update dbm cfg using numdb 2 federated yes DFT_MON_BUFPOOL on DFT_MON_LOCK on \
 DFT_MON_SORT on DFT_MON_STMT on DFT_MON_TABLE on DFT_MON_UOW on \
 INSTANCE_MEMORY 524288 SHEAPTHRES 200000 INTRA_PARALLEL YES
  • Create connect user db2inst2 (required because tables have this schema)
  • Create loader user mspr (loads data from mspr web/xml pages)
  • Clone mspr repository (for scripts and docs)
  • Install pdo for db2 (see howto in database/)
  • Enable apache to access instance db2mspr (DB2INSTANCE in /etc/sysconfig/apache2, export?)
  • Install scripts for import and web (all in web/ except gen_* to /srv/www/htdocs, util/mspr-* to /usr/local/bin)

Test Installation

next task:

  • restore database from last backup and logs from job4 and document steps
  • check db settings are the same as on job4
  • Create portforward public :801 to job1:80
  • Check if pages show correct results
  • Setup cron for data imports
  • Testrun for data import

Production Switch

  • disable update on job4
  • restore db again
  • test again
  • move public :80 port