Bacula-users

[Bacula-users] Fwd: doesn't register loaded tape

2008-05-28 15:57:23
Subject: [Bacula-users] Fwd: doesn't register loaded tape
From: "John Drescher" <drescherjm AT gmail DOT com>
To: "Mark Nienberg" <gmane AT tippingmar DOT com>, baculausers <Bacula-users AT lists.sourceforge DOT net>
Date: Wed, 28 May 2008 15:57:18 -0400
> all that was needed was to issue a mount on the drive. And yes I do
> mean drive I have both drives and the autochanger defined in my
> bacula-dir.conf so all 3 show up as storage devices.

Does your definition of the drive in bacula-dir.conf refer to the same device in
bacula-sd.conf that the autochanger uses or do you have to make another Device{}
definition in bacula-sd.conf without the "Autochanger=yes" line in it?

Probably easier to post the configs... Here is  the storage part of my
bacula-dir.conf

Storage {
  Name = "DEV6-LTO-0"
  Address = dev6.radimg.pitt.edu
  SDPort = 9103
  Password = XXXX
  Device = "LTO2-0"
  Media Type = "LTO-2"
  Maximum Concurrent Jobs = 5
}

Storage {
  Name = "DEV6-LTO2-1"
  Address = dev6.radimg.pitt.edu
  SDPort = 9103
  Password = XXXX
  Device = "LTO2-1"
  Media Type = "LTO-2"
  Maximum Concurrent Jobs = 5
}

Storage {
  Name = "DEV6-Changer"
  Address = dev6.radimg.pitt.edu
  SDPort = 9103
  Password = XXXX
  Device = "Magnum224-0"
  Media Type = "LTO-2"
  Maximum Concurrent Jobs = 5
}

And my bacula-sd.conf on dev6 (not the same machine as the director):

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 = 5G
#  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 = 5G
#  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'"
}


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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users