Bacula-users

Re: [Bacula-users] Bacula volume (tape) rotation out of order

2008-05-09 05:05:22
Subject: Re: [Bacula-users] Bacula volume (tape) rotation out of order
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 09 May 2008 10:34:45 +0200
Hi,

09.05.2008 01:33, Mark Walkom wrote:
> Hi All,
> I'm new to bacula and this has been dumped in my lap to magically fix 
> somehow, so please excuse any lack of knowledge in my email! After 
> reading the bacula documentation, lots of google and a few other mailing 
> lists and forums I am still a tad confused over this issue and yet to 
> find a resolution so hopefully someone can assist me.
> 
> Basically my problem is that the tape rotation order has somehow gone awry.
> The rotation we use is WEEK1_001 to WEEK1_005 (Thursday to Wednesday, no 
> changes on weekends) and that changes between two lots of tapes, WEEK1 
> and WEEK2 which are alternatively stored off site. The tapes are 
> manually swapped and mounted each morning by myself because the 
> automount script 'someone' wrote doesn't always work .

Ok... for manual tape handling this is a reasonable approach. It is, 
as you learned, a bit inflexible ;-)

> For some reason the rotation order has changed completely and now looks 
> something like this (taken from the log files when bacula requests the 
> next tape);
> 1_3
> 1_3
> 1_3
> 2_2
> 2_2
> 2_2
> 2_2
> 2_3
> 1_5
> 1_5
> 2_3, 1_1
> 1_2
> 1_4
> 2_1
> 
> The job schedule hasn't changed, the tapes haven't been relabelled or 
> marked as non-recyclable nor has an incorrect tape been inserted out of 
> order, so it has me stumped on what caused it and what I need to do to 
> fix this to get back to the correct order.

First we need to know how your Bacula should know which tapes to use. 
Do you have them in different pools, or are they all in the same pool 
and you rely on the retention times to ensure the proper order of 
recycling?

Also, is this with using an autochanger or a single drive?

> Unfortunately the preceding sysadmin only really taught me how to mount 
> and run the basic status commands

That's really not much if you have to operate Bacula...

> which means I am learning this all 
> from scratch.

Yup. You'll want a copy of the manual for bedtime reading :-)

(This is not going to help you now, but I suggest you start playing 
with bconsole a bit - try the different list, llist and show commands 
and see if you understand what they report. Then compare that to your 
configuration and see why they report what they report. And then try 
to think how *you* would solve your tape rotation problem - in the end 
you'll know quite a bit about how to configure Bacula.)

> 
> Running bacula Version: 1.38.11 (28 June 2006) on Debian 3.1 (Linux 
> 2.6.18-6-686).

This is seriously outdated. I recommend you plan an upgrade to a 
current version.

> Any help is greatly appreciated.

Ok, let's see... first, we need a bit more information (see above - 
which pools etc.) Then you have to check if the actual volume settings 
match the pool definition.

Then you check why Bacula selects the volumes it wants, i.e. the order 
in which the volumes can be recycled (defined by LastWritten plus 
retention time).

If you find Bacula can use the tape you want it to use you simply 
(manually) ensure it has to use these volumes. Just disable all the 
others, or only load the one volume you want it to use.

When not using an autochanger this is even simpler - just load the 
tape you want it to use and, if necessary, i.e. the volume is not yet 
recyclable, you manually recycle it.

After a complete backup cycle the order should be correct again.

You could also manipulate the catalog data to fix all volumes in one 
go, but that is definitely a more advanced technology :-)

Arno

> Regards,
> Mark

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>