First of all, the storage daemon, file daemon, and directory all reside on
the same computer. It will be mounting our Isilon via nfs and backing up the
nfs directories. I stopped all daemons, wiped the DB, and recreated it.
After that I tested the DB and restarted all the daemons. Next I opened
bconsole and typed label to label a new tape. The tapes were placed into
slots 83 through 102 by the loader and I have left them there. They have
VolumeTags 000001 - 000020, based on their bar codes.

      Storage Element 83:Full :VolumeTag=000001
      Storage Element 84:Full :VolumeTag=000002
      Storage Element 85:Full :VolumeTag=000003
      Storage Element 86:Full :VolumeTag=000004
      Storage Element 87:Full :VolumeTag=000005
      Storage Element 88:Full :VolumeTag=000006
      Storage Element 89:Full :VolumeTag=000007
      Storage Element 90:Full :VolumeTag=000008
      Storage Element 91:Full :VolumeTag=000009
      Storage Element 92:Full :VolumeTag=000010
      Storage Element 93:Full :VolumeTag=000011
      Storage Element 94:Full :VolumeTag=000012
      Storage Element 95:Full :VolumeTag=000013
      Storage Element 96:Full :VolumeTag=000014
      Storage Element 97:Full :VolumeTag=000015
      Storage Element 98:Full :VolumeTag=000016
      Storage Element 99:Full :VolumeTag=000017
      Storage Element 100:Full :VolumeTag=000018
      Storage Element 101:Full :VolumeTag=000019
      Storage Element 102:Full :VolumeTag=000020

All four tape drives are empty at this point.

Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty

After I typed label, bacula spun for ~3 minutes before connecting to the
storage daemon (which is local).

*label
The defined Storage resources are:
     1: File
     2: Dell
Select Storage resource (1-2): 2
Connecting to Storage daemon Dell at count:9103 ...

### three minute delay ###

Enter autochanger drive[0]:
Enter new Volume name: OVS_0001
Enter slot (0 or Enter for none): 83
Defined Pools:
     1: Default
     2: Scratch
Select the Pool (1-2): 1
Connecting to Storage daemon Dell at count:9103 ...
Sending label command for Volume "OVS_0001" Slot 83 ...
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 83, drive 0" command.
3305 Autochanger "load slot 83, drive 0", status is OK.
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result is Slot 83.
3910 Unable to open device "ML6020-D0" (/dev/nst0): ERR=dev.c:433 Unable to
open device "ML6020-D0" (/dev/nst0): ERR=No medium found

Label command failed for Volume OVS_0001.
Do not forget to mount the drive!!!
*

So the label fails with "No medium found". I am not sure why. I will include
snippets from my config files.

### bacula-dir.conf Snippets ###

Storage {
  Name = Dell
  Address = count
  SDPort = 9103
  Password = "[EMAIL PROTECTED]"
  Device = Dell
  Media Type = LTO-4
  Autochanger = Yes
  Maximum Concurrent Jobs = 4
}


### bacula-sd.conf Snippets ###

Autochanger {
Name = Dell
  Device = ML6020-D0
  Device = ML6020-D1
  Device = ML6020-D2
  Device = ML6020-D3
  Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg4
}

Device {
  Name = ML6020-D0
  Archive Device = /dev/nst0
  Device Type = Tape
  Media Type = LTO-4
  Autochanger = Yes
  Changer Device = /dev/sg4
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Drive Index = 0
  Autoselect = Yes
  AlwaysOpen = Yes;
  RemovableMedia = Yes;
  RandomAccess = No;
  RequiresMount = No;
}

 Device {
  Name = ML6020-D1
  Archive Device = /dev/nst1
  Device Type = Tape
  Media Type = LTO-4
  Autochanger = Yes
  Changer Device = /dev/sg4
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Drive Index = 1
  Autoselect = Yes
  AlwaysOpen = Yes;
  RemovableMedia = Yes;
  RandomAccess = No;
  RequiresMount = No;
}

Device {
  Name = ML6020-D2
  Archive Device = /dev/nst2
  Device Type = Tape
  Media Type = LTO-4
  Autochanger = Yes
  Changer Device = /dev/sg4
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Drive Index = 2
  Autoselect = Yes
  AlwaysOpen = Yes;
  RemovableMedia = Yes;
  RandomAccess = No;
  RequiresMount = No;
}

Device {
  Name = ML6020-D3
  Archive Device = /dev/nst3
  Device Type = Tape
  Media Type = LTO-4
  Autochanger = Yes
  Changer Device = /dev/sg4
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Drive Index = 3
  Autoselect = Yes
  AlwaysOpen = Yes;
  RemovableMedia = Yes;
  RandomAccess = No;
  RequiresMount = No;
}

One thing I will note is that the tape cartridge is successfully placed into
drive 0 during the label command as now I have this:

Data Transfer Element 0:Full (Storage Element 83 Loaded):VolumeTag =
000001
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
...
      Storage Element 83:Empty:VolumeTag=
      Storage Element 84:Full :VolumeTag=000002
      Storage Element 85:Full :VolumeTag=000003
      Storage Element 86:Full :VolumeTag=000004
      Storage Element 87:Full :VolumeTag=000005
      Storage Element 88:Full :VolumeTag=000006
      Storage Element 89:Full :VolumeTag=000007
      Storage Element 90:Full :VolumeTag=000008
      Storage Element 91:Full :VolumeTag=000009
      Storage Element 92:Full :VolumeTag=000010
      Storage Element 93:Full :VolumeTag=000011
      Storage Element 94:Full :VolumeTag=000012
      Storage Element 95:Full :VolumeTag=000013
      Storage Element 96:Full :VolumeTag=000014
      Storage Element 97:Full :VolumeTag=000015
      Storage Element 98:Full :VolumeTag=000016
      Storage Element 99:Full :VolumeTag=000017
      Storage Element 100:Full :VolumeTag=000018
      Storage Element 101:Full :VolumeTag=000019
      Storage Element 102:Full :VolumeTag=000020

Did I do something wrong? I've successfully used Bacula with a 15 slot AIT
loader with one tape engine. I am not sure why I am having so many problems
with this setup.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to