Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: stmartin@stmart.cxo.dec.com (Andy St Martin)
Subject: Re: Use of 'mt' For Multiple Archiving On TZ875 Tape Loader
Date: 1997/04/04	[thread overview]
Message-ID: <5i3a0t$9r2@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 3342C3B0.5C02@interglobe.com


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



      reply	other threads:[~1997-04-04  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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