Subject: Re: amanda and tape changers
To: Tim Rightnour <root@garbled.net>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-users
Date: 08/18/1999 17:23:17
[ On Wednesday, August 18, 1999 at 14:05:36 (-0700), Tim Rightnour wrote: ]
> Subject: amanda and tape changers
>
> I have an exabyte 10e changer, with an 8500 drive in it..  I have only two
> tapes in the device right now.. so I tried setitng the device to only use two
> tapes.. (the tapes are in slot 0 and 1)  I've also tried the conf file with all
> slots enabled.. etc etc..

I've got an EXB-10e with 8505 drive, so very similar.  This
configuration is actually in production and working great:

----- relevant part from /etc/amanda/DailySet1/amanda.conf -----
runtapes 5		# number of tapes to be used in a single run of amdump
tpchanger "chg-scsi"	# the tape-changer interface program
tapedev "0"		# the first config entry from changerfile is used
changerfile "/etc/amanda/DailySet1/changer.conf"
changerdev "/dev/ch0"	# also specified in changerfile
rawtapedev "/dev/rst0"	# the raw device to be used (ftape only)
    
tapetype EXB-8505	# what kind of tape it is (see tapetypes below)
labelstr "^DailySet1-Vol[0-9][0-9]*$"	# label constraint regex: all tapes must match
----- end of relevant part from /etc/amanda/DailySet1/amanda.conf -----

----- /etc/amanda/DailySet1/changer.conf -----
number_configs	1
eject		1	# Tapedrives need an eject command
sleep		60	# Seconds to wait until the tape gets ready
			# The driver first sleeps for <sleep>/2 seconds,
			# then polls the drive every ??? seconds.
cleanmax	10	# How many times could a cleaning tape get used
changerdev	/dev/ch0
#
# Next comes the data for drive 0
#
config		0
drivenum	0
dev		/dev/nrst0	# the device that is used for the tapedrive 0
startuse	0		# The slots associated with the drive 0
enduse		9		# 
statfile	/etc/amanda/DailySet1/st0-slot	# The file where the actual slot is stored
cleancart	-1		# the slot where the cleaningcartridge for drive 0 is
				# located. -1 means none.
cleanfile	/etc/amanda/DailySet1/st0-clean	# The file where the cleanings are recorded
usagecount	/etc/amanda/DailySet1/st0-totaltime

#
# This is the end
----- end of /etc/amanda/DailySet1/changer.conf -----

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>