hidden:Starting and Stopping HPSS: Difference between revisions

From Lsdf
Jump to navigationJump to search
No edit summary
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Activate/deactivate HPSS on either hpsscr04 or hpsscr05==
==Stopping the HPSS services==
1.'''Activate HPSS'''
run: /hat/core_manual/bin/hpss_activate_node.ksh
This script:
- activates hpss volume groups (see '''Miscellaneous''' for details)
- mounts hpss file systems
- sets IPs of the productive HPSS core
- starts hpss and DB2
- copies /hat/core_manual/etc/root_active_crontab over /var/spool/cron/root
2.'''Deactivate HPSS active core'''
run: /hat/core_manual/bin/hpss_deactivate_node.ksh
This script:
- stops HPSS and DB2
- umounts all HPSS file systems
- deactivates all HPSS volume groups
- takes away all HPSS productive IPs
- deletes /var/spool/cron/root
'''Please note:'''
- if you solely want to stop HPSS and DB2 but have access to HPSS file systems
please see below how only stop hpss
- if you want to set a cronjob on the active core, write it in
/hat/core_manual/etc/root_active_crontab
to be activeted at the next run of
/hat/core_manual/bin/hpss_activate_node.ksh
'''Beware:'''
''keep /hat/core_manual synchronized on both hpsscr04 and hpsscr05''


'''Stop HPSS using the hpss command line'''
==Stop/Start HPSS and DB2 on the active core without deactivating it==

1.'''Start the command line on the core server and stop all server'''
1.'''Stop all HPSS processes and DB2 in one step'''
/opt/hpss/bin/rc.hpss stop
1.1. [root@hpsstcr03 scripts]# /opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
2.'''Alternatively, stop HPSS and DB2 in more steps for a better overview'''
2.1.'''Start the command line on the core server and stop all server'''
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
hpssadm> server shutdown -all
hpssadm> server shutdown -all
hpssadm> server list -all
hpssadm> server list -all
List
ID Status Type Subtype Subsystem Op State Server Name Host Execute Host UUID
0 Connected SSMSM Enabled SSM System Manager hpsstcr03.lsdf.kit.edu hpsstcr03 264216ec-0752-11e4-9b61-40f2e9724ad2
1 Connected SUD Enabled Startup Daemon (hpsstcr03) hpsstcr03.lsdf.kit.edu hpsstcr03 58cea534-0767-11e4-8c5a-40f2e9724ad2
hpssadm> quit
hpssadm> quit
1.2.'''Stop startup daemon'''
2.2.'''Stop startup daemon'''
root@hpsstcr03 scripts]# /opt/hpss/bin/rc.hpss -d stop
/opt/hpss/bin/rc.hpss -d stop
1.3.'''Stop system manager'''
2.3.'''Stop system manager'''
root@hpsstcr03 scripts]# /opt/hpss/bin/rc.hpss -m stop
/opt/hpss/bin/rc.hpss -m stop
2.'''Stop the database'''
2.4.'''Stop DB2'''
2.1.[root@hpsstcr03 scripts]# /opt/hpss/bin/rc.hpss stop
2.5.'''Stop DB2 using rc.hpss:'''
/opt/hpss/bin/rc.hpss stop
SQL1064N DB2STOP processing was successful.
'''Please note:'''

rc.hpss will try to stop all hpss processes

rc.hpss will find all hpss processes stopped (had been stopped in step 2.3)
'''Start HPSS and the database'''
rc.hpss will only stop DB2
'''as user root on the core server'''
'''DB2 can also be stopped using DB2 manager'''

su - hpssdb
db2stop
exit
3. '''Start HPSS and DB2'''
'''as user root on the core server'''
rc.hpss starts all hpss processes and DB2 as well
/opt/hpss/bin/rc.hpss start
/opt/hpss/bin/rc.hpss start
'''check if all servers are running'''
'''start hpss admin tool'''
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
'''check if all servers are running'''
server start -all
hpssadm>server list -all

''a list of servers will be showed please note:''

''"status: connected" and "op state: enabled"''
Stopping is done in two steps. First in the GUI all activity is to be stopped. Then run the
'''close hpss admin tool'''
''hpss_deactivate_node'' script.
hpssadm> quit

- 1 open the HPSS GUI on the active Core-Server (hpsscr)

[root@hpsscr ~]# /opt/hpss/bin/hpssgui.pl &

- 2 click on Operations --> Shutdown --> All Non-SSM Servers
- 3 then Operations --> Shutdown --> System Manager

Then stop the daemons and database:

/ha/bin/hpss_deactivate_node.ksh


==Alternatively you can stop/start HPSS servers using HPSS GUI==
==Starting the HPSS services==
In this case stopping is done in two steps.
First in the GUI all hpss servers are to be stopped and then the database is to be stopped.
1. open the HPSS GUI on the active Core-Server
/opt/hpss/bin/hpssgui.pl &
2. click on Operations --> Shutdown --> All Non-SSM Servers
3. then Operations --> Shutdown --> System Manager
4. stop DB2:
''either using rc.hpss''
/opt/hpss/bin/rc.hpss stop
''or DB2 manager''
su - hpssdb
db2stop
exit
Starting also in two steps:
''start DB2:''
su - hpssdb
db2start
exit
start HPSS GUI and start all HPSS servers


==Miscellaneous==
1.'''HPSS volumes groups:'''
''at the OS level HPSS and DB2 is using the following volume groups:''
db2_backup1_vg : used for DB2 backups
db2_backup2_vg : also used for DB2 backups
db2_log_vg : used for storing active DB2 redologs
db2_logarch1_vg : used for DB2 redologs archived path 1
db2_logarch2_vg : used for DB2 redologs archived path 2
db2_logmirror_vg : used for mirrored redologs
hpss_tbspc1_vg : used for DB2 tablespaces
hpss_tbspc2_vg : also used for DB2 tablespaces
hpss_vg : used for HPSS specific files
'''Please note:'''
''DB2 active logs (redologs) cannot be backuped; they have to be actively mirrored''
'''Please also take a look at scripts in /root/software'''
'''Please use these scripts with CAUTION:'''
''they are intended to be used by a skilled administrator to manually
activate/deactivate/export/import/mount/umount hpss vg/fs''
activate_hpss_vg.sh
deactivate_hpss_vg.sh
export_hpss_vg.sh
import_hpss_vg.sh
mount_hpss_fs.sh
umount_hpss_fs.sh


Run the ''hpss_activate_node'' script, then start the processes in the GUI.


[root@hpsscr ~]# /opt/hpss/bin/hpssgui.pl &
/ha/bin/hpss_activate_node.ksh


----[[ hidden:HPSS|<small>back to HPPS main page</small>]]
----[[ hidden:HPSS|<small>back to HPPS main page</small>]]

Latest revision as of 17:30, 27 May 2021

Activate/deactivate HPSS on either hpsscr04 or hpsscr05

1.Activate HPSS 
run: /hat/core_manual/bin/hpss_activate_node.ksh
This script:
- activates hpss volume groups (see Miscellaneous for details)
- mounts hpss file systems
- sets IPs of the productive HPSS core
- starts hpss and DB2
- copies /hat/core_manual/etc/root_active_crontab over /var/spool/cron/root
2.Deactivate HPSS active core 
run: /hat/core_manual/bin/hpss_deactivate_node.ksh
This script:
- stops HPSS and DB2
- umounts all HPSS file systems
- deactivates all HPSS volume groups
- takes away all HPSS productive IPs
- deletes /var/spool/cron/root

Please note:
- if you solely want to stop HPSS and DB2 but have access to HPSS file systems
please see below how only stop hpss
- if you want to set a cronjob on the active core, write it in 
/hat/core_manual/etc/root_active_crontab
to be activeted at the next run of 
/hat/core_manual/bin/hpss_activate_node.ksh
Beware:
keep /hat/core_manual synchronized on both hpsscr04 and hpsscr05

Stop/Start HPSS and DB2 on the active core without deactivating it

1.Stop all HPSS processes and DB2 in one step
/opt/hpss/bin/rc.hpss stop

2.Alternatively, stop HPSS and DB2 in more steps for a better overview 

2.1.Start the command line on the core server and stop all server 
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
hpssadm> server shutdown -all
hpssadm> server list -all  
hpssadm> quit
2.2.Stop startup daemon
/opt/hpss/bin/rc.hpss -d stop
2.3.Stop system manager
/opt/hpss/bin/rc.hpss -m stop
2.4.Stop DB2
2.5.Stop DB2 using rc.hpss:
/opt/hpss/bin/rc.hpss stop
Please note:
rc.hpss will try to stop all hpss processes
rc.hpss will find all hpss processes stopped (had been stopped in step 2.3)
rc.hpss will only stop DB2
DB2 can also be stopped using DB2 manager
su - hpssdb
db2stop
exit
3. Start HPSS and DB2
as user root on the core server
rc.hpss starts all hpss processes and DB2 as well
/opt/hpss/bin/rc.hpss start
check if all servers are running
start hpss admin tool
/opt/hpss/bin/hpssadm.pl -U hpssssm -a /var/hpss/etc/hpss.unix.keytab
check if all servers are running
hpssadm>server list -all  
a list of servers will be showed please note:
"status: connected" and "op state: enabled"  
close hpss admin tool
hpssadm> quit

Alternatively you can stop/start HPSS servers using HPSS GUI

In this case stopping is done in two steps. 
First in the GUI all hpss servers are to be stopped and then the database is to be stopped.

1. open the HPSS GUI on the active Core-Server
/opt/hpss/bin/hpssgui.pl &
2. click on Operations --> Shutdown --> All Non-SSM Servers
3. then Operations --> Shutdown --> System Manager
4. stop DB2:
either using rc.hpss 
/opt/hpss/bin/rc.hpss stop
or DB2 manager
su - hpssdb
db2stop
exit

Starting also in two steps:
start DB2:
su - hpssdb
db2start
exit

start HPSS GUI and start all HPSS servers

Miscellaneous

1.HPSS volumes groups:
at the OS level HPSS and DB2 is using the following volume groups:
db2_backup1_vg      : used for DB2 backups
db2_backup2_vg      : also used for DB2 backups
db2_log_vg          : used for storing active DB2 redologs
db2_logarch1_vg     : used for DB2 redologs archived path 1 
db2_logarch2_vg     : used for DB2 redologs archived path 2
db2_logmirror_vg    : used for mirrored redologs
hpss_tbspc1_vg      : used for DB2 tablespaces
hpss_tbspc2_vg      : also used for DB2 tablespaces
hpss_vg             : used for HPSS specific files
Please note:
DB2 active logs (redologs) cannot be backuped; they have to be actively mirrored
Please also take a look at scripts in /root/software
Please use these scripts with CAUTION:
they are intended to be used by a skilled administrator to manually
activate/deactivate/export/import/mount/umount hpss vg/fs

activate_hpss_vg.sh
deactivate_hpss_vg.sh
export_hpss_vg.sh
import_hpss_vg.sh
mount_hpss_fs.sh
umount_hpss_fs.sh





back to HPPS main page