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


For what it's worth, the drive status during calibration is:

# mtst -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (10000):
IM_REP_EN

 and after it does to an idle state, it is:

# mtst -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x1b (DLT 35GB).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN


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

Reply via email to