Bacula-users

Re: [Bacula-users] bacula jobs use volumes from the wrong pool - bug?

2012-07-09 14:39:37
Subject: Re: [Bacula-users] bacula jobs use volumes from the wrong pool - bug?
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 9 Jul 2012 19:37:04 +0100
>>>>> On Fri, 06 Jul 2012 11:12:35 -0700, Stephen Thompson said:
> 
> On 07/06/2012 11:01 AM, Martin Simmons wrote:
> >>>>>> On Thu, 05 Jul 2012 11:35:15 -0700, Stephen Thompson said:
> >>
> >> Hello again,
> >>
> >> Here's something even stranger...  Another Full job logs that it's
> >> written to a volume in the Full pool (FB0956), but then the status
> >> output of the job lists a volume in the Incremental pool (IM0093).  This
> >> Incremental volume was never even mentioned in the log as a volume to
> >> which the job despooled.
> >
> > It could be a database problem (the volumes listed in the status output come
> > from a query).  What is the output of the sql commands below?
> >
> > SELECT VolumeName,JobMedia.* FROM JobMedia,Media WHERE 
> > JobMedia.JobId=242323 AND JobMedia.MediaId=Media.MediaId;
> >
> > SELECT MediaId,VolumeName FROM Media WHERE Media.VolumeName in 
> > ('IM0093','FB0956');
> >
> 
> Looks like it did in fact write to the Incremental tape IM0093 instead 
> of the requested Full tape BUT logged that it wrote to a Full tape 
> FB0956.  This begs the questions 1) Why is it writing to a tape in 
> another pool? and 2) Why is logging that it wrote to a different tape 
> than it did?

You could verify that IM0093 contains the data by using bls -j with the tape
loaded (but not mounted in Bacula).

It looks like you have concurrent jobs (non-consecutive JobMediaId values).
Was another job trying to use IM0093?  Maybe IM0093 was in another drive and
Bacula mixed up the drives somehow?

__Martin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users