From: cornelius@eisner.decus.org (George Cornelius)
Subject: Re: Forcing BACKUP to use a single tape
Date: 1999/01/10 [thread overview]
Message-ID: <1999Jan10.050912.1@eisner> (raw)
In-Reply-To: 915462197.27308.0.nnrp-08.c2d97cc4@news.demon.co.uk
In article <915462197.27308.0.nnrp-08.c2d97cc4@news.demon.co.uk>, "Martin Platts" <Martin.Platts@XYZZY.Cheshdatasys.co.uk> writes:
> Anyone have any ideas on forcing backup to stop a backup and return an error
> code to the calling DCL batch job rather than asking for a 2nd tape via
> OPCOM?
>
> I need to backup financial data which needs to be backed up all in one go -
> not with several hours gap in between tapes and its better to fail than wait
> endlessly for a new tape. I tried with /NOASSIST but it ignores it on batch.
According to the online help under VMS 6.2, /NOASSIST is ignored if
SYS$COMMAND is not a terminal device. I suppose you could set up a
pseudoterm device which would do nothing but return EOF (CTRL/Z) to
any read, something that would require reading up on pseudoterms and
writing a few pages of code (although there are some public domain
pseudoterm programs around that would reduce the effort to something
quite reasonable).
Of course, there's another idea - use $ SPAWN/NOWAIT to spawn the backup
as a subprocess, and have the parent process kill the subprocess if it
stops or almost stops doing I/O to the tape device for an extended period
of time (as determined by watching I/O counts at the process or device level).
Nowadays, reel switch behavior can be difficult to debug because it
takes so long to fill up a reel or in some cases even to skip to the
final EOF. Gone are the days when you could play with the location
of the reflective spot on a 9-track reel to effectively create a shorter
tape. With DLT's and fast skip mode enabled I suppose you could create
a test reel (or many of them) from a single file that fills most of a tape
and test via $ BACKUP/NOREWIND . You would have to recreate test reels
after using them, though, or would need each test to look something like
$ MOUNT/FOREIGN dev: ; SET MAGTAPE dev:/SKIP=FILE:3 ; <back up 1 filemark>
; SET MAGTAPE dev:/END_OF_FILE ; <repeat> ; <back up 1 filemark> ; BACKUP
infiles dev:saveset/NOREWIND/NOASSIST .
--
George Cornelius cornelius@eisner.decus.org
cornelius@mayo.edu
> Martin Platts
> Cheshire Datasystems Ltd.
prev parent reply other threads:[~1999-01-10 5:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-04 5:00 Forcing BACKUP to use a single tape Martin Platts
1999-01-04 5:00 ` Larry Kilgallen
1999-01-04 5:00 ` Hoff Hoffman
1999-01-05 5:00 ` Chris Sharman
1999-01-06 5:00 ` Carl Karcher
1999-01-07 5:00 ` Chris Sharman
1999-01-07 5:00 ` Tim Llewellyn
1999-01-11 5:00 ` Chris Sharman
1999-01-06 5:00 ` Dale Dellutri
1999-01-06 5:00 ` Tim Llewellyn
1999-01-10 5:00 ` George Cornelius [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox