Hey Simon,
The output from your status command is not returning the label information for the slots. Do you have another application that you can use to see if the autoloader is reading
the barcode labels correctly?
The following is what I get if there are no tapes in some slots (extra information is coming from BAT):
status slots storage=Tape
Connecting to Storage daemon Tape at backup:9103 ...
3306 Issuing autochanger "listall" command.
D|0|15|000111L5
S|1|1|000112L5|191688698880|Append|LTO5|Archive|1346372575|4499972575
S|2|2|000202L5|68536581120|Purged|LTO5|Tape|1348009726|1348614526
S|3|3|000209L5|64512|Append|LTO5|Scratch|0|31536000
S|4|4|000210L5|64512|Append|LTO5|Scratch|0|31536000
S|5|5|000211L5|64512|Append|LTO5|Scratch|0|31536000
S|6|6|000212L5|64512|Append|LTO5|Scratch|0|31536000
S|7|7|000213L5|64512|Append|LTO5|Scratch|0|31536000
S|8||||||||
S|9|9|000214L5|64512|Append|LTO5|Scratch|0|31536000
S|10|10|000215L5|64512|Append|LTO5|Scratch|0|315360000
S|11|11|000216L5|64512|Append|LTO5|Scratch|0|315360000
S|12|12|000217L5|64512|Append|LTO5|Scratch|0|315360000
S|13|13|000218L5|64512|Append|LTO5|Scratch|0|315360000
S|14||||||||
S|15|15|000111L5|963895145472|Append|LTO5|Tape|1348849630|1349454430
S|16|16|CLNU00L1|1|Cleaning||Tape|0|315360000
(slots 8 & 14 are empty) If I have new tapes in these slots that have not been labeled by bacula(but have barcode labels) I get the following :
status slots storage=Tape
Connecting to Storage daemon Tape at backup:9103 ...
3306 Issuing autochanger "listall" command.
D|0|15|000111L5
S|1|1|000112L5|191688698880|Append|LTO5|Archive|1346372575|4499972575
S|2|2|000202L5|68536581120|Purged|LTO5|Tape|1348009726|1348614526
S|3|3|000209L5|64512|Append|LTO5|Scratch|0|31536000
S|4|4|000210L5|64512|Append|LTO5|Scratch|0|31536000
S|5|5|000211L5|64512|Append|LTO5|Scratch|0|31536000
S|6|6|000212L5|64512|Append|LTO5|Scratch|0|31536000
S|7|7|000213L5|64512|Append|LTO5|Scratch|0|31536000
S|8|0|000219L5|?|?|?|?|0|0
S|9|9|000214L5|64512|Append|LTO5|Scratch|0|31536000
S|10|10|000215L5|64512|Append|LTO5|Scratch|0|315360000
S|11|11|000216L5|64512|Append|LTO5|Scratch|0|315360000
S|12|12|000217L5|64512|Append|LTO5|Scratch|0|315360000
S|13|13|000218L5|64512|Append|LTO5|Scratch|0|315360000
S|14|0|000220L5|?|?|?|?|0|0
S|15|15|000111L5|963895145472|Append|LTO5|Tape|1348849630|1349454430
S|16|16|CLNU00L1|1|Cleaning||Tape|0|315360000
Slot 8 & 14 show the barcode labels for the tapes, but no other information because they have not been labeled by bacula yet.
From: Simon Tyler [mailto:simon AT tpmcomm DOT com]
Sent: Friday, September 28, 2012 3:43 PM
To: Dan Langille
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] newbie - problem labeling / adding tapes to pool
OK
Hopefully I'm not annoying anyone with my updates.
Here is the latest:
I deleted the 5.2.6 install and installed 5.2.12, like so:
backup the config files etc.
delete all tapes by rewind, writing eof, rewind each one
do a: make uninstall of bacula
make sure that everything is deleted. I did this, and then deleted and recreated the bacula db, so Everything is wiped
download the latest version and install, configure, used my previous config files
see how bacula recognizes tapes
And after doing an : barcode label, I'm basically back where I was. Only 4 out of 8 tapes are recognized. At least it's behaving consistently broken.
*status slots
The defined Storage resources are:
1: File
2: HP Autoloader
Select Storage resource (1-2): 2
Connecting to Storage daemon HP Autoloader at
pmappp01.tpmcomm.com:9103 ...
3306 Issuing autochanger "slots" command.
Device "HP-0" has 8 slots.
Connecting to Storage daemon HP Autoloader at
pmappp01.tpmcomm.com:9103 ...
3306 Issuing autochanger "list" command.
Slot | Volume Name | Status | Media Type | Pool |
------+------------------+-----------+----------------------+--------------------|
1*| | ? | ? | ? |
2*| | ? | ? | ? |
3 | TPMBU001 | Append | LTO-4 | Default |
4 | TPMBU005 | Append | LTO-4 | Default |
5 | TPMBU007 | Append | LTO-4 | Default |
6 | TPMBU015 | Append | LTO-4 | Default |
7*| | ? | ? | ? |
8*| | ? | ? | ? |
So at this point, I'm not sure what to think. When I do an: update slots scan, it returns the correct slot and correct Volume name for all tapes in all slots. I did this before doing a label barcodes, so it seems to be reading the barcodes (this is after writing
eof)
but when I do a label barcodes, it only labels 4 out of 8 tapes. It's like it only sees 4 slots during this operation.
I'm going to see how backups run over the weekend, hopefully I'll get a full backup.
I'm wondering if it's possible that a cabling issue could cause this, or some incompatibility with the controller card. Or 4 tapes went bad at the same time, but that seems extremely unlikely. I tried the btape test again, everything passed, even when using
one of the 'mystery tapes' so I don't think it's the tape. When I check the mysql db, it says:
mysql> select concat(VolumeName,', ',Slot) from Media;
+------------------------------+
| concat(VolumeName,', ',Slot) |
+------------------------------+
| TPMBU001, 3 |
| TPMBU005, 4 |
| TPMBU007, 5 |
| TPMBU015, 6 |
+------------------------------+
4 rows in set (0.00 sec)
I'm sure people have had longer battles with bacula, but I'm getting discouraged. I'm thinking about taking the 4 "good" tapes out, connecting the tape drive to the old backup server, and trying backups using the same "bad" tapes and slots. That would rule
out tapes and slots. any suggestions much appreciated, bacula is breaking me
At least it's Friday,