Re: ontape back-up/restore to remote device
Posted in 1997
John Miller wrote:
>
> Neil:
>
> On a restore the tape is open, read to verify that it has the correct
> information,
> closed to reposition at the begin of the tape, then re-openned. If the
> close
> did not get completed by the tape device by the time the open is issued any
> subsequent reads fail. There is an easy solution to this(if I remeber my
> shell script):
>
> 1. Create a shell script (lets say /work/bin/tape_wait.sh)
> #!/bin/sh
> /usr/bin/sleep 60; rsh $*
>
> 2. now in you ontape environment set DBREMOTECMD
> to /work/bin/tape_wait.sh
>
> Hope this helps,
> John Miller
Thanks John. I had subsequently worked out that the problem was the
/dev/rmt/0n (no rewind) device. It works fine with /dev/rmt/0.
Informix tech. support told me that this was tough - ie , even on a 40G
DLT tape, you can only have one OnLine archive, and it must be the first
archive on the tape.
I'm not at work, so I can't look up DBREMOTECMD, which I've never used!
Regards
Neil