Hi Ana,

in my case (a very, very dumb fault), the path in "changer command" was wrong. 
No error messages
hab been displayed, just the "Autochanger has 0 slots".....

br,
christian

Von: Süleyman Kuran [mailto:sku...@ayk.gov.tr]
Gesendet: Freitag, 05. Dezember 2014 10:02
An: Ana Emília M. Arruda
Cc: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots



Hello Ana,

What I recently experienced was "Autochanger has 0 slots" error when 
"AutoChanger = yes" line is missing in Device directive in bacula-sd.conf with 
Centos 6 and Bacula 5.2.13

Best regards,

Suleyman


________________________________
Kimden: "Ana Emília M. Arruda" 
<emiliaarr...@gmail.com<mailto:emiliaarr...@gmail.com>>
Kime: "Rainer Hackel" 
<rainer.hac...@degnerpartner.com<mailto:rainer.hac...@degnerpartner.com>>
Kk: "Süleyman Kuran" <sku...@ayk.gov.tr<mailto:sku...@ayk.gov.tr>>, "Can Şirin" 
<sirin...@itu.edu.tr<mailto:sirin...@itu.edu.tr>>, 
bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>
Gönderilenler: 4 Aralık Perşembe 2014 23:35:37
Konu: Re: [Bacula-users] update slots reports Autochanger has 0 slots

Hello Rainer,

Can you try changing Device Name? You have Name and Media Type using the same 
"LTO-5". Bacula doesn´t work fine when you use the same name for different 
things. If you could, I recommend you setting name with "Drive-0" or something 
like this:

Autochanger {
  Name = Autochanger
  Device = Drive-0

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO-5
...
}

Best regards,
Ana

On Thu, Dec 4, 2014 at 6:16 PM, Rainer Hackel 
<rainer.hac...@degnerpartner.com<mailto:rainer.hac...@degnerpartner.com>> wrote:
Hi Süleyman,
this is the current definition:

Autochanger {
  Name = Autochanger
  Device = LTO-5
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/changer
}

Device {
  Name = LTO-5
  Drive Index = 0
  Media Type = LTO-5
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Spool Directory = /data/bacula-spool
  Maximum File Size = 12GB
  Maximum Spool Size = 3200G
#  Maximum Block Size = 2000000
}

Do you have an other idea?
Rainer

Von: Süleyman Kuran [mailto:sku...@ayk.gov.tr<mailto:sku...@ayk.gov.tr>]
Gesendet: Donnerstag, 4. Dezember 2014 19:23
An: Can Şirin
Cc: 
bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>
Betreff: Re: [Bacula-users] update slots reports Autochanger has 0 slots



Merhaba Can,

Maybe the Device directive in bacula-sd.conf, where the drives are defined, is 
missing AutoChanger = yes line.

Regards,


________________________________
Kimden: "Can Şirin" <sirin...@itu.edu.tr<mailto:sirin...@itu.edu.tr>>
Kime: 
bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>
Gönderilenler: 4 Aralık Perşembe 2014 17:01:37
Konu: Re: [Bacula-users] update slots reports Autochanger has 0 slots


Hi,

Check this posts:

http://www.freebsddiary.org/tape-library.php
http://www.freebsddiary.org/tape-library-integration.php

Same issue were discussed before. 
(http://sourceforge.net/p/bacula/mailman/bacula-users/thread/20130306100525.gd22...@nionex.net/)

Quoting Rainer Hackel 
<rainer.hac...@degnerpartner.com<mailto:rainer.hac...@degnerpartner.com>>:
Hello Bacula users,
Have some problems with a Quantum SuperLoader 3 LTO-6, and try to break them 
down in small pieces… here is one:

“update slots“ command in bconsole says:
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: Autochanger
Connecting to Storage daemon Autochanger at 
192.168.1.15:9103<http://192.168.1.15:9103> ...
3306 Issuing autochanger "slots" command.
Device "Autochanger" has 0 slots.
No slots in changer to scan.

But:
“/usr/libexec/bacula/mtx-changer /dev/changer slots” reports 16

Of course the Autochanger has 16 slots.
Someone has  an idea?

Best regards
Rainer



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to