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 readAnother error that may come up, depending on which filemark you are trying to access, is:
Reached end of medium on inputwith 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