Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Use of 'mt' For Multiple Archiving On TZ875 Tape Loader
@ 1997-04-02  5:00 Scott Sanbeg
  1997-04-04  5:00 ` Andy St Martin
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Sanbeg @ 1997-04-02  5:00 UTC (permalink / raw)



Hello,

The OS in question is OSF/1 v3.2c 148 Alpha.

How do you currently write multiple archives to a single tape?
I have written a script that essentially uses find in conjunction
with cpio in order to have incremental backups made.  The tape
loader we use (in Subject:) has hardware compression installed,
and so we have the capacity for 20GB per tape.  If I backed up
yesterday, I would want to seek to the end of the recorded
media, write a file mark and then add a new cpio archive after
that file mark.

However, DEC mt does not seem to work well - there appears to
be no erase, no 'eom' and no filemark writes or seeks that
work.

Also, /usr/include/sys/mtio.h defines many operations but
there is no apparent method for loading and unloading tapes.
Well, the loader will accept a 'mt unload' and will actually
do it, but it is not possible to put the loader or any tape
online again.

Help would be appreciated,
Scott
-- 
Scott Sanbeg                       INTERNET: ssanbeg@interglobe.com
InterGlobe Networks, Inc.          OFFICE: 206.623.2222
1520 Fourth Avenue, Suite 200      FAX: 206.623.0885
Seattle, WA  98101                 INFO: info@interglobe.com
This is my opinion and mine alone. URL: http://www.interglobe.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use of 'mt' For Multiple Archiving On TZ875 Tape Loader
  1997-04-02  5:00 Use of 'mt' For Multiple Archiving On TZ875 Tape Loader Scott Sanbeg
@ 1997-04-04  5:00 ` Andy St Martin
  0 siblings, 0 replies; 2+ messages in thread
From: Andy St Martin @ 1997-04-04  5:00 UTC (permalink / raw)



In article <3342C3B0.5C02@interglobe.com>,
Scott Sanbeg  <ssanbeg@interglobe.com> wrote:
>How do you currently write multiple archives to a single tape?

The workstation at my desk is running Digital UNIX v4.0b.  However,
I think what I say will apply to v3.2c as well.

If you want to write multiple archives to tape, be sure to use
the "no-rewind" tape device, e.g. /dev/nrmt0h.  A sequence like
the following (note, I typically use tar instead of cpio):

    mt rew; tar cf /dev/nrmt0h dir1; tar cf /dev/nrmt0h dir2
 
will place 2 tar archives sequentially on the tape.

Generally, it is not necessary to worry about writing tape marks
to the tape.  The tape device driver will do this for you.

There is an "seod" command to Digital's "mt".  The man page says it
positions the tape to the end of recorded data.  Unfortunately, it
positions the tape past the last file marks on the medium.  Typically,
you would want your archives to be separated by a single tape mark.
The end of medium is conventionally represented by 2 adjacent file
marks.  Through experimentation,  I found the following to work on my
system.

    Session 1:  tar cf /dev/nrmt0h dir1
    Session 2:  mt -f /dev/nrmt0h seod
	        mt -f /dev/nrmt0h bsf 2
	        tar cf /dev/nrmt0h dir2

You can then read the archives with sequential tar commands.

    mt rew; tar tvf /dev/nrmt0h; tar tvf /dev/nrmt0h

Digital has a utility called MRU (Media Robot Utility) that can be
used to load/unload specific tapes in a loader to the drive.  If the
TZ875 was purchased recently, a CDROM with MRU is packed with the drive.
Otherwise, contact your Digital Sales Rep. to get MRU.

Using MRU, mt, the no-rewind tape device, and tar/cpio.  It is very
possible to append several tape archives to a single tape with the TZ875
DLT loader.

Andy St.Martin
stmartin@stmart.cxo.dec.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-04-04  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-02  5:00 Use of 'mt' For Multiple Archiving On TZ875 Tape Loader Scott Sanbeg
1997-04-04  5:00 ` Andy St Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox