1 # config file for the chg-mcutil tape changer program.
2 # Used when tpchanger "chg-mcutil" is specified in amanda.conf.
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.
10 # A few OS commands that this script relies on to function
11 # correctly. Please make sure they exist, and are in the
14 # date, cut, tr, cat, expr, grep, awk
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
24 # mcutil -m drive slot:#
25 # mcutil -m slot:# drive
28 mcutil @MCUTIL@ #location of the mcutil program
29 tape @EXAMPLE_TAPEDEV@ # use ntape for norewind
30 # {a|m|h|c} suffixes should NOT
31 # be tape device since they all
32 # implement hardware compression
34 # What are the slot numbers of the tape changer as reported by mcutil?
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 @CONFIG_DIR@/changer/times_cleaned
44 lastfile @CONFIG_DIR@/changer/last_cleaned
46 # Names a status file where the current 'changer' state is stored.
47 currentslot @CONFIG_DIR@/changer/currentslot
49 # Where to log changer debugging info
50 logfile @AMANDA_DBGDIR@/changer.debug
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
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.
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
66 slot0source 256 # run /sbin/mcutil -e slot to determine slot0 source number.