Results 1 to 4 of 4
  1. #1
    Newcomer eFinity's Avatar
    Join Date
    Oct 2009
    Location
    istanbul
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Reclamation Automation

    Hi,

    I wrote a script to automate the reclamation process on TSM running on AIX. Script queries the STGs that have volumes with PCTUtil below 10%.


    Here is the script:

    #!/bin/ksh
    dsmadmc -id=USERID -pa=PWD -dataonly=yes "select distinct e1.STGPOOL_NAME from volumes e1, libvolumes e2 where e1.volume_name=e2.volume_name and e1.status='FULL' and e1.PCT_UTILIZED < 10 order by e1.STGPOOL_NAME desc" > /home/SCRIPTS/rcl.txt

    for i in $(cat /home/SCRIPTS/rcl.txt | awk '{ print $1}')

    do

    echo "THIS WILL BE THE COMMAND: reclaim stg $i th=90"

    dsmadmc -id=USERID -pa=PWD "reclaim stg $i th=90"

    done



    I also defined a client schedule for tsm server node for the script to run every 8 hours.

    The problem with the script is if there is no STG returned from the sql command or there is a job for the returned STG going on, script generates error.

    I hope it also works for you and also hope someone can help me with the error messages.

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

    Default

    Why are you only reclaiming full volumes? And you should use the %reclaim value rather than %used.

    And why not just set the reclamation thresholds to what you want all the time if thats what you want. Otherwise have a schedule update the stgpool thresholds at the time you want to run reclamation.

    So not really sure what this script does that couldn't be done in a much simpler way.

  3. #3
    Newcomer eFinity's Avatar
    Join Date
    Oct 2009
    Location
    istanbul
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It's my choise. I have copy pool process and not enough drives. And since I only look for full volumes, PCT_Util = 100 - PCT_Reclaim.

  4. #4
    Member
    Join Date
    Jul 2008
    Posts
    286
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Me, i have define a script :
    PARRALLEL
    reclaim stg stgpool_name thres=%
    reclaim stg stgpool_name2 thres=%
    ...

    and a script to stop reclaim
    upd stg stgpool_name thres=100
    upd stg stgpool_name2 thres=100
    ...

Similar Threads

  1. journal base backup automation
    By jbautista in forum Backup / Archive Discussion
    Replies: 1
    Last Post: 09-16-2009, 03:09 PM
  2. Flash Copy automation
    By KAPIL TYAGI in forum Others
    Replies: 0
    Last Post: 06-25-2007, 02:24 AM
  3. More Automation help
    By Streetpm in forum Disaster Recovery Module
    Replies: 1
    Last Post: 05-04-2007, 09:27 AM
  4. How to keep password in file for script automation
    By JosephW.J. in forum Administrative Client
    Replies: 4
    Last Post: 09-22-2006, 04:53 AM
  5. Automation - Client Schedules -> How to execute automatic schedules ?
    By megabrasil in forum Backup / Archive Discussion
    Replies: 3
    Last Post: 03-28-2006, 09:03 AM

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
  •