---------- Forwarded message ---------- From: John Drescher <[EMAIL PROTECTED]> Date: Jul 9, 2007 5:19 PM Subject: Re: [Bacula-users] New Exabyte Autochanger question To: Richard White <[EMAIL PROTECTED]>
> Thanks. Here's what it shows me: > > mt: /dev/st0: Input/output error > > or > > mt: /dev/st0: No medium found > I think that is ok without a tape loaded. > However, bacula is not happy with it. When I issue this command: > > *label barcode > > I lists the barcoded tapes in all the slots. However, when it attempts to > label them, it throws this: > > Connecting to Storage daemon at bacula-test:9103 VXA > Sending label command for Volume "A0000001" Slot 1 ... > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0", result: nothing loaded. > 3304 Issuing autchanger "load slot 1, drive 0" command. > 3305 Autochanger "load slot 1, drive 0" status is OK. > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0:, result is Slot 1. > 3910 Unable to open device "VXA3" (dev/st0): ERR=dev.c:425 Unable to open > device "VXA3" (dev/st0): ERR=Input/output error > > Label command failed for Volume A0000001 > Sending label command for Volume "A0000002" Slot 2 ... > > And so on. > > Here are the pertinent parts of my 'corrected' conf files: > > I see a few things different with your bacula-sd.conf 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 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 LabelMedia = Yes Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } The difference here is that I have Drive Index and no Changer command or Changer Device in my Device definition. And then the bacula-dir.conf Storage { Name = "DEV6-LTO-0" Address = dev6.radimg.pitt.edu SDPort = 9103 Password = "REMOVED" # Console password Device = "LTO2-0" Media Type = "LTO-2" Maximum Concurrent Jobs = 5 } Storage { Name = "DEV6-LTO2-1" Address = dev6.radimg.pitt.edu SDPort = 9103 Password = "REMOVED" # Console password Device = "LTO2-1" Media Type = "LTO-2" Maximum Concurrent Jobs = 5 } Storage { Name = "DEV6-Changer" Address = dev6.radimg.pitt.edu SDPort = 9103 Password = "REMOVED" Device = "Magnum224-0" Media Type = "LTO-2" Maximum Concurrent Jobs = 5 } Now for label barcodes I choose DEV6-Changer as the device. John -- John M. Drescher ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users