On 02/01/11 09:54, Kjetil Torgrim Homme wrote:
> hymie! <hy...@lactose.homelinux.net> writes:
> 
>> Kjetil Torgrim Homme writes:
>>> you specified "Recycle", so Bacula will reuse old volumes.
>>
>> Thank you!  I thought "Maximum Volume Jobs = 1" would prevent that,
>> but once the job is purged, then there are no jobs in that volume, so
>> it becomes fair game.
> 
> BTW, this is one of those properties which is only set upon creation.
> you need to fix this in the database for existing volumes.  not sure
> if/how to do it in bconsole, I usually use the sledgehammer of direct
> SQL access :-)
> 
> UPDATE Media SET recycle = 0;
> 
> (no WHERE clause needed, you want this on all your media, right)
> 

That's gonna get someone in trouble one day :)


Using the bconsole method:

First, test config files after modifying a Pool definition:

# bacula-dir -t /etc/bacula-dir.conf

(no output = no problems)


Then in bocnsole:

* reload
 (re-reads/reloads its config file)

* update
Update choice:
     1: Volume parameters
     2: Pool from resource
     3: Slots from autochanger
     4: Long term statistics
Choose catalog item to update (1-4): 2 <--- Choose 2

The defined Pool resources are:
     1: Scratch
     2: Default
     3: FileTapes
     4: Offsite-eSATA
     5: VXA-1
Select Pool resource (1-5): 3 <--- The Pool that was modified

Those steps make sure that new volumes created in the "FileTapes" pool will
get the settings in the bacula-dir.conf file


Then, still in bconsole:

* update
Update choice:
     1: Volume parameters
     2: Pool from resource
     3: Slots from autochanger
     4: Long term statistics
Choose catalog item to update (1-4): 1 <--- Modifying current volumes

Parameters to modify:
     1: Volume Status
     2: Volume Retention Period
     3: Volume Use Duration
     4: Maximum Volume Jobs
     5: Maximum Volume Files
     6: Maximum Volume Bytes
     7: Recycle Flag
     8: Slot
     9: InChanger Flag
    10: Volume Files
    11: Pool
    12: Volume from Pool
    13: All Volumes from Pool
    14: All Volumes from all Pools
    15: Enabled
    16: RecyclePool
    17: Action On Purge
    18: Done
Select parameter to modify (1-18): 13 <--- (or 14 to skip next step)

The defined Pool resources are:
     1: Scratch
     2: Default
     3: FileTapes
     4: Offsite-eSATA
     5: VXA-1
Select Pool resource (1-5): 3 <-- The Pool that was previously modified


I know, a few more steps, but in the end nobody had their hands in your Bacula
db. :)

-- 
Bill Arlofski
Reverse Polarity, LLC
http://www.revpol.com/

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to