1. bacula-sd non prompt connection: please solve this problem appart, using telnet to port 9103 and status storage commands to try to diagnose the connection problem.
2. Tape Library loading tapes problem: maybe a powercycle to the library will solve it, but it would nice to check the mtx.log file to fetch more information about this. It's likely that your autochanger isn't providing the new status after the tape is load. Other user solved this increasing all mtx-changer.conf sleep variables to 10 (seconds), witch is a valid action to take if you keep receiving this kind of errors: http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/err-child-died-from-signal-15-termination-91750/
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)