From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ada0cc8420ad3c40 X-Google-Attributes: gidfee84,public 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 Message-ID: <5i3a0t$9r2@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 230702267 References: <3342C3B0.5C02@interglobe.com> Organization: Digital Equipment Corp. Newsgroups: comp.unix.osf.osf1 In article <3342C3B0.5C02@interglobe.com>, Scott Sanbeg 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