Amanda-Users

RE: could not get changer info specify a number as tape_device [0-9]

2002-08-27 16:23:21
Subject: RE: could not get changer info specify a number as tape_device [0-9]
From: "Quinn, Richard C. - Collinsville IT" <rcquinn AT roysterclark DOT com>
To: "Chris Bourne" <cbourne AT xapnet DOT com>, <amanda-users AT amanda DOT org>
Date: Tue, 27 Aug 2002 14:51:58 -0500
Hi,
 
My question kinda goes along with what Chris Bourne asked earlier yesterday:
 
I have an STK 9730 jukebox.  Running amanda on Solaris 2.6.
 
In my amanda.conf file, I specify chg-scsi as my Built In Tape Changer as specified by share/TAPE.CHANGERS.
 
As far as I can see, the configs for chg-scsi is similar to chg-scsi-chio.
 
So, in order for chg-scsi to understand ''changerfile'' as more than just a ''slot counting'' file, I specify my ''tapedev'' as a ''0''.
 
When I try to ''amdump'', I see this error in my amdump.1 log file:
amdump.3:driver: result time 12.873 from taper: TAPE-ERROR [tape_rdlabel: tape open: 0: No such file or directory]
 
So I change the ''tapedev'' entry in amanda.conf back to /dev/rmt/2bn
 
Then amdump works just fine.
 
Okay great,  now I wish to run ''amlabel'' in order to relabel the tape to test out ''amdump'' a bit more.
 
$ amlabel -f DailySet1 DailySet10826 slot 1
amlabel: could not load slot "1": check your config and use an config file for chg-scsi
 
Slot 1 does indeed correspond with /dev/rmt/2bn
 
So in order to run ''amlabel'' I gotta specify my ''tapedev'' as '0'.......and
in order to run ''amdump'' I gotta specify my ''tapedev'' as /dev/rmt/2bn
 
I am assuming that the ''changerdev'' is the /dev pathname for the robotic arm.
I know if the changer script I am using were ''chg-mtx'' as opposed to chg-scsi, then
I would likely specify ''chagerdev'' the same as ''tapedev''.
 
What am I doing wrong here?
 
Should I switch changer scripts, maybe to chg-scsi-chio??
 
I have included, the errors I get in the log, and portions of  my amanda.conf file and scsi-chg.conf files
 
thanks,
 
 
Rich Quinn
 
 
 
 
========================================================================
=====================amdump.1 LOG FILE OUTPUT=============================
========================================================================
changer_find: looking for DailySet10820 changer is searchable = 0
changer: opening pipe to: /usr/local/amanda/libexec/chg-scsi -slot current
changer: got exit: 0 str: 1 /dev/rmt/2bn
taper: slot 1: date X        label DailySet10826 (first labelstr match)
changer: opening pipe to: /usr/local/amanda/libexec/chg-scsi -slot next
changer: got exit: 2 str: 2 slot 2 move failed
taper: fatal slot 2: slot 2 move failed
changer: opening pipe to: /usr/local/amanda/libexec/chg-scsi -slot 1
changer: got exit: 2 str: 1 slot 1 move failed
driver: result time 234.461 from taper: TAPE-ERROR [slot 1 move failed]
dump of driver schedule before start degraded mode:
========================================================================
========================================================================
========================================================================
 
 
========================================================================
==================PART OF THE amanda.conf=================================
========================================================================
tpchanger "chg-scsi"     # use HP changer
changerfile "/opt/encap/amanda/etc/amanda/DailySet1/chg-scsi.conf"
changerdev "/dev/rsst0"
tapedev "0"     # the no-rewind tape device to be used
========================================================================
========================================================================
========================================================================
 
========================================================================
===================PART OF THE chg-scsi.conf================================
========================================================================
number_configs  1
eject           0
sleep           60
cleanmax        10     
changerdev      /dev/rsst0
#
# Drive 0
#
config          0
drivenum        0
dev             /dev/rmt/2bn 
========================================================================
========================================================================
========================================================================
 
-----Original Message-----
From: Chris Bourne [mailto:cbourne AT xapnet DOT com]
Sent: Monday, August 26, 2002 5:53 PM
To: amanda-users AT amanda DOT org
Subject: could not get changer info specify a number as tape_device [0-9]

Hello,
   I need help with figuring out why amanda is giving me these errors. First off I am using Sony 20/40G dgd 150p tapes on a Dell powervault 120T DDS-4 autoloader on RedHat 7.2. I am using a chg-scsi config..
 
I was getting this error message.
 
amcheck-server: could not get changer info: specify a number as tape_device [0-9]
 
Does anyone know what it means??? So I changed the tapedev in amada.conf from "/dev/nst0" to just "0" and I no longer get the specify a number as tape_device [0-9] part anymore. Now I get ..........

bash-2.05$ /usr/sbin/amtape DailySet1 label DailySet101
amtape: scanning for tape with label DailySet101
amtape: could not get changer info: open: /dev/sg1: Success
I am really confused about how this whole tape changer stuff works. I don't understand how amanda will find the tapes if tapedev is set to "0" or how to get these tapes to just rotate nightly. Any help thanks,
 
Chris Bourne
 
Chris Bourne
Systems/Network Administrator
Xapnet
Phone (510)655-9771
Fax (510)655-9775
http://www.xapnet.com
<Prev in Thread] Current Thread [Next in Thread>