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.
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?
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
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard
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