Hi,

On 6/22/2006 8:04 PM, Emery Guevremont wrote:
> Well I finished running dbcheck in fix mode. It deleted a bunch of 
> fileids, but the problem is still there. But here's what I've been doing 
> to test it out.
> 
> Using btape, I use the label command to put the same label as what the 
> barcode reads. After I restart bacula-sd, and I run a job to use one of 
> the tapes (000033). I noticed in the debugging info, that bacula will 
> label the pre-label of the tape, and it preforms the backup with no 
> problem.
> 
> Now if I restart bacula-dir and bacula-sd and run another backup to use 
> the other tape (000022). Bacula again labels the prelabeled tape and 
> performs the backup with no problem.

Ok, so now you have two tapes, with names ending -22 and -33, right?

> Where the problem occurs is when I start 2 jobs, where each job use a 
> seperate tape(because the tape are in different pools and the jobs use 
> different pools of tape). Let's say the first job uses tape 000022. The 
> first job will always complete properly, but as soon as the second job, 
> which uses tape 000033 starts, I get this message:
> 
> 22-Jun 13:49 backup-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 22-Jun 13:49 backup-sd: 3302 Autochanger "loaded drive 0", result is 
> Slot 1.
> 22-Jun 13:49 backup-sd: Backup-sys.2006-06-22_13.45.47 Warning: Director 
> wanted Volume "000033" for device "Drive-1" (/dev/nst2).
>     Current Volume "000022" not acceptable because:
>     1998 Volume "000022" status is Append, not in Pool.
> 
> 
> So this means Bacula relabeled the tape 000033 to 000022 without even 
> logging about it. Whats going on!!! How could I debug this?

Hmm. I'm not sure the other tape was relabeled.

First, because I know of no case where Bacula labels a tape and doesn't 
even log it in the debug output.

Second, I'm not sure I recall your configuration correctly, but I 
suspect the following:

Have you run btape with the new SD configuration? Your problem 
description tastes like either your autochanger is not set up correctly, 
or your catalog is not up to date.

 From my experience, and regarding what you already did, I tend to 
assume it's a catalog question. You can check this by doing a llist on 
the volumes you have - I suspect they are not correctly assigned to a 
storage device, or are bot assigned to the same slot.

If that's the case, you can manually update the catalog (which can be a 
pain assuming you've got many volumes), or use a SQL command like 
'update Media set Slot=0,InChanger=0,StorageId=0;' Try this only if you 
know what it does - no guarantees! 8Although I did this some times...)

After that, these problems should disappear.

Arno

> Arno Lehmann wrote:
> 
>> Hi,
>>
>> On 6/21/2006 8:19 PM, Emery Guevremont wrote:
>> ...
>>
>>> Ya I updated my config for bacula-sd.conf, but it didn't change 
>>> anything.
>>>
>>> BTW, I'm running dbcheck in fix mode, and it's fixing a lot of 
>>> things, but I still don't see how that's gonna fix my problem.
>>>
>>> Here's the new bacula-sd.conf:
>>>
>>> Autochanger {
>>>   Name = "AutoLoader"
>>>   Device = Drive-1
>>>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>>>   Changer Device = /dev/sg1
>>> }
>>>
>>> Device {
>>>   Name = Drive-1
>>>   Drive Index = 0
>>>   Media Type = SDLT-320
>>>   Archive Device = /dev/nst2    # Normal archive device
>>>   Autochanger = yes
>>>   Autoselect = yes
>>>   LabelMedia = no;
>>>   AutomaticMount = yes;
>>>   AlwaysOpen = yes;
>>>   Spool Directory = /vservers/tmp
>>>   Maximum Spool Size = 10000000000
>>> #  Mount Anonymous Volumes = no;
>>> }
>>
>>
>> I don't have any other ideas now but to try and run a very simple test 
>> setup and create lots of debug output. Unfortunately, I never tried 
>> automatic volume labeling with a tape drive, so I have no idea how 
>> that should behave.
>>
>> I'd suggest to start with two small sets of tapes and, with a clean 
>> catalog and empty tapes start with 'update slots' and 'label barcodes'.
>>
>> Perhaps this allows someone to see what's going wrong in your setup.
>>
>> Arno
>>
>>
> 
> ------------------------------------------------------------------------
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to