Upgrade Testsystem from 742 To 743p1: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
/opt/hpss/bin/rc.hpss stop |
/opt/hpss/bin/rc.hpss stop |
||
[root@hpsstcr03 /]# ps -ef | grep -i db2 |
[root@hpsstcr03 /]# ps -ef | grep -i db2 |
||
root 4306 1 0 Sep29 ? 00:08:32 /opt/ibm/db2/V10.5/bin/db2fmcd |
root 4306 1 0 Sep29 ? 00:08:32 /opt/ibm/db2/V10.5/bin/db2fmcd |
||
3. '''DB2 offline backup''' |
3. '''DB2 offline backup''' |
||
Line 19: | Line 19: | ||
-bash-4.1$ db2 backup db hsubsys1 to /db2_backup/offline/hsubsys1 compress |
-bash-4.1$ db2 backup db hsubsys1 to /db2_backup/offline/hsubsys1 compress |
||
Backup successful. The timestamp for this backup image is : 20141218114500 |
Backup successful. The timestamp for this backup image is : 20141218114500 |
||
'''NOTICE for the productive core server''' |
'''NOTICE for the productive core server''' |
||
db2 backup db hcfg to /db2_backup1/offline/hcfg compress |
db2 backup db hcfg to /db2_backup1/offline/hcfg compress |
Revision as of 17:12, 21 June 2016
1. Stop HPSS
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab hpssadm> server shutdown -all /opt/hpss/bin/rc.hpss -d stop /opt/hpss/bin/rc.hpss -m stop
2. Stop DB2 /opt/hpss/bin/rc.hpss stop [root@hpsstcr03 /]# ps -ef | grep -i db2
root 4306 1 0 Sep29 ? 00:08:32 /opt/ibm/db2/V10.5/bin/db2fmcd
3. DB2 offline backup
[root@hpsstcr03 ~]# su - hpssdb -bash-4.1$ . /var/hpss/hpssdb/sqllib/db2profile Start only db2 in order to take an offline backup -bash-4.1$ db2start -bash-4.1$ db2 backup db hcfg to /db2_backup/offline/hcfg compress Backup successful. The timestamp for this backup image is : 20141218114347 -bash-4.1$ db2 backup db hsubsys1 to /db2_backup/offline/hsubsys1 compress Backup successful. The timestamp for this backup image is : 20141218114500
NOTICE for the productive core server db2 backup db hcfg to /db2_backup1/offline/hcfg compress db2 backup db hsubsys1 to /db2_backup1/offline/hsubsys1 compress db2 backup db hghi to /db2_backup1/offline/hghi compress
4. Stop DB2 -bash-4.1$ db2stop 5. HPSS Upgrade. 5.1 Prequisites
SEE THE ORIGINAL FIRST UPGRADE KIT HowTo "Upgrade_Testsystem_from_742_To_743.txt" for more details From previous update (it has to be done on the productive system) 2.1[root@hpsstcr03 hpss-7.4.3]# rpm -qa| grep -i hpss
hpss-mvr-7.4.2-1.el6.x86_64 hpss-lib-7.4.2-1.el6.x86_64 hpss-core-7.4.2-1.el6.x86_64 hpss-clnt-7.4.2-1.el6.x86_64 hpss-doc-7.4.2-1.el6.x86_64
2.2 cd /root/Software/HPSS/hpss-7.4.3 2.3 turn off ASLR [root@hpsstcr03 hpss-7.4.3]# grep kernel.randomize_va_space /etc/sysctl.conf
vi /etc/sysctl.conf kernel.randomize_va_space = 0
reboot
Prerequisites 3. [root@hpsstcr03 yum.repos.d]# yum-config-manager --enable rhel-6-server-rpms [root@hpsstcr03 yum.repos.d]# yum list llibtirpc [root@hpsstcr03 yum.repos.d]# yum update libtirpc.x86_64 INSTALLED form rpm: http://ftp.scientificlinux.org/linux/scientific/6x/x86_64/os/Packages/ [root@hpsstcr03 Addon_Packages]# rpm -Uvh libtirpc-devel-0.2.1-10.el6.x86_64.rpm libtirpc-0.2.1-10.el6.x86_64.rpm
[root@hpsstcr03 hpss]# yum install perl-DBI.x86_64
wget http://search.cpan.org/CPAN/authors/id/I/IB/IBMTORDB2/DBD-DB2-1.84.tar.gz
[root@hpsstcr03 Addon_Packages]# tar -zxvf DBD-DB2-1.84.tar.gz [root@hpsstcr03 DBD-DB2-1.84]# perl Makefile.PL [root@hpsstcr03 DBD-DB2-1.84]# make [root@hpsstcr03 DBD-DB2-1.84]# make install