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™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users