On 1/22/07, Zeratul <[EMAIL PROTECTED]> wrote:
> > I have my director one one machine, my database on a second machine
> > and 2 storage daemons on 2 more machines. One of these SDs has an
> > autochanger. I could post lots of config files (there really is
> > nothing special about them - except all bacula passwords are the same
> > on all machines) but I think the best option would be for you to post
> > what exact error you are getting.   We can surely help with that.
> >
> > John
>
> Any command related to the tape returns the same error:
>
> "Connecting to Storage daemon Overland at backup-tp01:9103 ...
> 3908 Error scanning autocharger list command: autochanger slots Ultrium-Drive"
>
> The same config file for bacula-dir (except the Names and Addresses) is used
> on the server which runs bacula-sd and there is no problem working with the
> tapes and the autochanger.
>
> Daniel
>
Ok here is my config file for the autochanger:

Storage {                             # definition of myself
  Name = dev6-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = fileserver-dir
  Password = "XXXXX"
}

#   status of the storage daemon
#
Director {
  Name = fileserver-mon
  Password = "XXXXX"
  Monitor = yes
}
Autochanger {
  Name = Magnum224-0
  Device = LTO2-0, LTO2-1
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg2
}

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 = /var/spool/bacula/tape
  Maximum Job Spool Size = 2G
  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 = /var/spool/bacula/tape
  Maximum Job Spool Size = 2G
  LabelMedia = Yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Messages {
  Name = Standard
  director = fileserver-dir = all
}


>From waht you have posted I am thinking that your problem is more of
configuring your autochanger and less of using 2 machines. Does the
mtx command in linux work?

For me since my autochanger is at /dev/sg2 I issue the following
command and it outputs the status of the changer:

dev6 /  # mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:2 Drives, 24 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 12 Loaded):VolumeTag = A00014
Data Transfer Element 1:Full (Storage Element 16 Loaded):VolumeTag = A00016
      Storage Element 1:Full :VolumeTag=A00001
      Storage Element 2:Full :VolumeTag=A00002
      Storage Element 3:Full :VolumeTag=A00003
      Storage Element 4:Full :VolumeTag=A00004
      Storage Element 5:Full :VolumeTag=A00005
      Storage Element 6:Full :VolumeTag=A00006
      Storage Element 7:Full :VolumeTag=A00007
      Storage Element 8:Full :VolumeTag=A00008
      Storage Element 9:Full :VolumeTag=A00009
      Storage Element 10:Full :VolumeTag=A00010
      Storage Element 11:Full :VolumeTag=A00011
      Storage Element 12:Empty:VolumeTag=
      Storage Element 13:Full :VolumeTag=A00013
      Storage Element 14:Full :VolumeTag=A00012
      Storage Element 15:Full :VolumeTag=A00017
      Storage Element 16:Empty:VolumeTag=
      Storage Element 17:Full :VolumeTag=A00015
      Storage Element 18:Full :VolumeTag=A00020
      Storage Element 19:Full :VolumeTag=A00019
      Storage Element 20:Full :VolumeTag=A00018
      Storage Element 21:Full :VolumeTag=A00023
      Storage Element 22:Full :VolumeTag=A00022
      Storage Element 23:Full :VolumeTag=A00021
      Storage Element 24 IMPORT/EXPORT:Empty:VolumeTag=
dev6 / #

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to