* Re: Forcing BACKUP to use a single tape
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
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Larry Kilgallen @ 1999-01-04 5:00 UTC (permalink / raw)
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.
Are you sure you had all Tape Operator terminals disabled
when you had no tape operators on duty ? With a quick
test using REQUEST rather than BACKUP, I get:
$ request/reply/to=tape "Testing"
%OPCOM-S-OPRNOTIF, operator has been notified, waiting... 12:22:25.82
%OPCOM-S-OPREPLY,
%%%%%%%%%%% OPCOM 4-JAN-1999 12:22:25.82 %%%%%%%%%%%
No operator coverage for request 4
$
Larry Kilgallen
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Forcing BACKUP to use a single tape
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
` (2 more replies)
1999-01-06 5:00 ` Tim Llewellyn
1999-01-10 5:00 ` George Cornelius
3 siblings, 3 replies; 11+ messages in thread
From: Hoff Hoffman @ 1999-01-04 5:00 UTC (permalink / raw)
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.
Interesting, the OpenVMS Wizard was just asked this question....
Here is what the Wizard will probably have to say on this topic:
--
There is no readily available mechanism to disable the use of continuation
volumes within BACKUP.
BACKUP to an intermediate file, size it, then send it out to tape? (Or
pre-size the data, and estimate if it will fit on the tape?) (Remember
to account for the redundency information added to the data by BACKUP.)
MOUNT with /NOAUTOMATIC and /NOASSIST, and/or with a process that detects
and responds to the operator request with the equivilent of a REPLY/ABORT?
Acquire a magazine tape drive (loader), or a tape drive with sufficient
archival capacity on a single piece of media for the job?
--
I have passed the question along to the BACKUP maintainers as an enhancement
request. (The REPLY/ABORT approach is nothing if not ugly...)
-------------------------- pure personal opinion ---------------------------
Hoff (Stephen) Hoffman OpenVMS Engineering hoffman@xdelta.ZZenet.dec.com
note to those folks not contributing spam -- there is no ZZ in my address
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Forcing BACKUP to use a single tape
1999-01-04 5:00 ` Hoff Hoffman
@ 1999-01-05 5:00 ` Chris Sharman
1999-01-06 5:00 ` Dale Dellutri
1999-01-06 5:00 ` Carl Karcher
2 siblings, 0 replies; 11+ messages in thread
From: Chris Sharman @ 1999-01-05 5:00 UTC (permalink / raw)
Hoff Hoffman wrote:
>
> 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 have passed the question along to the BACKUP maintainers as an enhancement
> request. (The REPLY/ABORT approach is nothing if not ugly...)
Yes, REPLY/ABORT is ugly, but it's what we've used for years. I think my
'nightwatchman' program even made it onto a DECUS tape many years ago.
Basically, create a pseudoterminal, use $sndopr to make yourself an
operator, and read & process the OPCOM messages as they come in.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forcing BACKUP to use a single tape
1999-01-04 5:00 ` Hoff Hoffman
1999-01-05 5:00 ` Chris Sharman
@ 1999-01-06 5:00 ` Dale Dellutri
1999-01-06 5:00 ` Carl Karcher
2 siblings, 0 replies; 11+ messages in thread
From: Dale Dellutri @ 1999-01-06 5:00 UTC (permalink / raw)
In comp.os.vms Hoff Hoffman <hoffman@xdelta.enet.dec.nospam> wrote:
> 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.
> Interesting, the OpenVMS Wizard was just asked this question....
> Here is what the Wizard will probably have to say on this topic:
> There is no readily available mechanism to disable the use of continuation
> volumes within BACKUP.
...
> I have passed the question along to the BACKUP maintainers as an enhancement
> request.
Could you also ask them to add a /STATISTICS qualifier similar to the one
for SORT? I'd love to know number of blocks actually written to the save
set, etc, so I could do a better job of guessing how much of the tape I'm
using.
--
Dale Dellutri - ddellutr@mcs.net
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forcing BACKUP to use a single tape
1999-01-04 5:00 ` Hoff Hoffman
1999-01-05 5:00 ` Chris Sharman
1999-01-06 5:00 ` Dale Dellutri
@ 1999-01-06 5:00 ` Carl Karcher
1999-01-07 5:00 ` Chris Sharman
2 siblings, 1 reply; 11+ messages in thread
From: Carl Karcher @ 1999-01-06 5:00 UTC (permalink / raw)
In a previous article, ddellutr@MCS.COM (Dale Dellutri) wrote:
->Could you also ask them to add a /STATISTICS qualifier similar to the one
->for SORT? I'd love to know number of blocks actually written to the save
->set, etc, so I could do a better job of guessing how much of the tape I'm
->using.
You should be able to get a reasonable estimate by taking the difference in
the IO operation count (F$GETDVI("MKAnnn","OPCNT")) before and after the backup
command, multiply that by the block size (in bytes) of the save set then divide
by 512. Or:
saveset_blocks = (OpCnt[after] - OpCnt[before]) * blocksize/512
If you use /VERIFY then divide by 2. The result has been fairly close in my
observations (at least back in VMS V6.2, I've not checked V7.1). Of course,
if your tape drive does compression that will introduce another variable if
your goal is estimating actual tape usage.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Forcing BACKUP to use a single tape
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
0 siblings, 2 replies; 11+ messages in thread
From: Chris Sharman @ 1999-01-07 5:00 UTC (permalink / raw)
Carl Karcher wrote:
>
> In a previous article, ddellutr@MCS.COM (Dale Dellutri) wrote:
>
> ->Could you also ask them to add a /STATISTICS qualifier similar to the one
> ->for SORT? I'd love to know number of blocks actually written to the save
> ->set, etc, so I could do a better job of guessing how much of the tape I'm
> ->using.
>
> You should be able to get a reasonable estimate by taking the difference in
> the IO operation count (F$GETDVI("MKAnnn","OPCNT")) before and after the backup
> command, multiply that by the block size (in bytes) of the save set then divide
> by 512. Or:
>
> saveset_blocks = (OpCnt[after] - OpCnt[before]) * blocksize/512
>
> If you use /VERIFY then divide by 2. The result has been fairly close in my
> observations (at least back in VMS V6.2, I've not checked V7.1). Of course,
> if your tape drive does compression that will introduce another variable if
> your goal is estimating actual tape usage.
Yes, the drive itself would have to make stats available on how much
compression had been achieved, and the /STAT qualifier would need to
pass that on. It would be a very useful addition. It would be nice if
there were an option to put the stats into DCL symbols etc, so that
automated backups could easily take action based on the values (eg tape
nearly full).
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Forcing BACKUP to use a single tape
1999-01-07 5:00 ` Chris Sharman
@ 1999-01-07 5:00 ` Tim Llewellyn
1999-01-11 5:00 ` Chris Sharman
1 sibling, 0 replies; 11+ messages in thread
From: Tim Llewellyn @ 1999-01-07 5:00 UTC (permalink / raw)
Chris Sharman wrote:
>
> Yes, the drive itself would have to make stats available on how much
> compression had been achieved, and the /STAT qualifier would need to
> pass that on. It would be a very useful addition. It would be nice if
> there were an option to put the stats into DCL symbols etc, so that
> automated backups could easily take action based on the values (eg tape
> nearly full).
yes please, this area of VMS is quite weak and difficult to script.
I guess the problem is doing it right, it wouldn't make VMS many friends
if it started reporting 125% full tapes and the like.
--
Tim Llewellyn.
Home: Tim.Llewellyn@cableinet.co.uk Work: Tim.Llewellyn@bbc.co.uk
Standard disclaimer applies. My views in no way represent those of
my employers or service provider.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forcing BACKUP to use a single tape
1999-01-07 5:00 ` Chris Sharman
1999-01-07 5:00 ` Tim Llewellyn
@ 1999-01-11 5:00 ` Chris Sharman
1 sibling, 0 replies; 11+ messages in thread
From: Chris Sharman @ 1999-01-11 5:00 UTC (permalink / raw)
> Carl Karcher wrote:
> > You should be able to get a reasonable estimate by taking the difference in
> > the IO operation count (F$GETDVI("MKAnnn","OPCNT")) before and after the backup
> > command, multiply that by the block size (in bytes) of the save set then divide
> > by 512. Or:
> >
> > saveset_blocks = (OpCnt[after] - OpCnt[before]) * blocksize/512
> >
> > If you use /VERIFY then divide by 2. The result has been fairly close in my
> > observations (at least back in VMS V6.2, I've not checked V7.1). Of course,
> > if your tape drive does compression that will introduce another variable if
> > your goal is estimating actual tape usage.
Thanks for this, it appears plausible on 7.1 with our TZ87, but of
course it's not
much use with most modern drives doing compression: we're getting 14Gb
of data onto
our 10Gb tape, using compression, and who knows how full it really is,
or when we'll
need to budget for a replacement. Back to Compaq for a way to get the
information,
or even a rough estimate ...
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forcing BACKUP to use a single tape
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-06 5:00 ` Tim Llewellyn
1999-01-10 5:00 ` George Cornelius
3 siblings, 0 replies; 11+ messages in thread
From: Tim Llewellyn @ 1999-01-06 5:00 UTC (permalink / raw)
Martin Platts wrote:
> 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.
>
I had this problem when I joined my current project. I will not bore you with
backup
scare stories, but several sites were, depending on the time of the month,
database
maintenenance schedule etc, running onto a second tape for the daily backup.
Some
sites, the users were locked out while the second tape ran, meaning they
couldn't
start work untill that tape had been loaded, written, verified etc. At least
they got
a good backup, they just started work later. Other sites did not have user
lockout, their
backups were barely useful (I did some restores from the old scripts but luckily
after
I had been in and added a few essential backup tweaks).
My solution was to buy larger capacity tape drives, and fair-do's, the
management
went for it. My biggest systems run at about 10 gig so a single drive was
adequate,
otherwise I'd have gone for an autoloaded I guess.
That is the only way you will get a decent full backup every night anyway.
> Martin Platts
> Cheshire Datasystems Ltd.
--
Tim Llewellyn, OpenVMS System Manager, Remarcs Project
MedAS at the BBC, Whiteladies Road, Bristol, UK.
Email tim.llewellyn@bbc.co.uk. Home tim.llewellyn@cableinet.co.uk
My work email is not working reliably at present.
I speak for myself only and my views in no way represent those of
MedAS or the BBC.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forcing BACKUP to use a single tape
1999-01-04 5:00 Forcing BACKUP to use a single tape Martin Platts
` (2 preceding siblings ...)
1999-01-06 5:00 ` Tim Llewellyn
@ 1999-01-10 5:00 ` George Cornelius
3 siblings, 0 replies; 11+ messages in thread
From: George Cornelius @ 1999-01-10 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 11+ messages in thread