• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Steps to halt TSM 7.1 server on AIX cluster

jqei

Active Newcomer
#1
Hi,

I need to stop a TSM 7.1 server that's running on AIX cluster. It's been ages since since I've dealt with TSM and that was version 5 on a Windows server.

Should all sessions just be cancelled and and then disabled? Then perform a "halt"? Can I somehow see when the TSM server is stopped? On Windows I just check the TSM server service. Can I look for some certain processes on AIX?

Also since this is a cluster setup? Can TSM just be failed over to passive node? Maybe a stupid question as I guess that's the whole idea about a cluster? But can failover just be done online and I perhaps don't need to halt TSM server first?

Many thanks!
 

marclant

ADSM.ORG Moderator
#2
Should all sessions just be cancelled and and then disabled? Then perform a "halt"?
You don't really need to cancel the sessions before, issuing the HALT command will cancel the sessions and processes before stopping the server.

n I somehow see when the TSM server is stopped?
Issue ps -ef | grep dsmserv to see if the process is still running and ps -ef | grep db2sysc to make sure DB2 also went down after dsmserv.

Also since this is a cluster setup? Can TSM just be failed over to passive node? Maybe a stupid question as I guess that's the whole idea about a cluster? But can failover just be done online and I perhaps don't need to halt TSM server first?
Not familiar enough with HA, I assume that yes you can failover, like you said, that's the whole point.
 

RecoveryOne

ADSM.ORG Senior Member
#3
Don't have TSM in a HACMP cluster, but I a few other apps on AIX. Generally if you halt the app with the HALT command, hacmp will see the application terminate.

Depending on how your HA is configured you may need to unmanage resource groups if you do not wish to have automatic fail over.
Also, depending on how your scripts are setup for HACMP, you could move resource groups. That (if your scripts are setup correctly) should automatically halt dsmserv and db2, move the luns/other tasks, and then start up on the secondary node.

Please note that I've not read the docs on TSM and HACMP, so I could be way off in how TSM operates in a HA env.
 

jqei

Active Newcomer
#4
Ok, thanks for all the feedback. Seems I'm good to go with all just a regular HALT and then check the TSM process afterwards. Thanks again. Much appreciated.
 

jqei

Active Newcomer
#6
I'm a newbie. Just came from the Windows world and trying to find my way around. I'll try and reach out to our Unix admin team. They can probably help. Thanks.
 

jqei

Active Newcomer
#7
Ok, so I was provided with the start and stop scripts. This is the stop:

# Set seconds to sleep.
secs=5
#
INSTANCE_DIR=/home/tsminst1/tsminst1
# TSM lock file
LOCKFILE="$INSTANCE_DIR/dsmserv.v6lock"
echo "Stopping the TSM server now..."
# Check to see if the dsmserv.v6lock file exists. If not then the server is not running
if [[ -f $LOCKFILE ]]; then
read PROGNAME J2 J3 PID REST < $LOCKFILE
kill -s PRE $PID
echo "Waiting for TSM server running on pid $PID to stop..."
# Make sure all of the threads have ended
while [[ `ps -m -o THREAD -p $PID | grep $PROGNAME | grep -c -w $PID` > 0 ]]; do
sleep $secs
done
fi
exit 0


I'm not sure what it does but it seems to terminate TSM in forced way? Not shutting down "properly" with issuing a HALT?
 

jqei

Active Newcomer
#9
Ok, so if I understand the kb correct it's best to run halt and if I can't connect to TSM then I can use the stop script? Thanks.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.6%
  • Keep using TSM for Spectrum Protect.

    Votes: 59 60.8%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.4%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Threads
31,664
Messages
134,990
Members
21,691
Latest member
luciano91vs
Top