Results 1 to 4 of 4
-
08-04-2009, 08:15 AM #1Newcomer
- Join Date
- Aug 2009
- Posts
- 1
- Thanks
- 0
- 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:
parallel
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
serial
parallel
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
serial
/* 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?
Thanks much,
Bob
-
08-04-2009, 08:29 AM #2
You don't need the serial!
-
08-04-2009, 08:44 AM #3Senior Member
- Join Date
- Feb 2003
- Location
- Charlotte, NC
- Posts
- 288
- Thanks
- 0
- 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 #4Moderator
- Join Date
- Feb 2007
- Location
- Brisbane, Australia
- Posts
- 2,072
- Thanks
- 0
- 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.
Similar Threads
-
Maintenance script fails
By zoetaite44 in forum Administrative ClientReplies: 10Last Post: 06-10-2009, 02:39 AM -
Daily TSM maintenance Script
By tsmhelum in forum Performance TuningReplies: 4Last Post: 11-21-2008, 01:07 PM -
ANR8442E - Maintenance Script
By lecurel in forum TSM ServerReplies: 1Last Post: 03-27-2008, 01:54 PM -
Administrative Maintenance tasks with shell script
By rmarkarian in forum ScriptingReplies: 7Last Post: 01-30-2008, 10:20 PM -
Command or script to see if Maintenance is complete
By tsteuver in forum ScriptingReplies: 1Last Post: 06-15-2006, 12:48 PM


Reply With Quote
