Results 1 to 4 of 4
Thread: Reclamation Automation
-
12-17-2009, 08:39 AM #1
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.
-
12-17-2009, 08:49 AM #2Moderator
- Join Date
- Feb 2007
- Location
- Brisbane, Australia
- Posts
- 2,072
- Thanks
- 0
- Thanked 3 Times in 3 Posts
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.
-
12-17-2009, 09:58 AM #3
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.
-
12-18-2009, 03:42 AM #4Member
- Join Date
- Jul 2008
- Posts
- 286
- Thanks
- 1
- Thanked 0 Times in 0 Posts
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
-
journal base backup automation
By jbautista in forum Backup / Archive DiscussionReplies: 1Last Post: 09-16-2009, 03:09 PM -
Flash Copy automation
By KAPIL TYAGI in forum OthersReplies: 0Last Post: 06-25-2007, 02:24 AM -
More Automation help
By Streetpm in forum Disaster Recovery ModuleReplies: 1Last Post: 05-04-2007, 09:27 AM -
How to keep password in file for script automation
By JosephW.J. in forum Administrative ClientReplies: 4Last Post: 09-22-2006, 04:53 AM -
Automation - Client Schedules -> How to execute automatic schedules ?
By megabrasil in forum Backup / Archive DiscussionReplies: 3Last Post: 03-28-2006, 09:03 AM


Reply With Quote
