> -----Original Message-----
> From: Dan Langille [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 01, 2008 1:58 PM
> To: Robin Blanchard
> Cc: bacula
> Subject: Re: [Bacula-users] help with autochanger/barcodes
> 
> Robin Blanchard wrote:
> > Trying to label the 20 tapes with their corresponding barcodes....Is
> the
> > problem with my device (sd) configuration or is this stemming from
> the
> > mtx-changer script ?
> >
> > *label barcodes
> > Automatically selected Catalog: MyCatalog
> > Using Catalog "MyCatalog"
> > Automatically selected Storage: Drive-1
> > Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
> > Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
> > 3306 Issuing autochanger "slots" command.
> > Device "Drive-1" has 0 slots.
> > No slots in changer to scan.
> 
> At first, I said, where's the problem.  OH THERE IT IS.  It helps if
> you
> explicitly point it out to us old folks.
> 
> Check permissions on your mtx-changer script, and the devices it
> accesses with respect to the UID/GID that bacula-sd runs as.
> 
> I suspect the script, not the configuration.

Hmmmm...Sort of looks like bacula is passing the wrong variables to the
script ? Or my config is wrong ?

(shutdown all bacula daemons)
# /usr/local/share/bacula/mtx-changer /dev/pass0 slots 1

20

(restart bacula daemons)
*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: Drive-1
Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
Connecting to Storage daemon Drive-1 at lewis.itos.uga.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive-1" has 0 slots.
No slots in changer to scan.

---
Autochanger {
  Name = Autochanger
  Device = Drive-1
  Changer Command = "/usr/local/share/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/pass0
}

Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = LTO3
  Description = "IBM Ultrium"
  Archive Device = /dev/nsa0
  SpoolDirectory = /export/bacula/spool;
  AutomaticMount = yes;
  AlwaysOpen = yes
  RemovableMedia = yes;
  RandomAccess = no;
  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
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

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