jukebox or stacker, to mount a tape (insert it into the tape reader). The
operator must write the routine to invoke the mount command specified by
the device's manufacturer; AFS does not include any scripts, although an
-example appears in L<EXAMPLES>. The script or program inherits the Tape
+example appears in L</EXAMPLES>. The script or program inherits the Tape
Coordinator's AFS authentication status.
When the Tape Coordinator needs to mount a tape, it checks the
jukebox or stacker, to unmount a tape (remove it from the tape reader).
The operator must write the routine to invoke the unmount command
specified by the device's manufacturer; AFS does not include any scripts,
-although an example appears in L<EXAMPLES>. The script or program
+although an example appears in L</EXAMPLES>. The script or program
inherits the Tape Coordinator's AFS authentication status.
After closing a tape device, the Tape Coordinator checks the configuration
The administrator includes the following five lines in the
F</usr/afs/backup/CFG_stacker0.1> file. To review the meaning of each
-instruction, see L<DESCRIPTION>.
+instruction, see L</DESCRIPTION>.
MOUNT /usr/afs/backup/stacker0.1
UNMOUNT /usr/afs/backup/stacker0.1
set tries = $3
set tapename = $4
set tapeid = $5
-
+
set exit_continue = 0
set exit_abort = 1
set exit_interactive = 2
-
+
#--------------------------------------------
-
+
if (${tries} > 1) then
echo "Too many tries"
exit ${exit_interactive}
endif
-
+
if (${operation} == "unmount") then
echo "UnMount: Will leave tape in drive"
exit ${exit_continue}
endif
-
+
if ((${operation} == "dump") |\
(${operation} == "appenddump") |\
(${operation} == "savedb")) then
-
+
stackerCmd_NextTape ${devicefile}
if (${status} != 0)exit${exit_interactive}
echo "Will continue"
exit ${exit_continue}
endif
-
+
if ((${operation} == "labeltape") |\
(${operation} == "readlabel")) then
echo "Will continue"
exit ${exit_continue}
endif
-
+
echo "Prompt for tape"
exit ${exit_interactive}
The administrator includes the following lines in the
F</usr/afs/backup/CFG_HSM_device> file. To review the meaning of each
-instruction, see L<DESCRIPTION>.
+instruction, see L</DESCRIPTION>.
MOUNT /usr/afs/backup/file
FILE YES
set exit_continue = 0
set exit_abort = 1
set exit_interactive = 2
-
+
#--------------------------------------------
-
+
if (${tries} > 1) then
echo "Too many tries"
exit ${exit_interactive}
endif
-
+
if (${operation} == "labeltape") then
echo "Won't label a tape/file"
exit ${exit_abort}
endif
-
+
if ((${operation} == "dump") |\
(${operation} == "appenddump") |\
(${operation} == "restore") |\
(${operation} == "savedb") |\
(${operation} == "restoredb")) then
-
+
/bin/rm -f ${devicefile}
/bin/ln -s /hsm/${tapename}_${tapeid} ${devicefile}
if (${status} != 0) exit ${exit_abort}
endif
-
+
exit ${exit_continue}
Like the example routine for a tape stacker, this routine uses the