Restore Testsystem TO 743p1 From DB2 OfflineBackup: Difference between revisions

From Lsdf
Jump to navigationJump to search
(Created page with "/usr/sbin/rear mkbackup /opt/hpss/bin/lshpss -all > /db2_backup/lshpss-hpss7.4.3p3/lshpss-7.4.3p3_before_downgrade_to_7.4.3p2.txt hpssadm> server shutdown -all /opt/hpss/bin/r...")
 
(Blanked the page)
 
Line 1: Line 1:
/usr/sbin/rear mkbackup
/opt/hpss/bin/lshpss -all > /db2_backup/lshpss-hpss7.4.3p3/lshpss-7.4.3p3_before_downgrade_to_7.4.3p2.txt
hpssadm> server shutdown -all
/opt/hpss/bin/rc.hpss -d stop
/opt/hpss/bin/rc.hpss -m stop

/opt/hpss/bin/rc.hpss stop (stop db2 , and resratrt it in order to close all active connections. Alternatively
db2 quiesce instance <inst_name> restricted access immediate force connections....take a closer look at db2 documentation ...it was not tested here...
http://www-01.ibm.com/support/docview.wss?uid=swg21636292)
su - hpssdb
. /var/hpss/hpssdb/sqllib/db2profile
db2start
db2 backup db hcfg to /db2_backup/offline/hcfg compress
db2 backup db hsubsys1 to /db2_backup/offline/hsubsys1 compress

db2stop

restore db2 from an offline backup
su - hpssdb
. /var/hpss/hpssdb/sqllib/db2profile
db2start
db2 list history backup since 20151201 for hcfg
db2 "restore db hcfg from /db2_backup/offline/hcfg taken at 20151221154752"

db2 "restore db hsubsys1 from /db2_backup/offline/hsubsys1 taken at 20151221154835"
db2 "rollforward db hcfg to end of logs and complete"

db2 "rollforward db hsubsys1 to end of logs and complete"

db2 activate db hcfg
db2 activate db hsubsys1
rm /opt/hpss
ln -s /hpss_src/hpss-7.4.3.1-0.el6 /opt/hpss
/opt/hpss/bin/rc.hpss start
make a link to 7.4.3p2 on test mover
delete disk devices: delete files, delete cos, delete hierarchy, delete storage class. delete resource, export volume, delete disk/device

SCSI Library and drives
library scan drive address on caore
/opt/hpss/bin/device_scan


scan scsi drive address on mover
sg_map -st -x -i ----> take generic drive /dev/sgXX
/opt/hpss/bin/device_scan -t tape -s /dev/sgXX


STK Library and drive

take device address from acsls maschine

/opt/hpss/tools/unsupported/bin/removesegs -i1 -v TK0528 --delete-segments (twice)

new cartridges in library iu1 hpss_test_01:
TS0213JC
TS0214JC

new cartridges in stk hpsst partition:
TK024300
TK024400

Latest revision as of 18:21, 21 June 2016