I'm hoping that somebody out there with more experience with setting up
chg-scsi could help point out the cause of my misconfiguration. In
attempting to use chg-scsi on my 15-tape changer, I suffer from the
following errors:
[EMAIL PROTECTED]:/usr/local/etc/amanda/daily$ amcheck daily
Amanda Tape Server Host Check
-----------------------------
Holding disk /ambackup/daily: 109239520 KB disk space available, that's
plenty
amcheck-server: could not get changer info: check your config and use an
config file for chg-scsi
Amanda Backup Client Hosts Check
--------------------------------
Client check: 15 hosts checked in 0.988 seconds, 0 problems found
(brought to you by Amanda 2.4.3b2)
[EMAIL PROTECTED]:/usr/local/etc/amanda/daily$
Similar command calls direct to chg-scsi (such as -status robot) results
in the same errors. The only working command is "chg-scsi -genconf",
which I used to create a configuration file, chg-scsi.conf. This config
file is owned by the ambackup users with appropriate read/write perms:
-rw-r--r-- 1 ambackup ambackup 2564 Jul 28 15:06 chg-scsi.conf
When running the chg-scsi command, the entire debug output consists of:
chg-scsi: debug 1 pid 92238 ruid 10080 euid 10080 start time Mon Jul 28
16:55:52 2003
chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.2 2001/12/30 17:26:22
martinea Exp $
ARG [0] : /usr/local/libexec/amanda/chg-scsi
ARG [1] : -info
My amanda.conf file is configured to point at this config file location.
Attached are the chg-scsi.conf and amanda.conf files.
I am using Amanda 2.4.4 on FreeBSD 4.8-STABLE.
Thanks in advance!
--
Joshua D. Bello <[EMAIL PROTECTED]>
Systems Administrator
Nextrials, Inc. +1-925-415-8957
#$Id: amanda.conf,v 1.10 2003/07/25 17:49:53 josh Exp $
org "nextrials" # your organization name for reports
mailto "[EMAIL PROTECTED]" # space separated list of operators at your site
dumpuser "ambackup" # the user to run dumps under
inparallel 4 # maximum dumpers that will run in parallel (max 63)
# this maximum can be increased at compile-time,
# modifying MAX_DUMPERS in server-src/driverio.h
dumporder "sssS" # specify the priority order of each dumper
# s -> smallest size
# S -> biggest size
# t -> smallest time
# T -> biggest time
# b -> smallest bandwitdh
# B -> biggest bandwitdh
# try "BTBTBTBTBTBT" if you are not holding
# disk constrained
netusage 600000 Kbps # maximum net bandwidth for Amanda, in KB per sec
dumpcycle 7 days # the number of days in the normal dump cycle
runspercycle 7 # the number of amdump runs in dumpcycle days
# (6 weeks * 7 amdump runs per week -- just weekdays)
tapecycle 45 tapes # the number of tapes in rotation
# 6 weeks (dumpcycle) times 7 tapes per week
# plus a few to handle errors that
# need amflush and so we do not overwrite the full
# backups performed at the beginning of the previous
# cycle
bumpsize 500 Mb # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1 # minimum days at each level
bumpmult 4 # threshold = bumpsize * bumpmult^(level-1)
etimeout 300 # number of seconds per filesystem for estimates.
#etimeout -600 # total number of seconds for estimates.
dtimeout 1800 # number of idle seconds before a dump is aborted.
ctimeout 30 # maximum number of seconds that amcheck waits
# for each client host
tapebufs 20
runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-scsi" # the tape-changer glue script
tapedev "/dev/nsa0" # the no-rewind tape device to be used
rawtapedev "/dev/nrsa0" # the raw device to be used (ftape only)
changerfile "/usr/local/etc/amanda/daily/chg-scsi.conf"
changerdev "/dev/ch0"
tapetype SDLT320 # what kind of tape it is (see tapetypes below)
labelstr "^DAILY[0-9][0-9][0-9][0-9]*$" # label constraint regex: all tapes must match
holdingdisk hd1 {
comment "main holding disk"
directory "/ambackup/daily" # where the holding disk is
use 100Gb # how much space can we use on it
# a non-positive value means:
# use all space but that value
chunksize 5Gb # size of chunk if you want big dump to be
# dumped on multiple files on holding disks
# N Kb/Mb/Gb split images in chunks of size N
# The maximum value should be
# (MAX_FILE_SIZE - 1Mb)
# 0 same as INT_MAX bytes
}
autoflush no
infofile "/usr/local/etc/amanda/nextrials/curinfo" # database DIRECTORY
logdir "/usr/local/etc/amanda/nextrials/logs" # log directory
indexdir "/usr/local/etc/amanda/nextrials/index" # index directory
define tapetype SDLT320 {
comment "SDLT1 160/320"
length 153794 mbytes # 160Gb tapes
filemark 13 kbytes # generated with amtapetype
speed 16 mbytes # manually corrected from amtapetype
}
define dumptype global {
comment "Global definitions"
}
define dumptype always-full {
global
comment "Full dump of this filesystem always"
compress none
priority high
dumpcycle 0
}
define dumptype root-tar {
global
program "GNUTAR"
comment "root partitions dumped with tar"
compress none
index yes
exclude list "/usr/local/lib/amanda/exclude.gtar"
priority low
}
define dumptype user-tar {
root-tar
comment "user partitions dumped with tar"
priority medium
}
define dumptype high-tar {
root-tar
comment "partitions dumped with tar"
priority high
}
define dumptype holdingdisk-tar {
root-tar
comment "partitions dumped with tar"
priority high
exclude "./ambackup" # need to exclude the holding disk but not other
# stuff on the filesystem (10.24.02 unfurl)
}
define dumptype comp-root-tar {
root-tar
comment "Root partitions with compression"
compress client fast
}
define dumptype comp-user-tar {
user-tar
compress client fast
}
define dumptype holding-disk {
global
comment "The master-host holding disk itself"
holdingdisk no # do not use the holding disk
priority medium
}
define dumptype comp-user {
global
comment "Non-root partitions on reasonably fast machines"
compress client fast
index yes
priority medium
}
define dumptype nocomp-user {
comp-user
comment "Non-root partitions on slow machines"
index yes
compress none
}
define dumptype comp-root {
global
comment "Root partitions with compression"
compress client fast
index yes
priority low
}
define dumptype nocomp-root {
comp-root
comment "Root partitions without compression"
index yes
compress none
}
define dumptype comp-high {
global
comment "very important partitions on fast machines"
compress client best
index yes
priority high
}
define dumptype comp-holdingdisk {
global
comment "for holdinddisk only"
compress client best
index yes
priority high
holdingdisk no
}
define dumptype nocomp-high {
comp-high
comment "very important partitions on slow machines"
index yes
compress none
}
define dumptype nocomp-test {
global
comment "test dump without compression, no /etc/dumpdates recording"
compress none
record no
priority medium
}
define dumptype comp-test {
nocomp-test
comment "test dump with compression, no /etc/dumpdates recording"
index yes
compress client fast
}
define interface local {
comment "a local disk"
use 1000 kbps
}
define interface fxp0 {
comment "100 Mbps ethernet"
use 10000000000 kbps
}
number_configs 0 # Number of configs, you can have more than 1 config
# if you have for example more than one drive, or you
# to split your lib to use different dump levels
#
emubarcode 0 # If you drive has no barcode reader this will try
# keep an inventory of your tapes to find them faster
#
havebarcode 1 # Set this to 1 if you have an library with an installed
# barcode reader
#
debuglevel 7:7 # For debuging, see the docs /docs/TAPE-CHANGER
#
eject 1 # set this to 1 if your drive needs an eject before move
#
sleep 5 # How long to wait after an eject command before moving
# the tape
#
changerdev 0:6:0 # This is the device to communicate with the robot
#
# Here now comes the config for the first tape
config 0 # This value is the one which is used in the amanda
# config file to tell the chg-scsi programm which tape
# and which slots to use
#
drivenum 0 # Which tape drive to use if there are more than one drive
#
dev /dev/nrsa0 # Which is the raw device to read/write data from the tape
# It is important to use the non rewinding tape, like
# /dev/nrst0 on linux, /dev/nrsa0 on BSD ....
#
scsitapedev 0:4:0 # This is the device to communicate with the tape
# to get some device stats, not so importatn, and
# if you run in problems delete it complete
#
startuse 0 # Which is the first slot to use
#
enduse 14 # Which is the last slot to use
# decrement this value by 1 if you have an
# cleaning tape in the last slot
#
statfile /usr/local/libexec/amanda/tape0-slot #
cleanfile /usr/local/libexec/amanda/tape0-clean #
usagecount /usr/local/libexec/amanda/tape0-totaltime #
tapestatus /usr/local/libexec/amanda/tape0-tapestatus #
labelfile /usr/local/libexec/amanda/labelfile #