I can't say for your specific case but I have a TL892 and I know I did
play around a little with the settings before I got it to work properly.
For me it was set so that when a tape is unloaded it did automatically
load next, this did of course cause some issues for bacula which was
much happier after removing that.
FYI, my setup is very close to yours, I'm running OpenSuse 10.0, Adaptec
2944UW and a TL892, all working fine as far as bacula is concerned (the
second tape drive jams now and then so I removed it)

Try to remove one library so you only have one and then run the test. 
If you can't get it to work I can try btape to see what comes out for me
and if you post the library config I can compare it to mine.

The good news is that it is possible, just give it some work.

/ps


On Mon, 2006-05-08 at 19:41 +1000, Keith Hopkins (Bacula) wrote:
> Hi list,
> 
>   I have two Compaq(Digital) StorageWorks TL892 mini-libraries 
> (TL892=TL891 with 2x DLT7000 drives).  When I run the autochanger test 
> in btape, it always hangs while waiting for a tape to load.  The tape 
> gets loaded, it spends a while calibrating in the drive (about 45 
> seconds), then the drive goes 'IDLE' (per the mini-lib's LCD).  btape 
> doesn't seem to recognize the tape is ready, and instead times out.  The 
> test falls into a loop, extending the time out 30 sec each time, but it 
> fails in the same spot (open/rewind) again and again.  This happens on 
> both libs/all 4 drives.  Any clues on how to work around this?
> 
>   I'm using the bacula-mysql-1.38.9-1 rpm for SuSE10 dl from 
> sourceforge.  The machine is a AMD K7 1.4G, 1.5G SDRAM, IDE.  The drives 
> libs/drives are attached via two Adaptec 2944UW cards.  Kernel is 
> 2.6.13-15.8-default from SuSE.  The only unusual thing from dmesg is 
> "MTSETDRVBUFFER only allowed for root."
> 
> # btape -d 4 -c ./bacula-sd.conf DLT01 -v
> 
> (tape test runs without error)
> 
> === Autochanger test ===
> 
> 3301 Issuing autochanger "loaded" command.
> Slot 2 loaded. I am going to unload it.
> 3302 Issuing autochanger "unload 2 1" command.
> unload status=OK 0
> 3303 Issuing autochanger "load 1 1" command.
> 3303 Autochanger "load 1 1" status is OK.
> 08-May 19:12 btape: 3301 Issuing autochanger "loaded drive 1" command.
> 08-May 19:12 btape: 3302 Autochanger "loaded drive 1", result is Slot 1.
> btape: btape.c:338 open device "DLT01" (/dev/nst1): OK
> 08-May 19:12 btape: 3301 Issuing autochanger "loaded drive 1" command.
> 08-May 19:12 btape: 3302 Autochanger "loaded drive 1", result is Slot 1.
> btape: btape.c:1198 Bad status from rewind. ERR=dev.c:678 Rewind error 
> on "DLT01" (/dev/nst1). ERR=Input/output error.
> 
> 
>   While it is waiting with the drive in the idle state:
> # lsof /dev/nst1
> COMMAND  PID USER   FD   TYPE DEVICE SIZE  NODE NAME
> btape   6039 root    3u   CHR  9,129      15362 /dev/nst1
> 
> # mtst -f /dev/nst1
> /dev/nst1: Device or resource busy
> 
> 
>     /etc/bacula/bacula-sd.conf
> 
> Autochanger {
>   Name = TL891Left
>   Device = DLT00
>   Device = DLT01
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg0
> }
> 
> Autochanger {
>   Name = TL891Right
>   Device = DLT02,DLT03
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg3
> }
> 
> Device {
>   Name = DLT00
>   Archive Device = /dev/nst0
>   Device Type = Tape
>   Media Type = DLT7000
>   AutoChanger = Yes
>   Drive Index = 0
>   AutoSelect = Yes
>   Maximum Changer Wait = 180
>   Maximum Rewind Wait = 180
>   Maximum Open Wait = 180
>   AlwaysOpen = Yes
>   Maximum Open Wait = 180
>   Removable media = Yes
>   Random access = No
>   Automatic Mount = Yes
> }
> 
> Device {
>   Name = DLT01
>   Archive Device = /dev/nst1
>   Device Type = Tape
>   Media Type = DLT7000
>   AutoChanger = Yes
>   Drive Index = 1
>   AutoSelect = Yes
>   Maximum Changer Wait = 180
>   Maximum Rewind Wait = 180
>   Maximum Open Wait = 180
>   AlwaysOpen = Yes
>   Maximum Open Wait = 180
>   Removable media = Yes
>   Random access = No
>   Automatic Mount = Yes
> }
> 
> Device {
>   Name = DLT02
>   Archive Device = /dev/nst2
>   Device Type = Tape
>   Media Type = DLT7000
>   AutoChanger = Yes
>   Drive Index = 0
>   AutoSelect = Yes
>   Maximum Changer Wait = 180
>   Maximum Rewind Wait = 180
>   Maximum Open Wait = 180
>   AlwaysOpen = Yes
>   Maximum Open Wait = 180
>   Removable media = Yes
>   Random access = No
>   Automatic Mount = Yes
> }
> 
> Device {
>   Name = DLT03
>   Archive Device = /dev/nst3
>   Device Type = Tape
>   Media Type = DLT7000
>   AutoChanger = Yes
>   Drive Index = 1
>   AutoSelect = Yes
>   Maximum Changer Wait = 180
>   Maximum Rewind Wait = 180
>   Maximum Open Wait = 180
>   AlwaysOpen = Yes
>   Maximum Open Wait = 180
>   Removable media = Yes
>   Random access = No
>   Automatic Mount = Yes
> }
> 
>   I do see where someone has the TL891 working under FreeBSD 
> (http://www.freebsddiary.org/digital-tl891.php)
> 
> --
> Keith
> 
> 
> -------------------------------------------------------
> 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


-------------------------------------------------------
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