Hi,

I am a first time user of Bacula trying to get a Sun L280 DLT7000 tape 
drive (operating mode set to random) with autochanger working.

I have confirmed the drive works with the btape test however am having 
no luck getting the autochanger to play the game.

When running a autochanger test (btape -c bacula-sd.conf /dev/nst0 then 
auto) it either times out with:
---
02-Nov 21:45 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:1198 Bad status from rewind. ERR=dev.c:678 Rewind error 
on "SUN-L280" (/dev/nst0). ERR=Input/output error.
---
OR after playing with the config (see below) I get
---
3302 Issuing autochanger "unload 1 0" command.
unload status=Bad 268435457
3992 Bad autochanger command: /etc/bacula/scripts/mtx-changer /dev/sg1 
unload 1 /dev/nst0 0
3992 result="Unloading Data Transfer Element into Storage Element 
1...mtx: Request Sense: Long Report=yes
": ERR=Child exited with code 1
3303 Issuing autochanger "load 1 0" command.
3993 Bad autochanger command: /etc/bacula/scripts/mtx-changer /dev/sg1 
load 1 /dev/nst0 0
3993 result="mtx: Request Sense: Long Report=yes
": ERR=Child exited with code 1
You must correct this error or the Autochanger will not work.
---

I've tried increasing the wait time with sleep 15 and using the 
wait_for_drive function in the mtx-changer script with no success.
Can anyone provide a few pointers as to what I'm doing wrong?

I'm running Debian 3.1 and using backport Bacula version 1.38.11-5

Cut from bacula-sd.conf
---
Autochanger {
  Name = L280-Library
  Device = SUN-L280
  Changer Device = /dev/sg1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
}

Device {
  Name = SUN-L280                 #
  Media Type = DLT7000
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
#  LabelMedia = no;
#  RemovableMedia = yes;
  RandomAccess = yes;
  AutoChanger = yes

#  Offline On Unmount      = no
#  Hardware End of Medium  = no
#  BSF at EOM              = yes
#  Backward Space Record   = no
#  Fast Forward Space File = no
#  TWO EOF                 = yes
#  Drive Index = 0
#  Changer Device = /dev/sg1
#  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
#  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
---

Thanks

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