Jeremy, 

I just re-posted the "hack" you mention below for Steve Vitale, and I don't
think it's that bad, certainly no worse than the worst of the rest of the
changer hacks. :)

Before you start on the changer, is AMANDA working correctly with the tape
drive and no changer (i.e., chg-manual, the human tape changer)?

The next step after that is to get the changer up and running outside of
AMANDA, and I remember three steps to that: 

1. Find or create a device for the changer. My tape drive is /dev/nst0, and
my changer is /dev/sch0. If you don't know what device controls your
changer, you might not have a device. The changer software at
http://bytesex.org/changer.html provides some explanation and examples for
creating device nodes. 

2. Get a kernel module loaded that will 'talk' to the device. The link above
includes source code for such a device, and is part of how I solved the
problem. 

3. Use a utility to tell the kernel module what to do with the device. Now
you should be able to move tapes around from the command line. The only
problem I ran into with this is the lack of communication between the
changer and the tape drive requires that you eject a tape from the drive
before the changer can pick it up. (The changer won't tell the drive to
eject.) 

Once all of that is together, you can try using any combination of mtx,
zd-mtx, or any other utility and changer script to get the desired results.
I don't have a sure-fire recipe, just notes on what worked for me. 

Good Luck, 
Paul

P.S. Someday I'll work on making that script more generic so I can submit it
to CVS. Really. 



> -----Original Message-----
> From: Jeremy Wadsack [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 05, 2001 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: Configuring an Exabute 10h
> 
> 
> 
> I've searched the amanda-users archives and the web for information on
> setting up Amanda to work with an Exabyte 10h changer and have not
> been able to find the information I need. The solutions previously on
> the list range from "I got it to work" (with no discussion of how) to
> "I hacked this program and wrote that one to get it to work" which
> seems unnecessary (and anyway the attached files weren't available).
> 
> So, I need some help. I'm sure someone has done this. This is Amanda
> 2.4.2p2 on Linux (2.2.16 kernel, approximately).
> 
> 
> I've setup the tapetype that commonly seems to be used, but I don't
> think I thoroughly understand how to set this up. amcheck gives me
> this error:
> 
> amcheck-server: could not get changer info: could not read 
> result from "/usr/local/libexec/chg-scsi-linux"
> 
> 
> The relevant parts of amanda.conf are (from
> examples/amanda.conf.chg-scsi):
> 
> tpchanger "chg-scsi-linux"    # the tape-changer glue script
> changerfile "/usr/local/etc/amanda/daily/chg-scsi-linux.conf"
> tapedev "0"
> 
> The changerfile is the examples/chg-scsi-linux.conf that builds with
> Amanda (there's no docs anywhere that I can find that describe how to
> manage this file).
> 
> If someone would be really kind and give me a step-by-step walk
> through of how to set this up I'd appreciate it. Assume I know nothing
> about tape devices on Linux. ;)
> 
> Thanks,
> 
> -- 
> 
> Jeremy Wadsack
> Wadsack-Allen Digital Group
> 

Reply via email to