From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,16ff1895fcd3e20a X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,16ff1895fcd3e20a X-Google-Attributes: gid1164f8,public From: Chris Sharman Subject: Re: Forcing BACKUP to use a single tape Date: 1999/01/07 Message-ID: <369475DD.77FDB7F1@CCAgroup.co.uk>#1/1 X-Deja-AN: 429738716 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: ccastat.demon.co.uk:158.152.158.126 References: <770g0e$cum$1@Jupiter.mcs.net> <915462197.27308.0.nnrp-08.c2d97cc4@news.demon.co.uk> <76rg1r$5u1@usenet.pa.dec.com> <6JAN99.22550250@thuria.waisman.wisc.edu> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 915699137 nnrp-06:13157 NO-IDENT ccastat.demon.co.uk:158.152.158.126 Organization: CCA Group MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec 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).