Hey Simon,

So, it sounds like these tapes are from a previous bacula installation?  If 
there is no data on the tapes that you need, you can effectively erase them by 
writing an eof mark at the start of the tape(I believe you mentioned doing this 
earlier, possibly the four problem tapes were missed during that procedure?)

If there is no information on these tapes that you require, I would write the 
eof to the beginning of each tape again.  Once that is completed, you should be 
able to get your current bacula installation to label the tapes again with 
“label barcodes slot=1,2,3,4” (use the slot numbers for the tapes you just 
marked as empty) after which they should be available and working for you.

It might be a good idea to stop bacula(or unmount the tape drive) and remove 
the working tapes from your library prior to writing to the problem tapes, just 
in case the tools you are using to write directly to the tapes numbers the 
slots differently.





From: Simon Tyler [mailto:si...@tpmcomm.com]
Sent: Wednesday, October 03, 2012 9:07 AM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Fwd: newbie - problem labeling / adding tapes to pool

resending to the list

---------- Forwarded message ----------
From: Simon Tyler <simon*at*tpmcomm.com<http://tpmcomm.com>>
Date: Wed, Oct 3, 2012 at 12:01 PM
Subject: Re: [Bacula-users] newbie - problem labeling / adding tapes to pool
To: 
bacula-users-requ...@lists.sourceforge.net<mailto:bacula-users-requ...@lists.sourceforge.net>,
 clarkpa*at*ornl.gov<http://ornl.gov>


Hey Patti,

Here is what I get:
*mount storage="HP Autoloader" drive=0 slot=1
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3001 Mounted Volume: TPMBU011
3001 Device ""HP-0" (/dev/nst0)" is mounted with Volume "TPMBU011"
*update volume="TPBMU011" volstatus="Recycle"
sql_get.c:1094 Media record for Volume "TPBMU011" not found.

and I thought there was a typo, so I tried:

*update volume="TPMBU011" volstatus="Recycle"
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
sql_get.c:1094 Media record for Volume "TPMBU011" not found.


I did some searching and found results discussing how to import tape data to a 
fresh install or upgrade of bacula.
I tried stopping bacula, and ran a test bscan, with the idea that even though 
there was no data on the tape, maybe it would update the catalog, but that 
failed. I think it didn't work because I previously erased the tape. I also 
tried the regular old: "update slots" but of course it still only recognizes 
the same 4 out of 8 tapes.

[root@pmappp01 bin]# ./bscan -c bacula-sd.conf -v -V TPMBU011 /dev/nst0
bscan: butil.c:287 Using device: "/dev/nst0" for reading.
03-Oct 11:48 bscan JobId 0: No slot defined in catalog (slot=0) for Volume 
"TPMBU011" on "HP-0" (/dev/nst0).
03-Oct 11:48 bscan JobId 0: Cartridge change or "update slots" may be required.
03-Oct 11:48 bscan JobId 0: Ready to read from volume "TPMBU011" on device 
"HP-0" (/dev/nst0).
bscan: bscan.c:309 Using Database: bacula, User: bacula
bscan: bscan.c:444 Volume is prelabeled. This tape cannot be scanned.
Records would have been added or updated in the catalog:
      0 Media
      0 Pool
      0 Job
      0 File

Have you got any more suggestions? I'm willing to try anything,

Simon

================================================
Date: Tue, 2 Oct 2012 13:30:17 -0400
From: "Clark, Patricia A." <clarkpa*at*ornl.gov<mailto:clar...@ornl.gov>>
Subject: Re: [Bacula-users] newbie - problem labeling / adding tapes
        to pool
To: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>"
        
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Message-ID: 
<cc9095f9.21344%clar...@ornl.gov<mailto:cc9095f9.21344%25clar...@ornl.gov>>
Content-Type: text/plain; charset="Windows-1252"

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<tel:865-576-7718>


________________________________
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.
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to