Bacula-users

[Bacula-users] volume left in append mode after job fails to run

2010-02-23 22:44:26
Subject: [Bacula-users] volume left in append mode after job fails to run
From: Al Jones <alchjones AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 23 Feb 2010 21:42:11 -0600

Bacula Users,

I'm using Bacula 5.0.0 with python scripting to create meaningful volume labels that contain the client name for a disk based (Storage=File) implementation.

The problem I'm seeing is that if a job fails to run due to a connection error (there may be others), then the volume is left in append mode and my next job, regardless of the client name uses that volume instead of creating a new volume for itself.

For the pool definitions, I've got
Recycle = yes
AutoPrune = yes
Maximum Volume Jobs = 1
Use Volume _Once_ = yes
Volume Retention = 2 months

The python script is basically the stock distributed one with this line for the volume name in scripts/ DirStartUp.py
job.VolumeName="%s-%s-%0*d" % (client, pool, 4, numvol)     
 
(it produces names like   clientname-poolname-0001)

I've found very little on python scripting for bacula, but if anyone knows how / where to intercept the error and mark the volume as "Used" instead of "Append",  I would be greatly appreciative.

I'm guessing it's not a version specific problem.

Thanks,
Jonesy

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] volume left in append mode after job fails to run, Al Jones <=