Bacula-users

[Bacula-users] Recycled Jobs Not Being Labeled

2008-05-08 21:30:37
Subject: [Bacula-users] Recycled Jobs Not Being Labeled
From: Justin Maness <justin AT impulse DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 08 May 2008 18:30:29 -0700
Friends,

        I have been scouring the internet for an answer to this.  I am not 
certain as to what I am doing wrong.  I am trying to recycle my 'tape' 
and it gets flagged as recycle.  I see it says recycled in the logs but 
when it goes to mount, automatically or not, it I get an error that 
there is no volume label.  The file size is reduced to zero after the 
recycle occurs.  To me everything looks right, but Bacula isn't 
rewriting the label.

        When I try to use the relabel command manually it won't allow me to 
relabel the tape with the same name.  I do not want to do this manually 
anyway.  When I delete the volume and readd it that fixes the symptom 
but not the problem.  I don't exactly know where to begin to provide 
proper data for this, but this is what my logs look like (see below.)

        I am running Bacula 2.2.10-b2 and I don't know if it has to do with 
that which causes this to occur.  I am running the latest version to 
address a problem race like condition acquiring tapes that are in use in 
another drive.  Please excuse my snippets of data below.  I couldn't 
find the chunk of verbose output that matches for volume 8 vs 7, but the 
results are the same.  I have recycle yes, auto prune yes, and I believe 
prune files is set to defaults.  I have also manually preformed a purge 
and a prune to try to follow the manual relabel steps.

        I can provide any data that may be useful.  I just don't know what is 
and my configs are very lengthy...  Thank you for reading this!


coal-sd: askdir.c:230-0 >dird CatReq Job=Gogo.2008-05-08_16.52.25 
GetVolInfo VolName=Vol0007 write=1
3001 OK mount. Device="jrcac-coal-1" (/var/lib/bacula/vchanger/jrcac/drive1)
coal-sd: askdir.c:182-0 <dird 1000 OK VolName=Vol0007 VolJobs=0 
VolFiles=0 VolBlocks=0 VolBytes=1 VolMounts=41 VolErrors=0 
VolWrites=3410257 MaxVolBytes=110000000000 VolCapacityBytes=0 
VolStatus=Recycle Slot=7 MaxVolJobs=0 MaxVolFiles=0 InChanger=1 
VolReadTime=26603219 VolWriteTime=1410140770 EndFile=25 
EndBlock=2625769321 VolParts=0 LabelType=0 MediaId=7
coal-sd: askdir.c:205-0 do_reqest_vol_info return true slot=7 Volume=Vol0007
coal-sd: autochanger.c:132-0 autoload: slot=7 InChgr=1 Vol=Vol0007
coal-sd: autochanger.c:220-0 After changer, status=0
coal-sd: label.c:81-0 Enter read_volume_label res=1 
device="jrcac-coal-1" (/var/lib/bacula/vchanger/jrcac/drive1) 
vol=Vol0007 dev_Vol=*NULL*
coal-sd: label.c:178-0 No volume label - bailing out


08-May 17:10 coal-dir JobId 8160: There are no more Jobs associated with 
Volume "Vol0008". Marking it purged.
08-May 17:10 coal-dir JobId 8160: All records pruned from Volume 
"Vol0008"; marking it "Purged"
08-May 17:10 coal-dir JobId 8160: Recycled volume "Vol0008"
08-May 17:10 coal-sd JobId 8160: Please mount Volume "Vol0008" or label 
a new one for:
     Job:          Gogo.2008-05-08_16.52.25
     Storage:      "jrcac-coal-1" (/var/lib/bacula/vchanger/jrcac/drive1)
     Pool:         jrcac43
     Media type:   File


-- 
Justin Maness

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>