Technical article 127625

I'm unable to use tape file marks on OpenServer 6 to write multiple volume backups to a single tape.

OpenServer 6.0.0

Written · Last revised

Problem

I'm trying to follow article TA103180 - "Storing multiple archives or backups onto a single cartridge tape.", but I'm only able to store a single archive on a tape.

Cause

The I/O control tape device /dev/xct0 incorrectly rewinds the tape, nullifying the use of tape file marks.

Additionally, there is a bug in /bin/tar which rewinds the tape upon opening also nullifying the use of tape file marks.

Solution

Both of these problems have been reported to SCO Engineering.

To correct the I/O control device to stop the rewinding behavior, edit the file /etc/scsi/mkdev.d/qtape1 and change the xctU line from:

M       0+M     0666    -       xctU
to:
M       1+M     0666    -       xctU

The system will need to be rebooted before this change will take effect.

Alternatively, edit /etc/default/tape and set the default tape device from:

device=/dev/xct0
to:
device=/dev/rmt/ntape0

There is no need to reboot when making this change.

To workaround the problem with /bin/tar, use either /bin/cpio, or /usr/gnu/bin/tar.

To use cpio to store multiple archives to a single tape as discussed in TA103180, use this syntax:

# tape rewind
# find /test1 | cpio -ocv -O /dev/rmt/ntape0
# tape wfm
# find /test2 | cpio -ocv -O /dev/rmt/ntape0
# tape wfm
# find /test3 | cpio -ocv -O /dev/rmt/ntape0
# tape wfm

To read the contents of the multi-session tape, you would use:

# tape rewind
# cpio -icvt -I /dev/rmt/ntape0
# tape rfm
# cpio -icvt -I /dev/rmt/ntape0
# tape rfm
# cpio -icvt -I /dev/rmt/ntape0

The /usr/gnu/bin/tar command uses similar syntax to /bin/tar, however, for further information see `/usr/gnu/bin/tar --help`.

See also

TA103180 - "Storing multiple archives or backups onto a single cartridge tape."

From the Xinuos technical article database, record 127625. Reproduced with permission. The original is at www.sco.com/ta/127625, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.