Hi,

I tried to configure bacula to use our Qualstart TLS-4120 AIT-2
autochanger on a debian sarge system with bacula 1.36.3.

To get the mtx-changer script to work, I enabled the following line:

mt -f $device offline

Now I'm able to use the script ot load/unload the tapes:

# /etc/bacula/scripts/mtx-changer /dev/sg3 list
1:
2:
3:
4:
5:
6:

That ok, only 6 slots are loaded with tapes.

# /etc/bacula/scripts/mtx-changer /dev/sg3 slots 0 /dev/st0 0
13

# /etc/bacula/scripts/mtx-changer /dev/sg3 load 3 /dev/st0 0

# mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:1 Drives, 13 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded)
      Storage Element 1:Full
      Storage Element 2:Full
      Storage Element 3:Empty
      Storage Element 4:Full
      Storage Element 5:Full
      Storage Element 6:Full
      Storage Element 7:Empty
      Storage Element 8:Empty
      Storage Element 9:Empty
      Storage Element 10:Empty
      Storage Element 11:Empty
      Storage Element 12:Empty
      Storage Element 13 IMPORT/EXPORT:Empty

# /etc/bacula/scripts/mtx-changer /dev/sg3 loaded 0 /dev/st0 0
3

# /etc/bacula/scripts/mtx-changer /dev/sg3 unload 3 /dev/st0 0
Unloading Data Transfer Element into Storage Element 3...done

I have to use the full command here, it would fail to set the tape
device offline.

# /etc/bacula/scripts/mtx-changer /dev/sg3 loaded 0 /dev/st0 0
0

So far, everything looks good.

Here is the relevant bacula-sd.conf part:

Device {
  Name = Autochanger
  Media Type = AIT-2
  Archive Device = /dev/st0
  Changer Device = /dev/sg3
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Autochanger = yes
  LabelMedia =yes;
  AutomaticMount = yes;
  AlwaysOpen = yes;
  #Mount Anonymous Volumes = no;
}

And the bacula-dir.conf storage part:

# Definition of AIT-2 tape storage device
Storage {
  Name = Autochanger
  Address = epefp119   
  SDPort = 9103
  Password = ""         
  Device = Autochanger
  Media Type = AIT-2                 
  Autochanger = yes
}


I've try to get the status of the the automounter I get this:

*status
The defined Storage resources are:
     1: File
     2: Autochanger
Select Storage resource (1-2): 2
Connecting to Storage daemon Autochanger at epefp119:9103

epefp119-sd Version: 1.36.3 (22 April 2005) i386-pc-linux-gnu debian 3.1
Daemon started 11-Jan-06 17:17, 0 Jobs run since started.

Running Jobs:
No Jobs running.
====

Terminated Jobs:
 JobId  Level   Files          Bytes Status   Finished        Name
======================================================================
   345  Full          0              0 Other    20-Dec-05 06:37 C59SN021
   315  Diff          0              0 Error    25-Dec-05 13:08 Client1
   349  Incr          0              0 Other    25-Dec-05 13:38 C59SN021
   316  Diff          0              0 Error    30-Dec-05 20:08 C59VRSBB
   353  Incr          0              0 Other    30-Dec-05 20:38 C59SN021
   319  Incr          0              0 Error    05-Jan-06 03:08 Client1
   357  Incr          0              0 Other    05-Jan-06 03:38 C59SN021
   320  Incr          0              0 Error    10-Jan-06 10:08 C59VRSBB
   361  Incr          0              0 Other    10-Jan-06 10:38 C59SN021
   751  Incr          0              0 Cancel   11-Jan-06 12:52 C59VRSBB
====

Device status:
Archive "FileStorage" is not open or does not exist.
Archive "Autochanger" is not open or does not exist.


I think this is not what I should see at this point.


*label
The defined Storage resources are:
     1: File
     2: Autochanger
Select Storage resource (1-2): 2
Enter new Volume name: Test2
Enter slot (0 for none): 2
Automatically selected Pool: Default
Connecting to Storage daemon Autochanger at epefp119:9103 ...
Sending label command for Volume "Test2" Slot 2 ...
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with
code 1.
3304 Issuing autochanger "load slot 2, drive 0" command.
3992 Bad autochanger "load slot 2, drive 0": ERR=Child exited with code 1.
Label command failed for Volume Test2.
Do not forget to mount the drive!!!


Any ideas? 

Ralf


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to