Results 1 to 4 of 4
  1. #1
    Newcomer
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Senior Member toxy13's Avatar
    Join Date
    Sep 2003
    Location
    Leipzig
    Posts
    739
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You don't need the serial!

  3. #3
    Senior Member
    Join Date
    Feb 2003
    Location
    Charlotte, NC
    Posts
    288
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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.

  4. #4
    Moderator BBB's Avatar
    Join Date
    Feb 2007
    Location
    Brisbane, Australia
    Posts
    2,075
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    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

  1. Maintenance script fails
    By zoetaite44 in forum Administrative Client
    Replies: 10
    Last Post: 06-10-2009, 02:39 AM
  2. Daily TSM maintenance Script
    By tsmhelum in forum Performance Tuning
    Replies: 4
    Last Post: 11-21-2008, 01:07 PM
  3. ANR8442E - Maintenance Script
    By lecurel in forum TSM Server
    Replies: 1
    Last Post: 03-27-2008, 01:54 PM
  4. Administrative Maintenance tasks with shell script
    By rmarkarian in forum Scripting
    Replies: 7
    Last Post: 01-30-2008, 10:20 PM
  5. Replies: 1
    Last Post: 06-15-2006, 12:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •