Bacula-users

Re: [Bacula-users] Virtual Changer / Marking Volume "xxxxx" in Error in Catalog

2011-10-31 12:46:57
Subject: Re: [Bacula-users] Virtual Changer / Marking Volume "xxxxx" in Error in Catalog
From: Sébastien WENSKE <sebastien AT wenske DOT fr>
To: Josh Fisher <jfisher AT pvct DOT com>, "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 31 Oct 2011 16:44:52 +0000
Hi John,

Yes, there are a lot of jobs that starts at the same time for the same pool.

50 jobs ----\           3 file devices             /--------> pool A
                         ---> DISKCHANGER------ 
50 jobs ----/             20 slots                      \--------> pool B

My goal is to have concurrent running jobs.


" Warning: Volume "F0005" wanted on "VT-0"
> (/tmp/autochanger/drive0) is in use by device "VT-1""

Is it possible to tell the autoloader to takes an appendable or any other 
available volume when I try to access an IN USE volume ?

Thanks for your help,

Sébastien WENSKE



-----Message d'origine-----
De : Josh Fisher [mailto:jfisher AT pvct DOT com] 
Envoyé : lundi 31 octobre 2011 16:05
À : bacula-users AT lists.sourceforge DOT net
Objet : Re: [Bacula-users] Virtual Changer / Marking Volume "xxxxx" in Error in 
Catalog


On 10/29/2011 10:06 AM, Sébastien WENSKE wrote:
> Hi List !
>
> Does someone knows why "sometimes" Bacula marks Volumes in Error when 
> it can't load a Virtual Tape (a file) because it's already use by 
> another Virtual Device in the Virtual AutoChanger ? I specified " 
> Prefer Mounted Volumes = no" in the JobDefs
>
>   - I use "disk-changer"  provided with the last build of Bacula.
>   - I have 1 AutoChanger (VTL-0) with 3 Virtual Devices (VT-0,1,2)
>   - there is available Virtual Tapes in the Scratch Pool

Are multiple jobs starting at the same time and writing to the same pool? If 
so, then both jobs are selecting the same volume because it is indeed the next 
available volume. However, because there are multiple devices, the two jobs 
likely get assigned to different devices. The same volume cannot be mounted on 
two different devices, therefore one job gets the volume mounted on its 
assigned device and the other job gets the warnings and eventually marks the 
volume in error because it thinks it cannot be mounted.

>
> Logs:
>
> 29-Oct 13:56 cr0deb02-dir JobId 497: Using Device "VT-0"
> 29-Oct 13:56 cr0deb02-sd JobId 497: 3307 Issuing autochanger "unload 
> slot 6, drive 0" command.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Warning: Volume "F0005" wanted on "VT-0"
> (/tmp/autochanger/drive0) is in use by device "VT-1"
> (/tmp/autochanger/drive1) 29-Oct 13:59 cr0deb02-sd JobId 497: 3301 
> Issuing autochanger "loaded? drive 0" command.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3302 Autochanger "loaded? drive 
> 0",
> result: nothing loaded.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Warning: Volume "F0005" not on 
> device "VT-0" (/tmp/autochanger/drive0).
> 29-Oct 13:59 cr0deb02-sd JobId 497: Marking Volume "F0005" in Error in 
> Catalog.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3301 Issuing autochanger "loaded? 
> drive 0" command.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3302 Autochanger "loaded? drive 
> 0",
> result: nothing loaded.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Warning: Volume "F0005" not on 
> device "VT-0" (/tmp/autochanger/drive0).
> 29-Oct 13:59 cr0deb02-sd JobId 497: Marking Volume "F0005" in Error in 
> Catalog.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Warning: mount.c:217 Open device "VT-0"
> (/tmp/autochanger/drive0) Volume "F0005" failed: ERR=dev.c:549 Could 
> not
> open: /tmp/autochanger/drive0, ERR=No such file or directory 29-Oct 
> 13:59 cr0deb02-sd JobId 497: 3301 Issuing autochanger "loaded? drive 
> 0" command.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3302 Autochanger "loaded? drive 
> 0",
> result: nothing loaded.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3304 Issuing autochanger "load 
> slot 7, drive 0" command.
> 29-Oct 13:59 cr0deb02-sd JobId 497: 3305 Autochanger "load slot 7, 
> drive 0", status is OK.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Volume "F0007" previously written, 
> moving to end of data.
> 29-Oct 13:59 cr0deb02-sd JobId 497: Ready to append to end of Volume "F0007"
>
> It tried to load Volume F00005 2 times, then it load the Volume F00007.
>
>
> Any advices? Best Regards,
>
> Sébastien WENSKE


------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users