To all I resoved my problem by scheduling a checkout as some of you suggest.
Here the script: (DRM_OUT) backup db devclass=scalarclass type=dbs wait=yes backup devconfig backup volhistory delete schedule checkout t=a define schedule checkout t=a cmd='run checkout_offsite' startt=now+00:18 dur=15 duru=m per=1 peru=o active=yes Here is the CHECKOUT_OFFSITE script: move media * stg=sca_drm wherestatus=full,filling wherestate=mountableinlib ovflocation="OFFSITE" remove=bulk checklabel=no move drmedia * source=dbs wherestate=mountable tostate=vault remove=bulk delete schedule checkout t=a Regards Robert Ouzen P.S Thanks for the response ........ -----Original Message----- From: William Boyer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 2:20 AM To: [EMAIL PROTECTED] Subject: Re: Delay on script Would the MOUNTRetention for his DEVClass be what's happening here? The BA DB command completes, but TSM keeps the tape mounted for MOUNTR minutes. The checkout won't work if the tape is mounted. Maybe, like was suggested previously, the script could schedule the checkout command for NOW+MOUNTR from now? That would give TSM time to dismount the tape before checking it out. Bill Boyer DSS, Inc. "Backup my harddrive? How do I put it in reverse?" - ?? -----Original Message----- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Stapleton Sent: Monday, November 19, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: Re: Delay on script On Fri, 16 Nov 2001 10:45:18 +0200, it was written: >I wrote a script to make a Database Snapshot (with wait=yes) and a >checkout of this tape. My problem is the command checkout run before >the tape is dismount. Is it a delay command I can use in my script or >an other idea ......... Why don't you publish that script for us here? The wait=yes should guarantee that the dbs run should finish before it goes to the next step in the batch file. -- Mark Stapleton ([EMAIL PROTECTED])
