Bacula-users

Re: [Bacula-users] update slots reports Autochanger has 0 slots

2014-12-05 05:27:00
Subject: Re: [Bacula-users] update slots reports Autochanger has 0 slots
From: "Masopust, Christian" <christian.masopust AT siemens DOT com>
To: Süleyman Kuran <skuran AT ayk.gov DOT tr>, Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
Date: Fri, 5 Dec 2014 10:24:21 +0000

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:skuran AT ayk.gov DOT tr]
Gesendet: Freitag, 05. Dezember 2014 10:02
An: Ana Emília M. Arruda
Cc: bacula-users AT lists.sourceforge DOT 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" <emiliaarruda AT gmail DOT com>
Kime: "Rainer Hackel" <rainer.hackel AT degnerpartner DOT com>
Kk: "Süleyman Kuran" <skuran AT ayk.gov DOT tr>, "Can Şirin" <sirincan AT itu.edu DOT tr>, bacula-users AT lists.sourceforge DOT 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.hackel AT degnerpartner DOT 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:skuran AT ayk.gov DOT tr]
Gesendet: Donnerstag, 4. Dezember 2014 19:23
An: Can Şirin
Cc: bacula-users AT lists.sourceforge DOT 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" <sirincan AT itu.edu DOT tr>
Kime: bacula-users AT lists.sourceforge DOT 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.GD22024 AT nionex DOT net/)

Quoting Rainer Hackel <rainer.hackel AT degnerpartner DOT 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 ...

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 AT lists.sourceforge DOT 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 AT lists.sourceforge DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users