Re: [Bacula-users] Pruning help
[EMAIL PROTECTED] wrote: Hi Thomas, I think you're missing an =. Should be Volume Retention = 4 weeks Also try Recycle Current Volume = yes. Bacula will use whichever volume is mounted, but obeys the retention periods. Hope this helps, Matt Good eye Matt, but that was a just a typo in the email. After doing some math I noticed that the volume retention period was one year for all of my tapes, even though it was set to four weeks in the pool resource. I purged a tape and relabeled it and sure enough the retention period was one year. I then changed the pool resource so volume retention would be one month. After purging a relabeling a tape the retention period is set for 1 month. I then set it back to four weeks in the pool resource, and with a relabel the retention period was correctly set. I have no idea why this happened, and I can't seem to reproduce it. My question now is about recycling volumes. I noticed when using Recycle Oldest Volume, bacula did just that, even if the tape was not in the library. It would be ideal if bacula would recycle the oldest available volume, will this happen under normal recycle conditions? Thanks, Thomas --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Pruning help
Good eye Matt, but that was a just a typo in the email. I did wonder if it was :-) After doing some math I noticed that the volume retention period was one year for all of my tapes, even though it was set to four weeks in the pool resource. I purged a tape and relabeled it and sure enough the retention period was one year. I then changed the pool resource so volume retention would be one month. After purging a relabeling a tape the retention period is set for 1 month. I then set it back to four weeks in the pool resource, and with a relabel the retention period was correctly set. I have no idea why this happened, and I can't seem to reproduce it. Could it be that the volume retention was originally defined in the pool resource to be 1 year when you originally labeled the tape? This information is stored for each tape when it is labelled, so changes to the resource afterwards are not updated for already existing tapes. You need to use the update command for this. Not sure why this is, probably by design. My question now is about recycling volumes. I noticed when using Recycle Oldest Volume, bacula did just that, even if the tape was not in the library. It would be ideal if bacula would recycle the oldest available volume, will this happen under normal recycle conditions? By library, I assume you mean pool, yes? I've never used this option, but under normal conditions it should only recycle the oldest volume from the pool if the storage daemon requests another volume and there is not one already available. This option respects retention periods so should not be recycling volumes that have not passed their retention periods. How are you observing this behaviour? It should only do anything when a job is running and requires a new tape. Matt -- Matthew Buckland, Network / Support Analyst Wordbank Limited 33 Charlotte Street, London W1T 1RR Direct line: +44 (0) 20 7903 8847 Fax: +44 (0) 20 7903 http://www.wordbank.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Pruning help
[EMAIL PROTECTED] wrote: Good eye Matt, but that was a just a typo in the email. I did wonder if it was :-) After doing some math I noticed that the volume retention period was one year for all of my tapes, even though it was set to four weeks in the pool resource. I purged a tape and relabeled it and sure enough the retention period was one year. I then changed the pool resource so volume retention would be one month. After purging a relabeling a tape the retention period is set for 1 month. I then set it back to four weeks in the pool resource, and with a relabel the retention period was correctly set. I have no idea why this happened, and I can't seem to reproduce it. Could it be that the volume retention was originally defined in the pool resource to be 1 year when you originally labeled the tape? This information is stored for each tape when it is labelled, so changes to the resource afterwards are not updated for already existing tapes. You need to use the update command for this. Not sure why this is, probably by design. My question now is about recycling volumes. I noticed when using Recycle Oldest Volume, bacula did just that, even if the tape was not in the library. It would be ideal if bacula would recycle the oldest available volume, will this happen under normal recycle conditions? By library, I assume you mean pool, yes? I've never used this option, but under normal conditions it should only recycle the oldest volume from the pool if the storage daemon requests another volume and there is not one already available. This option respects retention periods so should not be recycling volumes that have not passed their retention periods. How are you observing this behaviour? It should only do anything when a job is running and requires a new tape. By library I mean tape library or autoloader. My library holds 23 tapes, slots 1-3 were empty as these tapes are offsite. When I ran a test backup yesterday with Recycle Oldest Volume = yes defined, bacula tried to recycle one of the three volumes that are offsite, I assume because it was the oldest volume. Matt --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Pruning help
By library I mean tape library or autoloader. My library holds 23 tapes, slots 1-3 were empty as these tapes are offsite. When I ran a test backup yesterday with Recycle Oldest Volume = yes defined, bacula tried to recycle one of the three volumes that are offsite, I assume because it was the oldest volume. Aha, sorry, wasn't reading properly. Think I understand now. If the oldest one is offsite and is in the same pool as the onsite ones then bacula will recycle that one regardless. I think maybe you'll need to write some script to check if the tape is in the loader or not, but I've no idea how to do that! Maybe somebody else can help with this. I don't have an autolader so have no experience with this kind of setup. Would it fit into your tape cycling system / backup strategy to have the offsite ones in a separate pool? Or are they not always the same ones going offiste? Did you try with Recycle Current Volume = yes? That way, as long as your tapes have passed their retention periods they will be used. Not exactly what you wanted but could work, no? -- Matthew Buckland, Network / Support Analyst Wordbank Limited 33 Charlotte Street, London W1T 1RR Direct line: +44 (0) 20 7903 8847 Fax: +44 (0) 20 7903 http://www.wordbank.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Pruning help
Hi Thomas, I think you're missing an =. Should be Volume Retention = 4 weeks Also try Recycle Current Volume = yes. Bacula will use whichever volume is mounted, but obeys the retention periods. Hope this helps, Matt On Wednesday 16 November 2005 14:12, Thomas Simmons wrote: All tapes in my library are now filled and I expected bacula to grab a previous tape and overwrite it, but that didn't happen. Sometime last night the backups just stopped while bacula waited for me to label a tape. Here is my pool resource. Pool { Name = Full-Pool Recycle = yes AutoPrune = yes Volume Retention 4 weeks Accept Any Volume = yes Volume Use Duration = 6 days } Over half of the tapes in the library were last written over four weeks ago, so the retention period shouldn't be the problem. In any event, I stopped bacula and added Recycle Oldest Volume = yes, and bacula did try to prune a tape. Unfortunately the oldest volume (the one it pruned) is currently stored offsite, so thats not working for me either. When bacula fills all the tapes in the library I would like it to prune the oldest tape available, is this possible. Thanks, Thomas --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Matthew Buckland, Network / Support Analyst Wordbank Limited 33 Charlotte Street, London W1T 1RR Direct line: +44 (0) 20 7903 8847 Fax: +44 (0) 20 7903 http://www.wordbank.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users