automate reclamation

adsm04

ADSM.ORG Member
Joined
Jul 11, 2006
Messages
99
Reaction score
0
Points
0
Website
Visit site
Hi we are using TSM 5.1 and 5.2 and carry out reclamation on a daily basis. Is there a way to automate reclamation using scripts? if so plz let me regarding the same!!
 
So all i have to do is put the command " update stgpool tape_pool=90" in TSM schedules and this should take care of the reclamation where the treshold is set to 90% ??
 
Ideally for reclaimation This would be a good practice.



1.Create Script for doing the below steps from 2 (This would be simple txt file where Set of TSM commands are entered and define in TSM using define scr Scriptname file=Filepath) & put it in schedule



2.Run your Offsite Copy jobs



3. Expire your Inventory



4. Start reclaimation with following command( reclaim stgpool Stgpool name threshold=90)



If all these are put in a single script , it would yield maximum effectiveness. All this to be done durin your NON-backup window.



Regards

Shamin
 
You could also include a loop that checks for running reclamations and then steps down the percentage:



for ($x=96; $x>60; $x=$x-5) {

update stgpool thispool reclaim=$x

$done = FALSE

do while ! $done

sleep 120

select recl_running,recl_volume from stgpools where stgpool_name=thispool

if (/^[Nn]Oo]/) {

$done = TRUE

print "reclamation at $x percent complete for thispool"

}else}

print "Reclaiming thispool at $x percent"

}

}

# continue to next percentage

}





Or something of the sort

cheers,

Neil
 
Back
Top