e58ba16f92489c83c076dbbde9805851e427842c
[debian/amanda] / example / chg-mcutil.conf
1 # config file for the chg-mcutil tape changer program.
2 # Used when tpchanger "chg-mcutil" is specified in amanda.conf.
3
4 # chg-mcutil is mainly designed for use with Compaq TRU64.
5 # chg-mcutil uses a binary program called `mcutil`, a Media
6 # changer manipulation utility.  mcutil comes installed with
7 # TRU64 5.0x & above.  However, with TRU64 4.0x, it can be
8 # located on one of the Associated Product CDs.
9
10 # A few OS commands that this script relies on to function
11 # correctly.  Please make sure they exist, and are in the 
12 # $PATH:
13 #
14 # date, cut, tr, cat, expr, grep, awk
15 #
16
17 # Before you can use chg-mcutil within amanda, you need
18 # to make sure that `mcutil` can see, and interact with your
19 # tape changer.  You need to be able to successfully run the
20 # following:
21 #
22 # mcutil -e drive
23 # mcutil -e slot
24 # mcutil -m drive slot:#
25 # mcutil -m slot:# drive
26 #
27
28 mcutil mcutil           #location of the mcutil program
29 tape tape:/dev/YOUR-TAPE-DEVICE-HERE    # use ntape for norewind
30                         # {a|m|h|c} suffixes should NOT 
31                         # be tape device since they all
32                         # implement hardware compression
33
34 # What are the slot numbers of the tape changer as reported by mcutil?
35 firstslot 0
36 lastslot 6
37
38 # Do you want amanda to determine when you should clean the tape drive?
39 use_cleaning 0          # 0 for yes ; 1 for no
40 cleanslot 7             # slot containing the cleaning disk
41 cleansleep 300          # How long to wait before the cleaning tape finishes (default: 5 min)
42 cleanme 45              # number of days before messages popup to clean tape drive
43 cleanfile /etc/amanda/changer/times_cleaned
44 lastfile /etc/amanda/changer/last_cleaned
45
46 # Names a status file where the current 'changer' state is stored.
47 currentslot /etc/amanda/changer/currentslot
48
49 # Where to log changer debugging info
50 logfile /tmp/amanda/changer.debug
51
52
53 # To determine what slot is currently used, I query the drive itself.
54 # /sbin/mcutil -e drive
55 # With a Tape : drive 0 [full,access,source=256]  16
56 # Without Tape: drive 0 [empty,access]  16
57 #
58 # each slot has a source number assigned to it.  I subtract slot 0's source num from the output.
59 # If the number is less than 0, no tape is in the drive, else it outputs the current slot number.
60 #
61 # slot 0 [full,access,source=256] 256
62 # slot 1 [full,access,source=257] 257
63 # slot 2 [full,access,source=258] 258
64 # slot 3 [full,access,source=259] 259
65 #
66 slot0source 256         # run /sbin/mcutil -e slot to determine slot0 source number.