Bacula-users

Re: [Bacula-users] Recycling problem.

2014-10-18 23:06:26
Subject: Re: [Bacula-users] Recycling problem.
From: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
To: Giuseppe Vitillaro <giuseppe AT vitillaro DOT org>
Date: Sat, 18 Oct 2014 23:59:09 -0300
Hi Giuseppe,

I think there is a misunderstanding here. You are talking about two different jobs. From your first post, you talked about the Job=Fs02Home.2014-10-13_21.00.00_33 and this last post you are talking about Job=MccwHome.2014-10-13_21.00.00_34.

13-Oct 21:00 bl13-dir JobId 1761: Start Backup JobId 1761, Job=Fs02Home.2014-10-13_21.00.00_33
13-Oct 21:00 bl13-dir JobId 1762: Start Backup JobId 1762, Job=MccwHome.2014-10-13_21.00.00_34

Maybe there is a previous error than these ones. I think that because of your "volume use duration = 7 days", bacula used the same volume for backup up these two jobs once, than one week later the volume was still for append (because of your 7 days volume use duration) and maybe bacula could run one of the two backup jobs on this same volume. I mean only one job and the other job was written in the other volume. This is confusing, but the problems begans before these two errors commented about you on your posts.

Bacula is doing it correctly and you should take care about your volume use duration configuration.

If I am correct about what you want, you have two volumes in a pool that you want to backup your jobs with a retention time of a week. You want bacula be using one of the two volumes for a week and change it to the other volume in the next week.

You just have to put in hours your volume use duration to a time less than 7 days to avoid what I commented above. Maybe 6 days and 22 hours (166 hours) should be fine. It should be a time just before the next scheduled job run. From your first post, your job started at 21 h one day and finished 12:58 the next day. So you have to set a time more than 6 days and 14 hours.

About Bacula losting your volume slot number in catalog, this could happen for many reasons. If you normally remove tapes from magazines or move them between slots. If you do that, you can configure an admin job to do an update slots frequently and your catalog will be always updated with the volumes and its slots.

Regards,
Ana


On Sat, Oct 18, 2014 at 3:05 PM, Giuseppe Vitillaro <giuseppe AT vitillaro DOT org> wrote:

On Saturday 18 October 2014 11:01:28 Ana Emília M. Arruda wrote:

> Just a comment here. Since you have "volume use duration = 7 days" and your

> volume was used until 12:58 next day, I'm quite sure (don't know how is

> your schedule configured) that this volume will be available (append) for

> use in the next week by your backup jobs. Because of your "volume use

> duration" configuration, Bacula started to use the same volume two weeks

> sequentially.

>

> 13-Oct 21:08 bl13-sd JobId 1761: Committing spooled data to Volume

> "000529L4". Despooling 7,153,238,703 bytes ...

> 14-Oct 12:58 bl13-sd JobId 1761: Despooling elapsed time = 00:01:06,

> Transfer rate = 108.3 M Bytes/second

> 14-Oct 12:58 bl13-sd JobId 1761: Elapsed time=15:55:43, Transfer rate=124.6

> K Bytes/second

> 14-Oct 12:58 bl13-sd JobId 1761: Alert: TapeAlert: OK

> 14-Oct 12:58 bl13-sd JobId 1761: Sending spooled attrs to the Director.

> Despooling 37,665 bytes ...

> 14-Oct 12:58 bl13-dir JobId 1761: Bacula bl13-dir 5.2.13 (19Jan13):

>

> Do you have prefer mounted volume set to yes?

>

> Regards,

> Ana

It didn't used the volume incorrectly recyled, 000529L4,

bacula storage daemon just recycled it, marked as used

and proceeded, correctly to backup on 000506L4 after

a manual intervention.

 

The manual intervention was required because the volume

000506L4 for some reason I don't quite understand was

not considered anymore inside the changer (it was of course),

as this log, from another concurrent job show

 

13-Oct 21:00 bl13-dir JobId 1762: Start Backup JobId 1762, Job=MccwHome.2014-10-13_21.00.00_34

13-Oct 21:01 bl13-dir JobId 1762: Using Device "lto1" to write.

13-Oct 21:01 bl13-dir JobId 1762: Sending Accurate information.

13-Oct 21:02 bl13-sd JobId 1762: No slot defined in catalog (slot=0) for Volume "000506L4" on "lto1" (/dev/nlto1).

13-Oct 21:02 bl13-sd JobId 1762: Cartridge change or "update slots" may be required.

13-Oct 21:02 bl13-sd JobId 1762: Warning: Director wanted Volume "000506L4".

Current Volume "000529L4" not acceptable because:

1998 Volume "000529L4" catalog status is Used, but should be Append, Purged or Recycle.

13-Oct 21:02 bl13-sd JobId 1762: 3307 Issuing autochanger "unload slot 4, drive 1" command.

13-Oct 21:03 bl13-sd JobId 1762: No slot defined in catalog (slot=0) for Volume "000506L4" on "lto1" (/dev/nlto1).

13-Oct 21:03 bl13-sd JobId 1762: Cartridge change or "update slots" may be required.

 

After the intervention, "update slots", the jobs continued without

any problem

 

14-Oct 12:58 bl13-sd JobId 1761: Despooling elapsed time = 00:01:06, Transfer rate = 108.3 M Bytes/second

14-Oct 12:58 bl13-sd JobId 1761: Elapsed time=15:55:43, Transfer rate=124.6 K Bytes/second

14-Oct 12:58 bl13-sd JobId 1761: Alert: TapeAlert: OK

14-Oct 12:58 bl13-sd JobId 1761: Sending spooled attrs to the Director. Despooling 37,665 bytes ...

14-Oct 12:58 bl13-dir JobId 1761: Bacula bl13-dir 5.2.13 (19Jan13):

 

14-Oct 12:56 bl13-sd JobId 1762: 3304 Issuing autochanger "load slot 9, drive 1" command.

14-Oct 12:56 bl13-sd JobId 1762: 3305 Autochanger "load slot 9, drive 1", status is OK.

14-Oct 12:56 bl13-sd JobId 1762: Recycled volume "000506L4" on device "lto1" (/dev/nlto1), all previous data lost.

 

And yes, I've "prefer mounted volume set to yes" for these jobs.

 

G. Vitillaro.

 


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
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>