I am pulling out my hair here trying to get our Quantum SuperLoader3 LTO-3
autochanger working with bacula 1.38.11-3.

The OS is CentOS 4.3 up to date on patches, kernel 2.6.9-42.0.2.ELsmp.

I previously had this same jukebox working just fine on a Dell server
running the same OS and with pretty much the same config file, but since
moving the drive to the tape host where it will be living (an IBM x336
rack server with an Adaptec 29320A Ultra320 SCSI adapter that is there
just to drive the jukebox), I can use bacula and tar to write to the tape
(/dev/st0), but mtx and bacula and tapeinfo and every other utility I can
find don't seem to believe this jukebox is a jukebox.

For instance, when it was connected to the Dell, I could run "label
barcode" and it cycled through all the tapes and labeled them per the
barcodes that are on them, just as should be.  But if I try the same on
the IBM box:
*label barcode
The defined Storage resources are:
     1: File
     2: Autochanger
Select Storage resource (1-2): 2
Connecting to Storage daemon Autochanger at 10.10.0.10:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive1" has 0 slots.
No slots in changer to scan.
*

... it thinks it has no slots.  Utilities outside bacula report errors.  I
tried the stuff at
http://www.bacula.org/rel-manual/Autochanger_Support.html:

nsb:/etc/bacula#  /etc/bacula/mtx-changer /dev/sg2 list 0 /dev/nst0 0
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 20
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed
nsb:/etc/bacula#

Most commands give similiar results:

nsb:/etc/bacula#  mtx -f /dev/sg2 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 20
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed

Yes, /dev/sg2 is the correct scsi generic for this machine.  It has an LSI
Logic raid controller that takes up /dev/sg0 and /dev/sg1.

I recompiled the kernel to make sure "CONFIG_SCSI_MULTI_LUN=y" was set (it
wasn't before, but rebuilding it with that switch turned on didn't help).

This drive has a webserver in it and I am able to run the drive through
all its diags and move tapes around and stuff through the web interface.

Here is the section from the bacula-sd.conf file:

#
# An autochanger device with one drives
#
Autochanger {
  Name = Autochanger
  Device = Drive1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg0
}

Device {
  Name = Drive1
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Spool Size = 10737418240
  Maximum Job Spool Size = 5368709120
  Spool Directory = /home/bacula
}

This is the same as the one that worked on the Dell (except for changing
from /dev/sg0 to /dev/sg2).

Any ideas on what could be wrong here?  As I said, this drive DID work
just fine with that Dell machine running the same OS and bacula.  And even
on this machine, I can back up to and restore from the drive, but bacula
doesn't know how to manipulate the changer because it doesn't think there
is a changer there.

Thanks
Michael



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to