Results 1 to 4 of 4
08-04-2009, 08:15 AM #1
- Join Date
- Aug 2009
- Thanked 0 Times in 0 Posts
Using Parallel in a Maintenance Script
During the processing of my daily maintenance I am issuing the following commands:
backup stg diskpool1 copypool1 process=4 wait=yes
backup stg diskpool2 copypool2 process=4 wait=yes
/* this is copying data from my primary disk pools to my copy pools
backup stg tapepool1 copypool1 process=2 wait=yes
backup stg tapepool2 copypool2 process=2 wait=yes
/* this is catching anything that happened to overflow due to a triggered migration
/* remaining maintenance commands are here
My question is regarding the "serial" stuck in the middle. I need the disk to tape copies to complete before the tape to tape copies begin. My assumption is that the serial command is needed to delimit the first two backup commands from the next two. Am I correct in this thinking?
08-04-2009, 08:29 AM #2
You don't need the serial!
08-04-2009, 08:44 AM #3
- Join Date
- Feb 2003
- Charlotte, NC
- Thanked 1 Time in 1 Post
You will need the first serial you have specified if you want to track the return code from the first 2 backup stg commands run in parallel. I believe Toxy13 is saying if you don't care about the return code from the first 2 parallel commands, you can just issue another parallel and the 2nd set of backup stg commands. Personally, I always put the serial in just to better indicate to others that the prior set is supposed to complete successfully before next set of parallel commands.
08-05-2009, 03:24 AM #4
- Join Date
- Feb 2007
- Brisbane, Australia
- Thanked 3 Times in 3 Posts
Serial causes it to wait for all the parallels you started just beforehand.
I wasn't aware that a parallel would also cause it to wait for the processes before to finish - I am not sure if that is true or not to be honest, maybe toxy misunderstood. But I haven't tested it so I guess its possible.
As Eldoraan said, better to leave it in as its more "self documenting" and makes it easier for people to understand.
By zoetaite44 in forum Administrative ClientReplies: 10Last Post: 06-10-2009, 02:39 AM
By tsmhelum in forum Performance TuningReplies: 4Last Post: 11-21-2008, 01:07 PM
By lecurel in forum TSM ServerReplies: 1Last Post: 03-27-2008, 01:54 PM
By rmarkarian in forum ScriptingReplies: 7Last Post: 01-30-2008, 10:20 PM
By tsteuver in forum ScriptingReplies: 1Last Post: 06-15-2006, 12:48 PM