On 3/22/2013 5:59 AM, Leon White wrote:
Hi list!
I am using Bacula 5.2.6 with vchanger 0.8.6 to backup a multi-terabyte
fileset to a bunch of 1 and 2TB drives in an eSATA virtual
autochanger. I have formatted each drive with one or two 2TB
partitions with 186x 5GB volume slots, and vchanger switches between 2
magazine bays when necessary for the 2TB drives.
My problem is that when bacula hits the last writable volume in the
virtual magazine, it attempts to load the next appendable volume from
the next available magazine. Obviously, I haven't changed the drive
yet, and bacula attempts this in vain 4 more times before pausing the
job and requesting that I mount the next magazine. I then switch the
drives in the changer, issue 'update slots', and bacula updates all
the slot data. I thought it would then continue from the next volume
it initially tried to mount, but instead it skips the first five
volumes and starts writing the sixth. These volumes are marked as
'error' and not used. It looks like this:
http://i.troll.ws/e60e9955.png
This is what hitting the end of the magazine looks like (screenshot
shows jump to next appendable volume, which happens not to be 0001):
http://i.troll.ws/250d9942.png
Is there a way to tell bacula to stop and ask for a mount when it uses
the last volume identified by update slots, and immediately request
the magazine change? Or to step back to the first volume in a magazine
after mounting and issuing update slots?
The trick is to disable a drive's volumes when it is not attached and
enable them when attached. This can be done with the update volume=???
enabled=? command. Bacula will not consider a disabled volume available
for use. I use the attached scripts for vchanger autochangers. They
allow enabling/disabling all volumes on a magazine drive or only volumes
on a magazine that are in a specified pool.
volume_scripts.tgz
Description: application/compressed
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|