Bacula-users

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

2014-12-04 17:26:00
Subject: Re: [Bacula-users] update slots reports Autochanger has 0 slots
From: Rainer Hackel <rainer.hackel AT degnerpartner DOT com>
To: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>, Süleyman Kuran <skuran AT ayk.gov DOT tr>, Can Şirin <sirincan AT itu.edu DOT tr>, John Drescher <drescherjm AT gmail DOT com>
Date: Thu, 4 Dec 2014 22:23:06 +0000

All Problems seem to come from SELINUX (CentOS 6.6)

 

The following modification in file /etc/sysconfig/selinux looks like a solution for the problems.

changed SELINUX=enforcing

to SELINUX=permissive

 

There must have come any changes in SELINUX during the last "yum update". Unfortunately I dont understand the SELINUX thing, so I can't refine the problem, but somehow it prevented the Bacula-Director to connect to the database as well as getting the slot information of the autochanger.

 

THX @ Ana, Süleyman, Can and John

Rainer

 

Von: Ana Emília M. Arruda [mailto:emiliaarruda AT gmail DOT com]
Gesendet: Donnerstag, 4. Dezember 2014 22:36
An: Rainer Hackel
Cc: Süleyman Kuran; Can Şirin; bacula-users AT lists.sourceforge DOT net
Betreff: 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