Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to cancel a process 1

Status
Not open for further replies.

almond247

MIS
Jan 19, 2005
44
US
Hello,

Is it possible to create a script on the TSM SERVER that will cancel a particular process and session number on a certain day, if the process is still active? After a certain period of time? Using a Script and the Admin Schedule? I have a daily TSM housekeeping script that runs every day and one that runs on weekends the script that runs on Sunday’s always takes to long due to a Backup Storage (disk to remote tape) process. We have 10 processes running and usually all but 1 or 2 after a 1hr to 1 1/2.

I would like to create a script to check if the process is still active say 1:30pm and if so have it canceled by the script automatically. to continue on with the script so that it doesn't run into the next morning. We are still looking into this issue. But I am just curious to see if this could be done.

Thanks in advance!

By the way does anyone know the when TSM 5.3.5 is due out?

Thanks again.

Aix 5.3/RS6000
TSM 5.3.4

 
You could save time on the stgpool backup if your stgpool is colocated. I would be hesitant in cancelling the offsite copy if you want to maintain proper DR.

What does the script do? I'm guessing that on Sundays your tape drives are all in use, causing a contention issue. If you backup your stgpool daily, perhaps you can do something like set the backup stgpool sched to run Mon - Sat using an enhanced sched, then on sunday run the backup stgpool with maxproc=2 or something so you can leave some drives free.


Is there some other issue that you are trying to fix?


 
Thanks probablydown,

The Script runs daily such as Backing up the Database, Backup storage pools,
Migrates/Cleans Data off DiskPool and on (weekdays ONLY) expires Inventory
The commands runs one after the another via the 5.3 Serial command.

The Script runs during the day (morning) after Most of the backups have ended. There may be a few still active but we have plenty of tape drives so contention is not an issue. Again out of the 10 BA STG backuppool RPPOOL processes that are active ALL complete within a normal 1hr to 1hr 1/2 timeframe except (2 processes).
Which can run can run 8 hrs or more, Which causes the rest
of the script to be delayed. As for a cancelling the Backup to remote copy more of a sync of process which is corrected during the next script run on Monday. Again this script works fine Mon-Sat.



serial
BACKUP DB DEVCLASS=BKP TYPE=FULL wait=yes
serial
BA STG backuppool RPOOL maxpr=10 wait=yes
serial
migrate stgpool backuppool lowmig=0 wait=yes
serial
BA STG HPOOL RPOOL maxpr=10 wait=yes


 
Hmm... So that being said, I would think that you have heavy activity on the weekend. I guess what is happening is that the copy stg is running into the backup schedules, hence the copy never really finishes. If this is the case you can try (sorry if I sound like a broken record):

1) colocating stgpools (more scratches used)
2) Run the long procs concurrently with the others - so create a separate script to do these 2 stgpools - and give them 5 drives each or something.
3) Don't run the long ones on the weekend... so create a "weekend" script that omits those stgpools...

Sorry my friend, thats all I can think of doing without really knowing the env.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top