Results 1 to 2 of 2
03-16-2012, 05:36 PM #1
- Join Date
- Nov 2006
- Thanked 0 Times in 0 Posts
Fail Over cluster script for Suse 11
I have 4 node SUSE 11. My Linux admin created 11 resource. We migrated all Novell drives to 11 Shares. I have created dsm.sys file for each physical server. I mean stanza. I copied dsm.sys on all 4 node. I have setup the scheduler to run backup. I am using manually command now export DSM_Config=/media/nss/XXXXXXX/Tivoli/dsm.opt for each resource. Then I used dsmcad to load schedule. When the cluster fails over to another node, I can put two lines in startup script.
When cluster fails over and script is running file and schedule start but, How can i kill dsmcad process was associated on another node rather than guessing. Some time, It may running more than one resource on same node.
By the way, This is my first TSM Cluster install for linux. I know how to do in windows.
03-16-2012, 06:11 PM #2
- Join Date
- Dec 2003
- Czech Republic
- Thanked 73 Times in 72 Posts
the easiest way (although not very pretty) is to copy the dsmcad executable for each cluster resource as "dsmcad_resourceX" - then you run/kill this very copied executable.
to prevent running multiple instances of the same CAD I have created (years ago) this script - it is not perfect (I can see it clearly now ) but did its job at the time - may give few pointers
/opt/tivoli/tsm/client/ba/bin/dsmcad_data.rc #!/bin/bash DAEMON=/opt/tivoli/tsm/client/ba/bin/dsmcad_RESX PIDFILE=/var/run/dsmcad_RESX.pid if [ -e $PIDFILE ] then echo "PID file found, trying to kill the instance if running ..." PID=`cat $PIDFILE` echo PID is $PID STATUS=`ps aux| grep $PID | grep dsmcad | wc -l` echo STATUS is $STATUS if [ $STATUS == 0 ] then echo No DSMCAD running under this PID else echo Something is running ps aux| grep $PID | grep dsmcad echo Trying to kill it ... kill -9 $PID sleep 2 echo Is it dead? ps aux| grep $PID | grep dsmcad rm $PIDFILE fi fi DSM_DIR=/opt/tivoli/tsm/client/ba/bin DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/RESX.opt DSM_LOG=/opt/tivoli/tsm/client/ba/bin LC_CTYPE=en_US LANG=en_US LC_ALL=en_US export DSM_DIR DSM_CONFIG DSM_LOG export LC_CTYPE LANG LC_ALL $DAEMON NEWPID=$(pidof $DAEMON) echo $NEWPID > $PIDFILE
Last edited by Harry_Redl; 03-16-2012 at 06:18 PM.
By CinningBao in forum Exchange / OutlookReplies: 1Last Post: 03-01-2011, 08:26 AM
By foobar2devnull in forum TSM ServerReplies: 10Last Post: 12-01-2010, 07:26 AM
By John22439 in forum ScriptingReplies: 3Last Post: 01-08-2009, 03:49 PM
By mikeymac in forum Backup / Archive DiscussionReplies: 13Last Post: 10-10-2007, 05:53 PM
By rpask in forum TSM ClientReplies: 1Last Post: 03-08-2006, 01:40 AM