Disabling automatic processes and setting schedules
Disable automatic processes like inventory expiration, migration, reclamation, and identification of duplicate data and set up schedules so that you can control when these operations are completed during the daily schedule.
About this task
Procedure
- Disable automatic inventory expiration by setting the EXPINTERVAL server
option to zero.
setopt expinterval 0 - Disable automatic migration and reclamation processes by
using the DEFINE STGPOOL command to set the HIGHMIG and RECLAIM parameters
to a value of 100. You might have to increase the number of allowed processes for migration and reclamation in order for them to complete in a reasonable amount of time. The actual number of processes depends on available tape drives. If you have already defined storage pools, you can change values for the MIGPROCESS and RECLAIMPROCESS parameters by using the UPDATE STGPOOL command.
def devc LARGEFILE devt=file mountlimit=500 maxcap=20480m dir=/tsmfile def stg FILEPOOL LARGEFILE maxscratch=200 reclaim=100 hi=100 lo=0 migpr=4 reclaimpr=20 next=tapepool -
If you have storage pools that are defined with data deduplication enabled, disable the
duplicate identification processes:
def stg FILEPOOL LARGEFILE maxscratch=200 reclaim=100 hi=100 lo=0 dedup=yes identifypr=0 migpr=4 reclaimpr=4
What to do next
- Example: Setting a schedule for the client backup window
- This example initiates an incremental backup of all associated nodes in the STANDARD domains.
-
The schedule starts daily at 8:00 PM by using server-prompted scheduling mode. The long-running schedules continue past the duration, so a shorter duration can be used to force those schedules to start close to the beginning of the start window.
def schedule standard nightly_backups description="Nightly backups of nodes in domain standard" starttime=20:00 duration=5 durunits=hours period=1 perunits=days
- Example: Setting up the server maintenance schedule
- Schedule server maintenance operations to run outside of the client backup window, with as little overlap as possible.
-
You can control the timing of schedules for maintenance tasks by setting the start time in combination with the duration time for each operation. Here is an example of how you might time each process:
- 08:00 - end
- Storage pool backup.
- 11:00 to 13:00
- Identification of duplicates.
- 13:00 - 15:00
- Inventory expiration.
- 14:00 - 16:00
- Storage pool migration.
- 16:00 - 18:00
- Reclamation processing.
- 18:00 - end
- Database backup, including volume history and device configuration backup.
- 20:00 - end
- Client backup.
After you determine a timeline, use the DEFINE SCHEDULE command to create schedules for each process. You can include scripts in each schedule so that commands are processed automatically. Use the DEFINE SCRIPT command to create a script and the UPDATE SCRIPT command to add lines.
The following scripts are examples of how to define each server task:- Storage pool backup
-
/*--------------------------------------*/ /* Storage Pool Backup */ /*--------------------------------------*/ def script STGBACKUP "/* Run stg pool backups */" upd script STGBACKUP "backup stg archivepool copypool maxproc=4 wait=yes" line=005 upd script STGBACKUP "backup stg backuppool copypool maxproc=4 wait=yes" line=010 upd script STGBACKUP "backup stg filepool copypool maxproc=4 wait=yes" line=020 upd script STGBACKUP "backup stg filepool2 copypool maxproc=4 wait=yes" line=025 upd script STGBACKUP "backup stg tapepool copypool maxproc=3 wait=yes" line=030 def sched STGBACKUP type=admin cmd="run STGBACKUP" active=yes desc="Run all stg pool backups." \ startdate=today starttime=08:00:00 dur=45 duru=minutes per=1 peru=day commit
- Identification of duplicates
-
/*--------------------------------------*/ /* Deduplication */ /*--------------------------------------*/ def script DEDUP "/* Run identify duplicate processes. */" upd script DEDUP "identify duplicates FILEPOOL numpr=4 duration=120" \ line=010 upd script DEDUP "identify duplicates FILEPOOL2 numpr=2 duration=120" \ line=015 def sched DEDUP type=admin cmd="run DEDUP" active=yes desc="Run identify duplicates." \ startdate=today starttime=11:00:00 dur=45 duru=minutes per=1 peru=day commit
- Inventory expiration
-
/*--------------------------------------*/ /* Expiration /*--------------------------------------*/ def script EXPIRE "/* Run expiration processes. */" upd script EXPIRE "expire inventory wait=yes duration=120" line=010 def sched EXPIRATION type=admin cmd="run expire" active=yes desc="Run expiration." \ startdate=today starttime=13:00:00 dur=45 duru=minutes per=1 peru=day commit
- Storage pool migration
-
/*--------------------------------------*/ /* Storage Pool Migration */ /*--------------------------------------*/ def script MIGRATE "/* Run stg pool migration */" upd script MIGRATE "migrate stg archivepool duration=30 wait=yes" line=005 upd script MIGRATE "migrate stg backuppool duration=30 wait=yes" line=010 upd script MIGRATE "migrate stg filepool2 duration=60 wait=yes" line=015 def sched MIGRATE type=admin cmd="run MIGRATE" active=yes desc="Migrate data to tape pools ." \ startdate=today starttime=14:00 dur=45 duru=minutes per=1 peru=day commit
- Reclamation processing
-
/*--------------------------------------*/ /* Storage Pool Reclamation */ /*--------------------------------------*/ def script RECLAIM "/* Run stg pool reclamation */" upd script RECLAIM "reclaim stg filepool threshold=40 duration=120 wait=yes" line=005 upd script RECLAIM "reclaim stg filepool2 threshold=40 duration=120 wait=yes" line=008 upd script RECLAIM "reclaim stg tapepool threshold=60 duration=60 wait=yes" line=010 def sched RECLAIM type=admin cmd="run RECLAIM" active=yes desc="Reclaim space from FILEPOOL and TAPEPOOL." \ startdate=today starttime=16:00 dur=45 duru=minutes per=1 peru=day commit
- Database backup, including volume history and device configuration backup
-
/*--------------------------------------*/ /* Database Backup */ /*--------------------------------------*/ def script DBBACKUP "/* Run DB backups */" upd script DBBACKUP "backup db devc=ts3310devc type=full wait=yes" line=005 upd script DBBACKUP "backup volhist" line=010 upd script DBBACKUP "backup devconf" line=015 def sched DBBACKUP type=admin cmd="run DBBACKUP" active=yes desc="Run database backup." \ startdate=today starttime=18:00:00 dur=45 duru=minutes per=1 peru=day commit