Technical article 110068

After storing multiple backups onto a single tape, I sometimes see the error "I/O error on read" or "end of medium" when trying to read the backup.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

After storing multiple backups onto a single DAT tape, I sometimes see this error when trying to read the backup:

I/O error on read

Another error that may come up, depending on which filemark you are trying to access, is:

Reached end of medium on input

with the request that you switch to the next tape.

Cause

It is not necessary to issue a "tape wfm" command after each
backup to the no-rewind tape device.  Some tape firmware
interprets two filemarks in a row as an "end of medium" message.

Solution

Tape hardware automatically writes a filemark after each cpio or
tar command.  It is not necessary to issue a "tape wfm" as part
of your backup script.

Using cpio(C) as an example, here's how you can easily back up three user filesystems using a SCSI tape device on an OpenServer 5 system:

find /u1 -print | cpio -ocvB -O/dev/nrStp0
find /u2 -print | cpio -ocvB -O/dev/nrStp0
find /u3 -print | cpio -ocvB -O/dev/nrStp0
tape rewind

From the Xinuos technical article database, record 110068. Reproduced with permission. The original is at www.sco.com/ta/110068, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.