Bacula-users

Re: [Bacula-users] autochanger woes

2014-09-19 16:21:02
Subject: Re: [Bacula-users] autochanger woes
From: "RAT" <robert3t AT netzero DOT net>
To: clarkpa AT ornl DOT gov
Date: Fri, 19 Sep 2014 20:14:39 GMT
[root@bacula1 log]# lsscsi –g
cannot decode –g as an integer
[root@bacula1 log]# lsscsi
[0:2:0:0]    disk    DELL     PERC H710P       3.13  /dev/sda 
[0:2:1:0]    disk    DELL     PERC H710P       3.13  /dev/sdb 
[1:0:0:0]    tape    IBM      ULT3580-HH6      D8E5  /dev/st0 
[1:0:1:0]    tape    IBM      ULT3580-HH6      D8E5  /dev/st1 
[1:0:1:1]    mediumx IBM      3573-TL          C.30  /dev/sch0
[6:0:0:0]    cd/dvd  TSSTcorp DVD-ROM SN-108FB D150  /dev/sr0 
[8:0:0:0]    tape    IBM      ULT3580-HH6      D8E5  /dev/st2 
[8:0:1:0]    tape    IBM      ULT3580-HH6      D8E5  /dev/st3 


Robert Threet
http://yesistilluseperl.blogspot.com/

---------- Original Message ----------
From: "Clark, Patricia A." <clarkpa AT ornl DOT gov>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT 
lists.sourceforge DOT net>
Subject: Re: [Bacula-users] autochanger woes
Date: Fri, 19 Sep 2014 12:24:52 +0000

What is the output of  the following command?
lsscsi –g

Patti Clark
Linux System Administrator
R&D Systems Support Oak Ridge National Laboratory

From: RAT <robert3t AT netzero DOT net<mailto:robert3t AT netzero DOT net>>
Date: Thursday, September 18, 2014 at 5:43 PM
To: "bacula-users AT lists.sourceforge DOT net<mailto:bacula-users AT 
lists.sourceforge DOT net>" <bacula-users AT lists.sourceforge DOT 
net<mailto:bacula-users AT lists.sourceforge DOT net>>
Subject: [Bacula-users] autochanger woes

Still having issues (I took 10 days off for another project).

I've tried a lot of things:

I added bacula to the tape group, chown bacula:tape /dev/nst* & /dev/sg*, I've 
ran the SELinux recommend:

[root@bacula1 sbin]# grep bacula-sd /var/log/audit/audit.log | audit2allow -M 
mypol
******************** IMPORTANT ***********************
To make this policy package active, execute:
semodule -i mypol.pp

I set SELinux to permissive, restarted bacula many times...  No dice.

Config looks like this (but I've tried using sg devices for Drive-*)

Autochanger {
  Name = DL4000
  Device = Drive1
  Device = Drive2
  Device = Drive3
  Device = Drive4
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg4
}

Device {
  Name = Drive1                      #
  Drive Index = 0
  Media Type = LTO-6-Drive
  Archive Device = /dev/nst2
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
#  #
#  # Enable the Alert command only if you have the mtx package loaded
#  # Note, apparently on some systems, tapeinfo resets the SCSI controller
#  #  thus if you turn this on, make sure it does not reset your SCSI
#  #  controller.  I have never had any problems, and smartctl does
#  #  not seem to cause such problems.
#  #
#  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
#  If you have smartctl, enable this, it has more info than tapeinfo
  Alert Command = "sh -c 'smartctl -H -l error %c'"
}

My errors:

[root@bacula1 sbin]# ./bconsole
Connecting to Director localhost:9101
1000 OK: bacula-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: File
     2: DL4000
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 4
Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ...
^C
[root@bacula1 sbin]# ./bconsole
Connecting to Director localhost:9101
1000 OK: bacula-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: File
     2: DL4000
Select Storage resource (1-2): 2
Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ...
Enter autochanger drive[0]: 4
Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive1" has 48 slots.
Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
  10  000047L6
  11  000038L6
  14  000039L6
  15  000053L6
  18  000023L6
  19  000059L6
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3): 3
Connecting to Storage daemon DL4000 at bacula1.usi.edu:9103 ...
Sending label command for Volume "000047L6" Slot 10 ...
3307 Issuing autochanger "unload slot 14, drive 0" command.
3304 Issuing autochanger "load slot 10, drive 0" command.
3992 Bad autochanger "load slot 10, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000047L6.
Sending label command for Volume "000038L6" Slot 11 ...
3307 Issuing autochanger "unload slot 10, drive 0" command.
3304 Issuing autochanger "load slot 11, drive 0" command.
3992 Bad autochanger "load slot 11, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000038L6.
Sending label command for Volume "000039L6" Slot 14 ...
3307 Issuing autochanger "unload slot 11, drive 0" command.
3304 Issuing autochanger "load slot 14, drive 0" command.
3992 Bad autochanger "load slot 14, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000039L6.
Sending label command for Volume "000053L6" Slot 15 ...
3307 Issuing autochanger "unload slot 14, drive 0" command.
3304 Issuing autochanger "load slot 15, drive 0" command.
3992 Bad autochanger "load slot 15, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000053L6.
Sending label command for Volume "000023L6" Slot 18 ...
3307 Issuing autochanger "unload slot 15, drive 0" command.
3304 Issuing autochanger "load slot 18, drive 0" command.
3992 Bad autochanger "load slot 18, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000023L6.
Sending label command for Volume "000059L6" Slot 19 ...
3307 Issuing autochanger "unload slot 18, drive 0" command.
3304 Issuing autochanger "load slot 19, drive 0" command.
3992 Bad autochanger "load slot 19, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

Label command failed for Volume 000059L6.

*

Robert Threet
http://yesistilluseperl.blogspot.com/

____________________________________________________________
NetZero now offers 4G mobile broadband. Sign up now.
http://www.netzero.net/?refcd=NZINTISP0512T4GOUT1

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net<mailto:Bacula-users AT 
lists.sourceforge DOT net>
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

____________________________________________________________
NetZero now offers 4G mobile broadband. Sign up now.
http://www.netzero.net/?refcd=NZINTISP0512T4GOUT1

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users