> [EMAIL PROTECTED]:/var# tapeinfo -f /dev/sg6
> Product Type: Medium Changer
> Vendor ID: 'ATL     '
> Product ID: 'L500     6320000'
> Revision: '0026'
> Attached Changer API: No
> SerialNumber: 'JF84918284'
> SCSI ID: 0
> SCSI LUN: 0
> Ready: yes
>
> > It is /dev/autochanger1 for me because I wrote a udev rule to create a
> > symlink to what ever device it finds that is the changer.
> >
> > Now after you have that working. test mtx
>
> [EMAIL PROTECTED]:/var# mtx -f /dev/sg6 status
>    Storage Changer /dev/sg6:2 Drives, 14 Slots ( 0 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
>        Storage Element 1:Full :VolumeTag=BB0012
>        Storage Element 2:Full :VolumeTag=BB0013
>        Storage Element 3:Full :VolumeTag=BB0014
>        Storage Element 4:Full :VolumeTag=BB0015
>        Storage Element 5:Full :VolumeTag=BB0016
>        Storage Element 6:Full :VolumeTag=BB0017
>        Storage Element 7:Full :VolumeTag=BB0018
>        Storage Element 8:Full :VolumeTag=BB0019
>        Storage Element 9:Full :VolumeTag=BB0020
>        Storage Element 10:Full :VolumeTag=BB0021
>        Storage Element 11:Full :VolumeTag=BB0022
>        Storage Element 12:Full :VolumeTag=BB0023
>        Storage Element 13:Full :VolumeTag=BB0024
>        Storage Element 14:Full :VolumeTag=BB0025
>
> Anything else I should check ??
>
> Thanks for the super fast response.
>
These both look good but I see a few differences in your
bacula-sd.conf that may be the cause. Here is my config:

Autochanger {
  Name = Magnum224-0
  Device = LTO2-0, LTO2-1
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
#  Changer Device = /dev/sg5
# 02/12/2007 added udev rule to link /dev/autochanger1 to the changer
  Changer Device = /dev/autochanger1
}

Device {
  Name = LTO2-0
  Media Type = LTO-2
  Drive Index = 0
  Archive Device = /dev/nst0
  Autochanger=yes
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Spool Directory = /mnt/tmp/bacula/tape
  Maximum Job Spool Size = 2G
#  Maximum Block Size = 262144
#  Minimum Block Size = 262144
#  Volume Poll Interval = 5 minutes
#  Close on Poll = Yes
#  Offline On Unmount = no
  LabelMedia = Yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Device {
  Name = LTO2-1
  Media Type = LTO-2
  Drive Index = 1
  Archive Device = /dev/nst1
  Autochanger=yes
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Spool Directory = /mnt/tmp/bacula/tape
  Maximum Job Spool Size = 2G
#  Maximum Block Size = 262144
#  Minimum Block Size = 262144
#  Volume Poll Interval = 5 minutes
#  Close on Poll = Yes
#  Offline On Unmount = no
  LabelMedia = Yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

The first thing I see is you do not have the Changer command in the
Autochanger part.

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to