Here's how i wait on a  process to finish. Basically i query the process and
if it's still running i re-spawn the schedule for ten minutes later. If you
have any questions please let me know.

john
[EMAIL PROTECTED] 
----------------------------------------------------------------------------
--
/*DAILY*/
/*backup db*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run daily" active=yes startd=today
startt=now+00:10 exp=today
exit
cont:
backup db dev=bakdrive type=full wait=yes
def schedule chkproc cmd="run Script1" active=yes startd=today
startt=now+00:10 exp=today
exit
/* End of DAILY*/

/*SCRIPT1*/
/*Expire data bkup stg backup\archive pools*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run script1" active=yes startd=today
startt=now+00:10 exp=today
exit
cont:
def schedule chkproc cmd="run backupstg" active=yes startd=today
startt=now+00:10 exp=today
expire inventory
exit
/*End of SCRIPT1*/

/*Backupstg*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run backupstg" active=yes startd=today
startt=now+00:10 exp=today
exit
cont:
backup stg backuppool copypool
/*End of Backupstg*/


-----Original Message-----

Date:    Sun, 19 May 2002 00:31:18 -0500
From:    Roger Deschner <[EMAIL PROTECTED]>
Subject: Script timing issue with MOVE DATA WAIT=YES

This is a tsm script: (AIX 4.2.1.9)

  MOVE DATA $1 WAIT=YES
  COMMIT
  UPDATE LIBVOL ATLP3000 $1 STATUS=PRIVATE

The idea is, when moving data off of tapes that I suspect have media
problems, to avoid having the tape become an available scratch tape and
get reused. MOVE DATA can take a long time, and I might not see when it
completes. I might not even be awake. The problem is that I get the
following error message:

ANR8442E UPDATE LIBVOLUME: Volume CPM642 in library ATLP3000 is
currently in use.

The tape is still mounted according to QUERY MOUNT, because it is
rewinding, unloading, and being put away in its slot by my robotic
friend inside the library.

Either:

1. There is some kind of SLEEP command for scripts that I am
overlooking.

2. There is a bug in MOVE DATA WAIT=YES in that it does not wait for the
tape to rewind and unload and get put away by the robot.

Roger Deschner      University of Illinois at Chicago     [EMAIL PROTECTED] 

------------------------------

Reply via email to