On Mon, Jul 28, 2003 at 08:57:24PM -0400, Gene Heskett wrote:
> The *real* tapedev(ice) is specified in chg-scsi.conf, here in
> amanda.conf, the proper useage is a number from 0 to whatever, that
> represents the index number of the configurations present in
> chg-scsi.conf. It can contain more than one set of specs, and you
> must specify here, which it is to use from the (possible) choices in
> chg-scsi.conf.
> As I only have one config spelled out in chg-scsi.conf, it is tapedev
> "0" in my amanda.conf.
Thank you very much for the assistance. I went ahead and modified my
amanda.conf as per your suggestions.
> chg-scsi.conf should start out resembling this:
<snip>
Thanks again, I also modified my scsi-conf file to more closely model
yours. I no longer experience amanda commands / scsi-conf bombing out
on errors, on the contrary, it will now hang when I run typical amanda
commands. For example:
[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
Then wait, wait, wait, nada. Process is still running, although idle.
The debug logfile yields:
amcheck: debug 1 pid 83814 ruid 10080 euid 0 start time Tue Jul 29
16:40:52 2003
amcheck: dgram_bind: socket bound to 0.0.0.0.874
changer: got exit: 0 str: 5 15 1 0
changer_query: changer return was 15 1 0
changer_query: searchable = 0
changer_find: looking for NULL changer is searchable = 0
Attached are the updated config files. Thanks again in advance, my
excitement at switching from an old manually changed DLT7000 to this new
SDLT changer is starting to fade to frustration...
--
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 "0" # 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
}
#$Id:$
# Global options
number_configs 1
havebarcode 1
debuglevel 9:9
eject 1
sleep 15
changerdev 0:6:0
# Configuration 0 options
config 0
drivenum 0
dev /dev/nrsa0
scsitapedev 0:4:0
startuse 0
enduse 14
statfile /usr/local/etc/amanda/daily/chg-stat/tape0-slot #
cleanfile /usr/local/etc/amanda/daily/chg-stat/tape0-clean #
usagecount /usr/local/etc/amanda/daily/chg-stat/tape0-totaltime #
tapestatus /usr/local/etc/amanda/daily/chg-stat/tape0-tapestatus #
labelfile /usr/local/etc/amanda/daily/chg-stat/labelfile #