Amanda-Users

Re: Issues with tape changers

2004-07-14 14:27:12
Subject: Re: Issues with tape changers
From: Gaby vanhegan <gaby AT vanhegan DOT net>
To: Gene Heskett <gene.heskett AT verizon DOT net>
Date: Wed, 14 Jul 2004 19:16:01 +0100

On 14 Jul 2004, at 16:48, Gene Heskett wrote:

Now, the confusion in setting up chg-scsi seems to be mainly
centered around how you specify the tape device, both in
amanda.conf and in chg-scsi.conf.  Or at least that was the
source of my confusion early on.

OK, having looked at your files and changed my own, I'm still no closer. I now get this:

bash-2.05b# sudo -u operator /usr/local/sbin/amcheck ltsn
Amanda Tape Server Host Check
-----------------------------
Holding disk /home/amanda/holding: 47180616 KB disk space available, that's plenty amcheck-server: could not get changer info: open: /dev/ch0: Bad file descriptor

Can anyone see any problems with these rrelevant portions of amanda.conf:

runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-scsi"    # the tape-changer glue script
tapedev "0"             # the no-rewind tape device to be used
rawtapedev "/dev/null"  # the raw device to be used (ftape only)
changerfile "/usr/local/etc/amanda/ltsn/chg-scsi.conf"
#changerdev "/dev/ch0"

maxdumpsize -1 # Maximum number of bytes the planner will schedule
                        # for a run (default: runtapes * tape_length).
tapetype DLT            # what kind of tape it is (see tapetypes below)
labelstr "^ltsn[0-9][0-9]*$" # label constraint regex: all tapes must match

amrecover_do_fsf yes            # amrecover will call amrestore with the
# -f flag for faster positioning of the tape.
amrecover_check_label yes       # amrecover will call amrestore with the
                                # -l flag to check the label.
amrecover_changer "chg-scsi" # amrecover will use the changer if you restore
                                # from this device.
# It could be a string like 'changer' and
                                # amrecover will use your changer if you
                                # set your tape with 'settape changer'

And chg-scsi.conf:

# chg-scsi for Dell Power Vault 120T
number_configs  1   # Only 1 configuration

eject           1           # Tapedrives need an eject command
sleep           90          # Seconds to wait until the tape gets ready
cleanmax 100 # How many times could a cleaning tape get used
debug           9:0         # High debug level please
scsitapedev     /dev/nrst0  # Non-rewinding tape device
changerdev      /dev/ch0    # Jukebox changer

# Configuration 0
config          0           # ID for this configuration
drivenum        0           # Use drive id 0
dev /dev/nrst0 # the device that is used for the tapedrive 0
startuse        0           # The slots associated with the drive 0
enduse          6           # Final slot to use
statfile /usr/local/etc/amanda/ltsn/chg-scsi-slot # The file where the actual slot is stored usagecount /usr/local/etc/amanda/ltsn/totaltime # Statistics file

Gaby

--
Uganda Maximum - Enemy of the English Thrust
gaby AT vanhegan DOT net
http://weblog.vanhegan.net


<Prev in Thread] Current Thread [Next in Thread>