From 458c004ac83988a89f3d4880035ee740e5bc59c9 Mon Sep 17 00:00:00 2001 From: Philippe Chauvat Date: Thu, 24 Oct 2013 17:16:34 +0200 Subject: [PATCH] The path to the mtx-changer script has been modified accordingly to the Bacula Enterprise directory tree: /opt/bacula/scripts/mtx-changer --- docs/manuals/en/main/autochangerres.tex | 2 +- docs/manuals/en/main/autochangers.tex | 32 ++++++++++++------------ docs/manuals/en/main/storedconf.tex | 2 +- docs/manuals/en/problems/tapetesting.tex | 2 +- docs/manuals/en/problems/tips.tex | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/manuals/en/main/autochangerres.tex b/docs/manuals/en/main/autochangerres.tex index dcaa4bed..04e99e42 100644 --- a/docs/manuals/en/main/autochangerres.tex +++ b/docs/manuals/en/main/autochangerres.tex @@ -65,7 +65,7 @@ Autochanger { Name = "DDS-4-changer" Device = DDS-4-1, DDS-4-2, DDS-4-3 Changer Device = /dev/sg0 - Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" + Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" } Device { Name = "DDS-4-1" diff --git a/docs/manuals/en/main/autochangers.tex b/docs/manuals/en/main/autochangers.tex index 010b5f1f..f1ac7839 100644 --- a/docs/manuals/en/main/autochangers.tex +++ b/docs/manuals/en/main/autochangers.tex @@ -333,7 +333,7 @@ of the Bacula distribution) is: \footnotesize \begin{lstlisting} -Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" +Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" \end{lstlisting} \normalsize @@ -388,7 +388,7 @@ Autochanger { Name = "Autochanger" Device = DDS-4 Changer Device = /dev/sg0 - Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" + Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" } Device { @@ -418,7 +418,7 @@ Autochanger { Name = "Autochanger" Device = Drive-1, Drive-2 Changer Device = /dev/sg0 - Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" + Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" } Device { @@ -699,13 +699,13 @@ autochanger testing. Before attempting to use the autochanger with Bacula, it is preferable to "hand-test" that the changer works. To do so, we suggest you do the following commands (assuming that the {\bf mtx-changer} script is installed in -{\bf /etc/bacula/mtx-changer}): +{\bf /opt/bacula/scripts/mtx-changer}): \begin{description} \item [Make sure Bacula is not running.] -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ list \ 0 \ /dev/nst0 \ 0] \index[sd]{mtx-changer list} This command should print: @@ -727,7 +727,7 @@ you must resolve the problem (e.g. try a different SCSI control device name 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 \ listall \ 0 \ /dev/nst0 \ 0] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ listall \ 0 \ /dev/nst0 \ 0] \index[sd]{mtx-changer listall} This command should print: @@ -752,28 +752,28 @@ This command should print: \end{lstlisting} \normalsize -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ transfer \ 1 \ 2] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ transfer \ 1 \ 2] \index[sd]{mtx-changer listall} This command should transfer a volume from source (1) to destination (2) -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ slots ] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ slots ] \index[sd]{mtx-changer slots} This command should return the number of slots in your autochanger. -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ 1 \ /dev/nst0 \ 0 ] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ unload \ 1 \ /dev/nst0 \ 0 ] \index[sd]{mtx-changer unload} If a tape is loaded from slot 1, this should cause it to be unloaded. -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ load \ 3 \ /dev/nst0 \ 0 ] +\item [/opt/bacula/scripts/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 drive (0). -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ 0] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ loaded \ 0 \ /dev/nst0 \ 0] \index[sd]{mtx-changer loaded} It should print "3" @@ -782,7 +782,7 @@ ignored because the slot number is not used. However, it must be specified because the drive parameter at the end of the command is needed to select the correct drive. -\item [/etc/bacula/mtx-changer \ /dev/sg0 \ unload \ 3 /dev/nst0 \ 0] +\item [/opt/bacula/scripts/mtx-changer \ /dev/sg0 \ unload \ 3 /dev/nst0 \ 0] will unload the tape into slot 3. @@ -805,8 +805,8 @@ commands into a file and running it as a script: \footnotesize \begin{lstlisting} #!/bin/sh -/etc/bacula/mtx-changer /dev/sg0 unload 1 /dev/nst0 0 -/etc/bacula/mtx-changer /dev/sg0 load 3 /dev/nst0 0 +/opt/bacula/scripts/mtx-changer /dev/sg0 unload 1 /dev/nst0 0 +/opt/bacula/scripts/mtx-changer /dev/sg0 load 3 /dev/nst0 0 mt -f /dev/st0 rewind mt -f /dev/st0 weof \end{lstlisting} @@ -827,9 +827,9 @@ unload so that the script looks like: \footnotesize \begin{lstlisting} #!/bin/sh -/etc/bacula/mtx-changer /dev/sg0 unload 1 /dev/nst0 0 +/opt/bacula/scripts/mtx-changer /dev/sg0 unload 1 /dev/nst0 0 mt -f /dev/st0 offline -/etc/bacula/mtx-changer /dev/sg0 load 3 /dev/nst0 0 +/opt/bacula/scripts/mtx-changer /dev/sg0 load 3 /dev/nst0 0 mt -f /dev/st0 rewind mt -f /dev/st0 weof \end{lstlisting} diff --git a/docs/manuals/en/main/storedconf.tex b/docs/manuals/en/main/storedconf.tex index 7d984c22..8e09c964 100644 --- a/docs/manuals/en/main/storedconf.tex +++ b/docs/manuals/en/main/storedconf.tex @@ -1326,7 +1326,7 @@ Autochanger { Name = Autochanger Device = Drive-1 Device = Drive-2 - Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d" + Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg0 } diff --git a/docs/manuals/en/problems/tapetesting.tex b/docs/manuals/en/problems/tapetesting.tex index 6cca9b6c..72f76785 100644 --- a/docs/manuals/en/problems/tapetesting.tex +++ b/docs/manuals/en/problems/tapetesting.tex @@ -1011,7 +1011,7 @@ Device { AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; - Changer Command = "/usr/local/sbin/mtx-changer %c %o %S %a %d" + Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/pass2 AutoChanger = yes Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" diff --git a/docs/manuals/en/problems/tips.tex b/docs/manuals/en/problems/tips.tex index 01543573..908cb501 100644 --- a/docs/manuals/en/problems/tips.tex +++ b/docs/manuals/en/problems/tips.tex @@ -944,7 +944,7 @@ Device { Archive Device = # use yours not mine! ;)/dev/nsa0 Changer Device = # not really required/dev/nsa0 Changer Command = "# use this (maybe change the path)! - /usr/local/bin/mtx-changer %o %a %S" + /opt/bacula/scripts/mtx-changer %o %a %S" Maximum Changer Wait = 3d # 3 days in seconds AutomaticMount = yes; # mount on start AlwaysOpen = yes; # keep device locked -- 2.39.5