
Operating OnLine 3-53
Change Pathname of Archive Tape Device
If you change the pathname to /dev/null, the change proceeds more
smoothly if you make the change while OnLine is offline. If TAPEDEV is set
to /dev/null, you cannot perform a restore.
The tape device specified by the pathname must perform a rewind before
opening and on closing.
If you are logged in as user informix, you can change the value of
TAPEDEV
from within DB-Monitor or from the command line. If you are logged in as
root, you must use the command-line option.
Preliminary Considerations
Tape devices must rewind before opening and on closing to be compatible
with OnLine operation. The reason for this is a series of checks that OnLine
performs before writing to a tape.
Whenever OnLine attempts to write to any tape other than the first tape in a
multivolumebackup or archive,OnLine first readsthe tape headertoensure
the tape isavailable foruse. Thenthe deviceis closedand reopened. OnLine
assumes the tape was rewound on closing and begins to write.
Whenever OnLine attempts to read atape, it first reads the header and looks
for the correct information. OnLine cannot find the correct header infor-
mation at the start of the tape if the tape device did not rewind on closing
during the write process.
Createa level-0archive immediately after you change the valueof TAPEDEV
to ensure a proper restore. This is done for two reasons.
First, the OnLinerestore procedure cannot switch tapedevices asit attempts
to read the archive tapes. If the physical characteristics of the archive tapes
change during therestore,either because ofa new blocksizeor tape size, the
restore fails.
Second,therestorefailsif the tape devicespecifiedasTAPEDEV atthetimeof
the level-0 archive is unavailable when the restore begins.
Important: At the beginning of a restore, the OnLine configuration, including
archivedevices,must reflect the configurationasit was whenthelevel-0 archive was
created.
Komentarze do niniejszej Instrukcji