Page last modified 21:22, 20 Apr 2006 by Ppragin?

Sample Amanda configuration using a Tape Library with Barcodes

Table of contents
No headers

Version as of 11:10, 19 May 2024

to this version.

Return to Version archive.

View current version

Use the comand amserverconfig DailySet1 --template hardisk to create the overall config structure that you can later modify with the information below:


/etc/amanda/DailySet1/amanda.conf:

org "Zmanda"              # your organization name for reports,
mailto "root@localhost" # space separated list of operators at your site
dumpcycle 7 # the number of days in the normal dump cycle
runspercycle 5 # the number of amdump runs in dumpcycle days
tapecycle 25 # the number of tapes in rotation
runtapes 1 # number of tapes to be used in a single run of amdump
tpchanger "chg-zd-mtx" # the tape-changer glue script
tapedev "/dev/nst0" # the no-rewind tape device
changerfile "/etc/amanda/DailySet1/changer.conf" # tape changer configuration parameter file
changerdev "/dev/sg2" # tape changer configuration parameter device
tapetype DLT # what kind of tape it is
labelstr "^DailySet1-[0-9][0-9]*$" # label constraint regex: all tapes must match
dtimeout 1800 # number of idle seconds before a dump is aborted
ctimeout 30 # max number of secconds amcheck waits for each client
etimeout 300 # number of seconds per filesystem for estimates
includefile "advanced.conf" #this is a way to break up amanda.conf in to separate file to make it easier to read and manage
includefile "/etc/amanda/template.d/dumptypes" #this is a way to break up amanda.conf in to separate file to make it easier to read and manage
includefile "/etc/amanda/template.d/tapetypes" #this is a way to break up amanda.conf in to separate file to make it easier to read and manage

These are the lines that need to be modified in /etc/amanda/DailySet1/advanced.conf:
amrecover_changer "/dev/sg2" # amrecover will use the changer if you restore

These are the lines that need to be modified in /etc/amanda/template.d/tapetypes:

define tapetype DLT {
comment "DLT tape drives"
length 20000 mbytes # 20 Gig tapes
filemark 2000 kbytes # I don't know what this means
speed 1536 kbytes # 1.5 Mb/s
}

Create a /etc/amanda/DailySet1/changer.conf file:
havereader=1 #add this line to file to enable barcode use for amanda

Execute amtape DailySet1 update and all the tape labels vs barcodes will appear in the /etc/amanda/DailySet1/changer-barcodes file