A couple things I see, commented below:

On Fri, 09 Feb 2001, Joseph Del Corso wrote:

> 
> I should preface what I'm about to say with: I searched through a decent
> amount of the archive before giving up.  I ran amcheck with the following
> results:
> 
> ------------------------------------------------------------------------
> 
> Amanda Tape Server Host Check
> -----------------------------
> /opt/tmp: 34743152 KB disk space available, that's plenty.
> ERROR: /dev/sg4: Permission denied
>        (expecting a new tape)

Make sure that the amanda user is in the group that has permission to this 
device.  On mine, the tape dev looks like this:

bash-2.03$ ls -l /dev/nst0
crw-rw----    1 root     disk       9, 128 May  5  1998 /dev/nst0

And /etc/group has:

disk:x:6:root,amanda

Also, but I'm not 100% sure on this, scsi tape devices in linux are
listed as /dev/st#, and as /dev/nst# for the non-rewinding.  So your 2
drives 'should' be /dev/nst0 and /dev/nst1.

> 
> The amanda.conf file that *I BELIEVE* is being used has the following 
> attributes set:
> 
> -----------------------------------------------------------------------
> 
> 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/sg4"      # the no-rewind tape device to be used

See above guess about /dev/nst0 being the 1st no-rewind device.

> #rawtapedev "/dev/sg5   # the raw device to be used (ftape only)
> #changerfile "/var/lib/amanda/DailySet1/changer"
> #changerfile "/var/lib/amanda/DailySet1/changer-status"
> #changerfile "/etc/amanda/changer.conf"
> changerdev "/dev/sg3"

The reason it didn't work as a single drive was the changerdev line.
If you comment that out, or use tpchanger "chg-manual", it should go.

> I guess I'm having trouble understanding the following:
> I'm using an ATL 7100 series tape backup system with a robotic
> arm and two tape drives on scsi id 1, where the robotic arm I can 
> control via mtx (mtx -f /dev/sg3 etc etc etc)
> 
> and the tape drives are /dev/sg4 and sg5...
> 
> I initially tried to use the tpchanger "chg-zd-mtx" but would get the 
> following results from amcheck DailySet1 
> (obviously the line tpchanger, see above, would be uncommented when I
> tried this)
> 
> --------------------------------------------------------------------
> 
> [operator@lycan:/etc/amanda/DailySet1]# amcheck DailySet1
> Amanda Tape Server Host Check
> -----------------------------
> /opt/tmp: 34743152 KB disk space available, that's plenty.
> amcheck-server: could not get changer
> info: /usr/adm/amanda/changer-status-clean: No such file or directory

In amanda.conf, if you set the 'changerfile "/somedir/something"'
all the files used in chg-zd-mtx will be set to things like:

/somedir/something-status-clean
/somedir/something-access

Changerfile gives the script something to append it's file names to.
Since you have all 3 examples commented out in your amanda.conf, I
assume it just went to some default value.

I just went through the 'mini-nightmare' trying to figure out the same
problem about a month ago, so I understand.  ;)

After this email, I am submitting a modified chg-zd-mtx script that has
support for barcodes (currently, only chg-scsi has that) and can also
support >9 tape slots.  It may come in handy for you.

--
   Jason Hollinden

   SMG Systems Admin

Reply via email to