Bacula-users

Re: [Bacula-users] newbie - problem labeling / adding tapes to pool

2012-10-02 13:34:14
Subject: Re: [Bacula-users] newbie - problem labeling / adding tapes to pool
From: "Clark, Patricia A." <clarkpa AT ornl DOT gov>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 2 Oct 2012 13:30:17 -0400
The output below indicates that there is a bacula label on the tapes, otherwise 
you would receive and Input/Output error and a message about it not being a 
bacula labeled tape.  I have run into this issue before and it took a bit of 
manual manipulation to get the catalog to be updated to where the tape was 
recognized to be in the library.  Try working with one problem slot/tape at a 
time and getting all of your parameters on the command line.  These will 
relabel the tapes twice, but you should be able to get them recognized and then 
move forward.

mount storage="HP Autoloader" drive=0 slot=1
update volume="TPBMU011" volstatus="Recycle"
relabel storage="HP Autoloader" oldvolume="TPBMU011" volume="TPBMU011X" 
pool="Default" drive="0" slot=1
update volume="TPBMU011X" volstatus="Recycle"
relabel storage="HP Autoloader" oldvolume="TPBMU011X" volume="TPBMU011" 
pool="Default" drive="0" slot=1
release storage="HP Autoloader" drive=0

If the above commands work for you, try the status check again.
status slots storage="HP Autoloader" drive=0

If it doesn't, please post the exact command and output.
Wash – rinse – repeat with each problem slot/tape.

Patti Clark
Linux Administrator
Research and Development Systems Support Oak Ridge National Laboratory
865-576-7718

From: Simon Tyler <simon AT tpmcomm DOT com<mailto:simon AT tpmcomm DOT com>>
Date: Monday, October 1, 2012 6:12 PM
To: Tim Krieger <tim.krieger AT neverblue DOT com<mailto:tim.krieger AT 
neverblue DOT com>>
Cc: Dan Langille <dan AT langille DOT org<mailto:dan AT langille DOT org>>, 
"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: Re: [Bacula-users] newbie - problem labeling / adding tapes to pool

Hi Tim,

I don't know about another application but bacula does correctly read the 
barcode labels during: update slots scan eg. below.
But then it doesn't seem to be able to find it when I try to add it to the 
catalog, it's just ignored. In the example below, this is after me uninstalling 
and reinstalling bacula. I haven't made any attempts to relabel manually or 
outside of bacula so the only way it can see that barcode is by scanning,

Thanks,

*update slots scan
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<http://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<http://pmappp01.tpmcomm.com:9103> ...
3306 Issuing autochanger "list" command.
Connecting to Storage daemon HP Autoloader at 
pmappp01.tpmcomm.com:9103<http://pmappp01.tpmcomm.com:9103> ...
3307 Issuing autochanger "unload slot 8, drive 0" command.
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3001 Volume=TPMBU011 Slot=1
Volume "TPMBU011" not found in catalog. Slot=1 InChanger set to zero.
Connecting to Storage daemon HP Autoloader at 
pmappp01.tpmcomm.com:9103<http://pmappp01.tpmcomm.com:9103> ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
3001 Volume=TPMBU019 Slot=2
Volume "TPMBU019" not found in catalog. Slot=2 InChanger set to zero.
Connecting to Storage daemon HP Autoloader at 
pmappp01.tpmcomm.com:9103<http://pmappp01.tpmcomm.com:9103> ...
3307 Issuing autochanger "unload slot 2, drive 0" command.
3304 Issuing autochanger "load slot 3, drive 0" command.
3305 Autochanger "load slot 3, drive 0", status is OK.
3001 Volume=TPMBU001 Slot=3
Catalog record for Volume "TPMBU001" is up to date.
Connecting to Storage daemon HP Autoloader at 
pmappp01.tpmcomm.com:9103<http://pmappp01.tpmcomm.com:9103> ...
3307 Issuing autochanger "unload slot 3, drive 0" command.
3304 Issuing autochanger "load slot 4, drive 0" command.
3305 Autochanger "load slot 4, drive 0", status is OK.
3001 Volume=TPMBU005 Slot=4
Catalog record for Volume "TPMBU005" is up to date.
Connecting to Storage daemon HP Autoloader at 
pmappp01.tpmcomm.com:9103<http://pmappp01.tpmcomm.com:9103> ...
3307 Issuing autochanger "unload slot 4, drive 0" command.




On Fri, Sep 28, 2012 at 7:12 PM, Tim Krieger <tim.krieger AT neverblue DOT 
com<mailto:tim.krieger AT neverblue DOT com>> wrote:
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<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<mailto: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<http://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<http://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,

________________________________
This electronic mail transmission and any accompanying attachments contain 
confidential information intended only for the use of the individual or entity 
named above. Any dissemination, distribution, copying or action taken in 
reliance on the contents of this communication by anyone other than the 
intended recipient is strictly prohibited. If you have received this 
communication in error please immediately delete the e-mail and either notify 
the sender at the above e-mail address or by telephone at +1 
250.386.5323<tel:%2B1%20250.386.5323>.


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>