From d096400dfa4a8dc790424337b77ac3541aa518af Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 23 Dec 2005 10:16:25 +0000 Subject: [PATCH] Final changes --- docs/manual/autochangers.tex | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/docs/manual/autochangers.tex b/docs/manual/autochangers.tex index e05fb068..869866d3 100644 --- a/docs/manual/autochangers.tex +++ b/docs/manual/autochangers.tex @@ -465,7 +465,6 @@ Any slot containing a barcode of CLNxxxx will be treated as a cleaning tape and will not be mounted. \label{Magazines} - \subsection*{Dealing with Multiple Magazines} \index[general]{Dealing with Multiple Magazines } \index[general]{Magazines!Dealing with Multiple } @@ -483,7 +482,11 @@ remove a cartridge from the magazine, simply do \footnotesize \begin{verbatim} +unmount +(remove magazine) +(insert new magazine) update slots +mount \end{verbatim} \normalsize @@ -502,9 +505,10 @@ alternatives. \begin{enumerate} \item You can manually set the Slot and InChanger flag using the {\bf update volume} command in the Console (quite painful). + \item You can issue a - \footnotesize +\footnotesize \begin{verbatim} update slots scan \end{verbatim} @@ -514,12 +518,12 @@ update slots scan the magazine in turn and update the information (Slot, InChanger flag) in the catalog. This is quite effective but does take time to load each cartridge into the drive in turn and read the Volume label. + \item You can modify the mtx-changer script so that it simulates an autochanger with barcodes. See below for more details. - \end{enumerate} +\end{enumerate} \label{simulating} - \subsection*{Simulating Barcodes in your Autochanger} \index[general]{Autochanger!Simulating Barcodes in your } \index[general]{Simulating Barcodes in your Autochanger } @@ -646,11 +650,10 @@ following commands (assuming that the {\bf mtx-changer} script is installed in \begin{description} \item [Make sure Bacula is not running.] - \index[sd]{Make sure Bacula is not running. } \item [/etc/bacula/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0 - } +\index[sd]{mtx-changer list} + This command should print: \footnotesize @@ -671,28 +674,28 @@ if {\bf /dev/sg0} is incorrect. For example, on FreeBSD systems, the autochanger SCSI control device is generally {\bf /dev/pass2}. \item [/etc/bacula/mtx-changer \ /dev/sg0 \ slots \ 0 \ /dev/nst0 \ 0] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ slots \ 0 \ /dev/nst0 \ 0 - } +\index[sd]{mtx-changer slots} + This command should return the number of slots in your autochanger. \item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ ] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ } +\index[sd]{mtx-changer unload} + If a tape is loaded, this should cause it to be unloaded. \item [/etc/bacula/mtx-changer \ /dev/sg0 \ load \ 3 \ /dev/nst0 \ 0 ] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ load \ 3 \ /dev/nst0 \ 0 - } +\index[sd]{mtx-changer load} + Assuming you have a tape in slot 3, it will be loaded into the read slot (0). \item [/etc/bacula/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ 0] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ - 0 } +\index[sd]{mtx-changer loaded} + It should print "3" \item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload] - \index[sd]{/etc/bacula/mtx-changer \ /dev/sg0 \ unload } - \end{description} +\end{description} Once all the above commands work correctly, assuming that you have the right {\bf Changer Command} in your configuration, Bacula should be able to operate -- 2.39.5