Bacula-users

[Bacula-users] problem with autochanger

2013-03-18 18:04:35
Subject: [Bacula-users] problem with autochanger
From: Roberto Scattini <roberto.scattini AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 18 Mar 2013 18:59:36 -0300
hi list,

we have a Dell TL2000 with one robot and two drives, and we cant configure it. we receive the error "3999 Device "Autochanger" not found or could not be opened." when we try to label a tape.

this is a snippet of our config:

bacula-dir.conf:

Storage {
  Name = "Autochanger"
  Address = 192.168.206.123         # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "*****"                     # password for Storage daemon
  Device = "Autochanger"              # must be same as Device in Storage daemon
  Media Type = LTO-5                  # must be same as MediaType in Storage daemon
  Autochanger = yes                    # enable for autochanger device
}
------------------------------

and bacula-sd.conf:

Autochanger{
  Name = "Autochanger"
  Device = Drive-1
  Device = Drive-2
  Changer Device = /dev/tape/by-id/scsi-1IBM_3573-TL_00X2U78X8708_LL0
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Device{
  Name = Drive-1
  Drive Index = 1
  Autochanger = yes
  Device Type = Tape
  Media Type = LTO-5
  LabelMedia = yes
  Archive Device = /dev/tape/by-id/scsi-35000e1114d0a1001-nst
  Always Open = yes
  AutomaticMount = yes
  RemovableMedia = yes
  RandomAccess = yes
}


Device{
  Name = Drive-2
  Drive Index = 2
  Autochanger = yes
  Device Type = Tape
  Media Type = LTO-5
  LabelMedia = yes
  Archive Device = /dev/tape/by-id/scsi-35000e1114d0a1004-nst
  Always Open = yes
  AutomaticMount = yes
  RemovableMedia = yes
  RandomAccess = yes
}

------------------------------ 

we use those long names because our devices changes names between reboots (if someona has the idev rules to fix them, they are welcome...).

here i have the error:

developer@w3:~$ sudo bconsole
Connecting to Director 192.168.206.123:9101
1000 OK: w3-dir Version: 5.2.5 (26 January 2012)
Enter a period to cancel a command.
*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: File
     2: Autochanger
Select Storage resource (1-2): 2
Connecting to Storage daemon Autochanger at 192.168.206.123:9103 ...
Enter autochanger drive[0]: 0
Enter new Volume name: mansual
Enter slot (0 or Enter for none): 2
Defined Pools:
     1: Default
     2: File
     3: Scratch
     4: Catalogo
     5: Mensual
     6: Semanal
     7: Diario
Select the Pool (1-7): 5
Connecting to Storage daemon Autochanger at 192.168.206.123:9103 ...
Sending label command for Volume "mansual" Slot 2 ...
3999 Device "Autochanger" not found or could not be opened.
Label command failed for Volume mansual.
Do not forget to mount the drive!!!

we are using ubuntu 12.04 LTS with bacula installed from repos and sqlite db.

thanks in advance!



--
Roberto Scattini
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>