Bacula-users

Re: [Bacula-users] Invalid Tape position - Marking tapes with error

2011-07-07 12:34:25
Subject: Re: [Bacula-users] Invalid Tape position - Marking tapes with error
From: James Woodward <james.woodward AT ualberta DOT ca>
To: Martin Simmons <martin AT lispworks DOT com>
Date: Thu, 7 Jul 2011 10:30:36 -0600
Hello,

I haven't seen anything about using nsa devices to use over something like an 
sa device. I did a bit of a search but haven't seen anything that really 
explains that portion to me.

When I set these up I did see a recommendation to use the pass through devices 
e.g pass0, pass1, pass2, pass3. I don't remember the specifics but the 
passthrough devices themselves seemed to be problematic. 

I ran through all the btape tests recommended in the manual when we did the 
initial set up and all the tests did pass. 

The Bacula config files are quite different from the older ones. I didn't think 
this type of issue would really come down to any of these as a potential 
problem. I will provide the config info for one of my devices from the sd. They 
are all pretty much the same except for the Name, Drive Index, and Archive 
Device.

The way the message is worded it sounds like Bacula didn't think there should 
be any information on the tape and it found some so it marked the volume with 
error. I'm just not sure why that would happen unless it isn't able to query 
the database properly. 

If it would be helpful I could make my configs available without passwords or 
client configs as well as the set up steps I put together when building the 
server.

Thanks again,

James

----

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO4
  Archive Device = /dev/sa0
  Autoselect = yes              #(default)
  Automatic Mount = yes 
  AlwaysOpen = yes              #(default)
  RemovableMedia = yes          #(default)
  RandomAccess = no
  Requires Mount = no           #(default)
  AutoChanger = yes
  Hardware End of Medium = no   #(not default, FFSF & !HEoM is common)
  Fast Forward Space File = yes 
  BSF at EOM = yes              #(not default, necessary)
  Backward Space Record = no    #(not default)
  Backward Space File = no      #(not default)
  TWO EOF = yes                 #(not default)
  Maximum File Size = 4GB       #(def is 1GB but > reduces stops to write EOF)
  Device Type = Tape
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Spool Directory = /spool
  Maximum Spool Size = 3800G
  Maximum Job Spool Size = 800G
}




On 2011-07-07, at 9:21 AM, Martin Simmons wrote:

>>>>>> On Thu, 7 Jul 2011 09:07:32 -0600, James Woodward said:
>> 
>> Hello,
>> 
>> Our older production servers are running FreeBSD 7.2 and Bacula 3.0.2.
>> 
>> This particular server with the this issue is running FreeBSD 8.1 and Bacula
>> 5.0.3 installed from the packages.
> 
> OK, so it could be an OS bug too.
> 
> Using /dev/sa2 on FreeBSD is not advisable -- can you try it with /dev/nsa2
> instead?
> 
> What is the Device config for this drive in bacula-sd.conf?  Is that identical
> to the production machines?
> 
> Have you tried running the btape test?
> 
> __Martin
> 
> 
>> 
>> Thanks,
>> 
>> James
>> 
>> On 2011-07-07, at 8:41 AM, Martin Simmons wrote:
>> 
>>>>>>>> On Thu, 7 Jul 2011 08:04:50 -0600, James Woodward said:
>>>> 
>>>> Hello Martin,
>>>> 
>>>> It's a Dell L500 and does not auto rewind. We have another 5 identical ones
>>>> in production but they are running an older version of Bacula. This seems 
>>>> to
>>>> be new to us with Bacula 5.0.3.
>>> 
>>> It's true, "Expected 0, got 20" sounds like the opposite problem.
>>> 
>>> Which operating system is running on the SD and is that the same in
>>> production?
>>> 
>>> __Martin
>>> 
>>> 
>>>> 
>>>> Thanks for the reply.
>>>> 
>>>> James
>>>> 
>>>> 
>>>> On 2011-07-07, at 4:28 AM, Martin Simmons wrote:
>>>> 
>>>>>>>>>> On Wed, 6 Jul 2011 08:29:46 -0600, James Woodward said:
>>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> I've tried searching around a bit but I can't seem to find an answer as 
>>>>>> to
>>>>>> what might cause this problem. I have qutie a few tapes that have been
>>>>>> marked in error due to Invalid Tape position. I've listed the Invalid 
>>>>>> tape
>>>>>> position errors as well as detail about one of the affected volumes. Has
>>>>>> anyone else encountered this or have any idea's as to why it might be
>>>>>> happening? For the life of me I can't figure out what the Expected 0 
>>>>>> portion
>>>>>> refers to. I thought it might refer to volfiles but those numbers don't
>>>>>> always match either.
>>>>>> ...
>>>>>> Invalid Tape Position Errors
>>>>>> # grep -i "invalid tape position" log
>>>>>> 11-Mar 18:01 esqb6-sd JobId 196: Error: Invalid tape position on volume 
>>>>>> "090137" on device "Drive-2" (/dev/sa2). Expected 0, got 20
>>>>> 
>>>>> Is /dev/sa2 an auto-rewinding device?  Bacula must use a no-rewinding 
>>>>> device
>>>>> (normally called /dev/nsa2 on BSD).
>>>>> 
>>>>> __Martin
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> All of the data generated in your IT infrastructure is seriously valuable.
>>>>> Why? It contains a definitive record of application performance, security 
>>>>> threats, fraudulent activity, and more. Splunk takes this data and makes 
>>>>> sense of it. IT sense. And common sense.
>>>>> http://p.sf.net/sfu/splunk-d2d-c2
>>>>> _______________________________________________
>>>>> Bacula-users mailing list
>>>>> Bacula-users AT lists.sourceforge DOT net
>>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>> 
>>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> All of the data generated in your IT infrastructure is seriously valuable.
>>> Why? It contains a definitive record of application performance, security 
>>> threats, fraudulent activity, and more. Splunk takes this data and makes 
>>> sense of it. IT sense. And common sense.
>>> http://p.sf.net/sfu/splunk-d2d-c2
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users AT lists.sourceforge DOT net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>> 
>> 
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users