Re: [Bacula-users] volume recycling
Auto reply :) It appears I had orphaned jobs, jobmedia, file,filename and pathes in my catalog. I used dbcheck to get rid of all of them. The volume got pruned and recycled properly afterwards. Regards. Le 01/09/2011 08:38, Alexandre Chapellon a crit: Hello, I am using bacula 5.0.2 as delivered by Debian packaging system. This morning I have jobs hanged due to no appendable volume in the pool. the job and file retention for the jobs are both of 1 month. The Volume retention for all volumes in the pool is 23 days. All volumes in the pool are marked as Used. However, there id one volume that was last written more than 2 month ago (2011-06-19 15:30:31). I have tried to query the catalog on found out that no job record were associated with that volume anymore (bconsole / query / 14 / volname) I have tried pruning the volume by hand using the `prune` command, it shows the correct volume volume retention but prune nothing. Here is the volume and pool description as shown by `list volume` and `show pool`: | 8 | hosting_incremental_0002 | Used | 1 | 426,895,388 | 0 | 1,987,200 | 1 | 0 | 0 | File | 2011-06-19 15:30:31 | Pool: name=hosting_Incremental PoolType=Backup use_cat=1 use_once=0 cat_files=1 max_vols=5 auto_prune=1 VolRetention=23 days VolUse=7 days recycle=1 LabelFormat=${Pool:l}_${NumVols:p/4/0/r} CleaningPrefix=*None* LabelType=0 RecyleOldest=1 PurgeOldest=0 ActionOnPurge=0 MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0 MigTime=0 secs MigHiBytes=0 MigLoBytes=0 JobRetention=680 years 11 months 21 days 8 hours 21 mins 20 se FileRetention=5 years 1 month 11 days 17 hours 26 mins 8 secs Note the huge JobRetention in the pool. The job retention is the same in the job description shown in `show job`. I have double checked my config files and found the following: Client { Name = jimbojones-fd Address = fqdn-addr Catalog = MyCatalog Password ="secret" FileRetention = 30 days JobRetention = 30 days } Does anybody knows why I can't recycle that volume and why I have this strange Jobretention value? Regards. -- Alexandre Chapellon Ingnierie des systmes open sources et rseaux. Follow me on twitter: @alxgomz -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Alexandre Chapellon Ingnierie des systmes open sources et rseaux. Follow me on twitter: @alxgomz attachment: a_chapellon.vcf-- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
2011/9/1 Alexandre Chapellon a.chapel...@horoa.net Hello, I am using bacula 5.0.2 as delivered by Debian packaging system. This morning I have jobs hanged due to no appendable volume in the pool. the job and file retention for the jobs are both of 1 month. The Volume retention for all volumes in the pool is 23 days. All volumes in the pool are marked as Used. However, there id one volume that was last written more than 2 month ago (2011-06-19 15:30:31). I have tried to query the catalog on found out that no job record were associated with that volume anymore (bconsole / query / 14 / volname) I have tried pruning the volume by hand using the `prune` command, it shows the correct volume volume retention but prune nothing. Here is the volume and pool description as shown by `list volume` and `show pool`: *| 8 | hosting_incremental_0002 | Used | 1 | 426,895,388 |0 |1,987,200 | 1 |0 | 0 | File | 2011-06-19 15:30:31 | Pool: name=hosting_Incremental PoolType=Backup use_cat=1 use_once=0 cat_files=1 max_vols=5 auto_prune=1 VolRetention=23 days VolUse=7 days recycle=1 LabelFormat=${Pool:l}_${NumVols:p/4/0/r} CleaningPrefix=*None* LabelType=0 RecyleOldest=1 PurgeOldest=0 ActionOnPurge=0 MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0 MigTime=0 secs MigHiBytes=0 MigLoBytes=0 JobRetention=680 years 11 months 21 days 8 hours 21 mins 20 se FileRetention=5 years 1 month 11 days 17 hours 26 mins 8 secs* Note the huge JobRetention in the pool. The job retention is the same in the job description shown in `show job`. I have double checked my config files and found the following: Client { Name = jimbojones-fd Address = fqdn-addr Catalog = MyCatalog Password =secret FileRetention = 30 days JobRetention = 30 days } Does anybody knows why I can't recycle that volume and why I have this strange Jobretention value? I am not sure why you had these ridiculous file and job retentions however neither of them will stop a volume from being recycled. These two are more about how long to keep the records in the database. John -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Le 01/09/2011 14:33, John Drescher a écrit : 2011/9/1 Alexandre Chapellon a.chapel...@horoa.net mailto:a.chapel...@horoa.net Hello, I am using bacula 5.0.2 as delivered by Debian packaging system. This morning I have jobs hanged due to no appendable volume in the pool. the job and file retention for the jobs are both of 1 month. The Volume retention for all volumes in the pool is 23 days. All volumes in the pool are marked as Used. However, there id one volume that was last written more than 2 month ago (2011-06-19 15:30:31). I have tried to query the catalog on found out that no job record were associated with that volume anymore (bconsole / query / 14 / volname) I have tried pruning the volume by hand using the `prune` command, it shows the correct volume volume retention but prune nothing. Here is the volume and pool description as shown by `list volume` and `show pool`: /| 8 | hosting_incremental_0002 | Used | 1 | 426,895,388 |0 |1,987,200 | 1 |0 | 0 | File | 2011-06-19 15:30:31 | Pool: name=hosting_Incremental PoolType=Backup use_cat=1 use_once=0 cat_files=1 max_vols=5 auto_prune=1 VolRetention=23 days VolUse=7 days recycle=1 LabelFormat=${Pool:l}_${NumVols:p/4/0/r} CleaningPrefix=*None* LabelType=0 RecyleOldest=1 PurgeOldest=0 ActionOnPurge=0 MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0 MigTime=0 secs MigHiBytes=0 MigLoBytes=0 JobRetention=680 years 11 months 21 days 8 hours 21 mins 20 se FileRetention=5 years 1 month 11 days 17 hours 26 mins 8 secs/ Note the huge JobRetention in the pool. The job retention is the same in the job description shown in `show job`. I have double checked my config files and found the following: Client { Name = jimbojones-fd Address = fqdn-addr Catalog = MyCatalog Password =secret FileRetention = 30 days JobRetention = 30 days } Does anybody knows why I can't recycle that volume and why I have this strange Jobretention value? I am not sure why you had these ridiculous file and job retentions however neither of them will stop a volume from being recycled. These two are more about how long to keep the records in the database. John Yep John, you're absolutely right. Purging orphaned records was the solution. Unfortunately I still have those weird retention periods associated with pools and jobs, whereas I have normal values associated with Client (which is the value used I hope!): show clients Client: name=jimbojones-fd address=jimbojones.fqdn FDport=9102 MaxJobs=1 JobRetention=1 month FileRetention=1 month AutoPrune=1 -- Catalog: name=MyCatalog address= DBport=0 db_name=bacula db_driver=*None* db_user=bacula MutliDBConn=0 I'm curious to know where those value come from or how are they calculated... If someone knows, please shed the light. Am I the only one having such values reported by `show pool` or `show jobs`? -- http://www.horoa.net Alexandre Chapellon Ingénierie des systèmes open sources et réseaux. Follow me on twitter: @alxgomz http://www.twitter.com/alxgomz attachment: a_chapellon.vcf-- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volume recycling
2009/10/29 Serge Vostroknutov s...@mastersoft.ru: Hello There are several storages defined in the bacula-dir.conf : Storage { Name = File1 Address = hostname # N.B. Use a fully qualified name here SDPort = 9103 Password = *** Device = FileStorage1 Media Type = File1 Maximum Concurrent Jobs = 20 } Storage { Name = File2 Address = hostname # N.B. Use a fully qualified name here SDPort = 9103 Password = Device = FileStorage2 Media Type = File2 Maximum Concurrent Jobs = 20 } and so on... Every job uses it's own storage, for example job1 - FileStorage1 (Name=File1), job2 - File storage2 (name=File2) and so on... The question: Can job1 recycle Volume with MediType != file1 or this job always recycles volumes with mediatype according Storage directive? It will only recycle File1 media type. John -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling problem
On Wed, Apr 15, 2009 at 2:07 PM, Dirk Kleinhesselink dkle...@phy.ucsf.edu wrote: I'm having a problem with over-writing recycled volumes. I have my jobs setup so that I retain file information for 90 days and job retention for 6 months: File Retention = 90 days # 90 days Job Retention = 6 months # six months And my catalog has: Volume REtention = 6 months I have my tapes labelled sequentially and I overwrite them - no earlier than 6 months. However sometimes it will decide to skip a tape - I don't know why. I have purged the volume when putting it into my autoloader, so it should be considered available. The most recent time this happened, I noticed that it shows the tape as being written less than 6 months ago. That apparently happened when I did a restore from that tape - and for some reason bacula decided it had written to the tape. I'm pretty sure that when I did the restore, I set the tape read-only out of paranoia I'd forget the tape in the drive and it would've been over written. I believe I did unset the read-only switch on the tape and I did purge the volume: +-++---+-+--+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+--+--+--+-+--+---+---+-+ +-++---+-+--+--+--+-+--+---+---+-+ | 85 | Keck-084 | Full | 1 | 590132745216 | 720 | 15552000 | 1 | 1 | 1 | LTO-3 | 2009-04-11 17:48:50 | | 86 | Keck-085 | Full | 1 | 583355114496 | 585 | 15552000 | 1 | 2 | 1 | LTO-3 | 2009-04-12 00:04:31 | | 87 | Keck-086 | Purged | 1 | 579806631936 | 583 | 15552000 | 1 | 3 | 1 | LTO-3 | 2009-01-14 13:08:05 | | 88 | Keck-087 | Full | 1 | 573925976064 | 596 | 15552000 | 1 | 4 | 1 | LTO-3 | 2009-04-13 20:53:37 | | 89 | Keck-088 | Append | 1 | 106350418944 | 151 | 15552000 | 1 | 5 | 1 | LTO-3 | 2009-04-15 02:40:12 | So you can see it skipped tape Keck-086. How can I make it use this tape? Mark Keck-088 as Full or Used. A word of caution is that you should NEVER rely on bacula automatically using the tapes in some sequential order. If you really want this do this, perform the volume recycling by your own rules in a cron job. John -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling problem
On Wed, Apr 15, 2009 at 2:07 PM, Dirk Kleinhesselink dkle...@phy.ucsf.edu wrote: I'm having a problem with over-writing recycled volumes. I have my jobs setup so that I retain file information for 90 days and job retention for 6 months: File Retention = 90 days # 90 days Job Retention = 6 months # six months And my catalog has: Volume REtention = 6 months I have my tapes labelled sequentially and I overwrite them - no earlier than 6 months. However sometimes it will decide to skip a tape - I don't know why. I have purged the volume when putting it into my autoloader, so it should be considered available. The most recent time this happened, I noticed that it shows the tape as being written less than 6 months ago. That apparently happened when I did a restore from that tape - and for some reason bacula decided it had written to the tape. I'm pretty sure that when I did the restore, I set the tape read-only out of paranoia I'd forget the tape in the drive and it would've been over written. I believe I did unset the read-only switch on the tape and I did purge the volume: +-++---+-+--+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+--+--+--+-+--+---+---+-+ +-++---+-+--+--+--+-+--+---+---+-+ | 85 | Keck-084 | Full | 1 | 590132745216 | 720 | 15552000 | 1 | 1 | 1 | LTO-3 | 2009-04-11 17:48:50 | | 86 | Keck-085 | Full | 1 | 583355114496 | 585 | 15552000 | 1 | 2 | 1 | LTO-3 | 2009-04-12 00:04:31 | | 87 | Keck-086 | Purged | 1 | 579806631936 | 583 | 15552000 | 1 | 3 | 1 | LTO-3 | 2009-01-14 13:08:05 | | 88 | Keck-087 | Full | 1 | 573925976064 | 596 | 15552000 | 1 | 4 | 1 | LTO-3 | 2009-04-13 20:53:37 | | 89 | Keck-088 | Append | 1 | 106350418944 | 151 | 15552000 | 1 | 5 | 1 | LTO-3 | 2009-04-15 02:40:12 | So you can see it skipped tape Keck-086. How can I make it use this tape? Mark Keck-088 as Full or Used. A word of caution is that you should NEVER rely on bacula automatically using the tapes in some sequential order. If you really want this do this, perform the volume recycling by your own rules in a cron job. John -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volume recycling/pruning
Hello, On 5/11/2007 11:37 AM, luket wrote: Good morning I am currently running bacula on a CentOS machine with no problems. I am waiting to install a tape drive (problem sourcing the connector to the server) I am having a problem with clearing out data over a certain length of time. I have had a look through FAQ's and also through this forum and although people have been having similar problems I have been unable to find a proper solution. I basically have all my backups running to files (each job has a seperate pool) these are currently running into massive sizes. This sounds as though you did not limit the volume growth using any of the possible ways - use time, size, number of jobs. What I want to do is utilize the pruning/recycling function in Bacula. I am a little unsure as to what the various config tags do within the bacula-dir.conf. I think these are all explained in sufficient detail in the manual. If you encounter problems understanding how they work together I'm sure we can answer more targeted questions. I currently have the following in the Client resource: File Retention = 10 days Job Retention = 1 month AutoPrune = yes In the pool resources I have the following in there: Recycle = yes AutoPrune = yes Volume Retention = 15 days Accept Any volume = yes The point here is to note that the retention only starts after a volume was last written. You've got to ensure your backups proceed to another volume, and Bacula marks the terminated volumes as 'Used' or 'Full'. I want my backups to run full backups on a Friday and incremental every other day, I want a full weekly backup to tape and each month clear/prune/recycle what is on the server so the volumes are back down to zero. That would need to be done manually (or by script), as there is no way to tell bacula to 1) purge all jobs based upon a job that is being purged, an 2) Bacula does not delete or truncate files when they are purged, it merely notices that they can be overwritten. For files, an actual truncate only happens when a volume is being recycled. Does anybody have any advice on a smiple way to do this? or failing that, a difficult way to do it as my attempts have all turned out as failures!!! Start limiting the volume size, and see if that doesn't already get you close to where you want to go. I suppose it will. Arno Kind regards Luke -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Kern Sibbald wrote: On Thursday 04 August 2005 21:36, Martin Simmons wrote: On Tue, 2 Aug 2005 23:16:08 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 19:31, Martin Simmons wrote: On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin Kern Well, I don't see anything running between messages, and I'm unsure what you Kern mean. If you are trying to tie sequences of messages to their display order Kern when they come from different daemons via the network and different threads Kern and do not have thousandths of seconds in the time stamp, good luck. Yes, it was the display order. In particular, I thought that the Pruned 5 Jobs and Recycled volume Director messages were both emited inside the Find_media request from the SD. During this time, the SD should be waiting so I was surprised that the SD's Cannot find any appendable volumes. message came before the Recycled volume message. Someone else posted this sequence: 04-Aug 01:02 hunter-dir: Pruned 8 Jobs on Volume D03 from catalog. 04-Aug 01:02 hunter-dir: Pruned 1 Job on Volume D04 from catalog. 04-Aug 01:02 hunter-sd: Job std-arapaho.2005-08-04_01.00.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HP_DAT72 Media type: DDS-72 Pool: Daily 04-Aug 01:03 hunter-dir: Recycled volume D03 which shows it too. I'm not sure what is going on here, except that one cannot count on the order of the messages being chronological. I haven't thought a lot about this, but I can imagine that if one is running on the hairy edge of not having enough volumes (or conversely having your pruning times too long), I'm not surprised there are problems. I wouldn't be surprised if there is a bug lurking in the code, but I can say that I have been running the setup described in one of the chapters of the manual for well over a year, and it prunes volumes regularly as it should, so there is always one or two pruned volumes when they are needed without relying on pruning during the search for a Volume. __Martin Kern, Just for information : pruning a volume, like D04, take about 1 (big) minute to be done. (Bacula 1.36.2 sarge + sqlite) Rico, I saw that an Admin job run Autoprune so I think that I can use an Admin job as a workaround like this : # other jobs use the same schedule an have a priority on 10 # I have no concurrent job Job { Name = force_pruning JobDefs = DefaultJob Type = Admin Client = hunter-fd FileSet= default Schedule = ServerMonthlyCycle Priority = 9 } I will try it for this WE. Have a nice day :o) Loïs --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Tue, 2 Aug 2005 23:16:08 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 19:31, Martin Simmons wrote: On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin Kern Well, I don't see anything running between messages, and I'm unsure what you Kern mean. If you are trying to tie sequences of messages to their display order Kern when they come from different daemons via the network and different threads Kern and do not have thousandths of seconds in the time stamp, good luck. Yes, it was the display order. In particular, I thought that the Pruned 5 Jobs and Recycled volume Director messages were both emited inside the Find_media request from the SD. During this time, the SD should be waiting so I was surprised that the SD's Cannot find any appendable volumes. message came before the Recycled volume message. Someone else posted this sequence: 04-Aug 01:02 hunter-dir: Pruned 8 Jobs on Volume D03 from catalog. 04-Aug 01:02 hunter-dir: Pruned 1 Job on Volume D04 from catalog. 04-Aug 01:02 hunter-sd: Job std-arapaho.2005-08-04_01.00.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HP_DAT72 Media type: DDS-72 Pool: Daily 04-Aug 01:03 hunter-dir: Recycled volume D03 which shows it too. __Martin --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Thursday 04 August 2005 21:36, Martin Simmons wrote: On Tue, 2 Aug 2005 23:16:08 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 19:31, Martin Simmons wrote: On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin Kern Well, I don't see anything running between messages, and I'm unsure what you Kern mean. If you are trying to tie sequences of messages to their display order Kern when they come from different daemons via the network and different threads Kern and do not have thousandths of seconds in the time stamp, good luck. Yes, it was the display order. In particular, I thought that the Pruned 5 Jobs and Recycled volume Director messages were both emited inside the Find_media request from the SD. During this time, the SD should be waiting so I was surprised that the SD's Cannot find any appendable volumes. message came before the Recycled volume message. Someone else posted this sequence: 04-Aug 01:02 hunter-dir: Pruned 8 Jobs on Volume D03 from catalog. 04-Aug 01:02 hunter-dir: Pruned 1 Job on Volume D04 from catalog. 04-Aug 01:02 hunter-sd: Job std-arapaho.2005-08-04_01.00.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HP_DAT72 Media type: DDS-72 Pool: Daily 04-Aug 01:03 hunter-dir: Recycled volume D03 which shows it too. I'm not sure what is going on here, except that one cannot count on the order of the messages being chronological. I haven't thought a lot about this, but I can imagine that if one is running on the hairy edge of not having enough volumes (or conversely having your pruning times too long), I'm not surprised there are problems. I wouldn't be surprised if there is a bug lurking in the code, but I can say that I have been running the setup described in one of the chapters of the manual for well over a year, and it prunes volumes regularly as it should, so there is always one or two pruned volumes when they are needed without relying on pruning during the search for a Volume. __Martin -- Best regards, Kern ( /\ V_V --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Martin Simmons wrote: On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin good morning could it be that automatic pruning takes too long time? i am using a sqlite-db and pruning of a used volume takes at least 30 minutes. if i prune the volume manual before schedule then the backup works. rico --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Martin Simmons wrote: On Mon, 01 Aug 2005 08:34:39 +0200, Rico [EMAIL PROTECTED] said: Rico Martin Simmons wrote: On Fri, 29 Jul 2005 11:00:05 +0200, Rico [EMAIL PROTECTED] said: Rico hi Rico i have made a donothing-backup-job. Rico then run donothing. Rico 29-Jul 10:23 pe2800oracle-dir: Start Backup JobId 477, Rico Job=donothing.2005-07-29_10.23.49 Rico volumeretentionperiod is over. bacula pruned the current volume and Rico changed status to recycle. till here all right. Rico 29-Jul 10:37 pe2800oracle-dir: Pruned 5 Jobs on Volume freitag1 from Rico catalog. Rico 29-Jul 10:37 pe2800oracle-dir: Recycled volume freitag1 Rico BUT then received this error-message: Rico 29-Jul 10:37 pe2800oracle-sd: Job donothing.2005-07-29_10.23.49 waiting. Rico Cannot find any appendable volumes. Rico Please use the label command to create a new Volume for: Rico Storage: LTO Ultrium 2 Rico Media type: LTO-G2 Rico Pool: Default Rico after certain time job will be canceled automatic. Rico why donothing is not using the purged and recycled volume? the jobs Rico dont wait till the purging is ready. Rico it schould working like this. Rico 1. job start Rico 2. purge volume and set status to recycle.(job must wait till purging is Rico ready) Rico 3. use the currently purged volume for backup It would be useful to post the output of list media in the console and also your pool definition for Default. __Martin Rico ok here ist my pool: Rico Pool { Rico Name = Default Rico Pool Type = Backup Rico Recycle = yes Rico AutoPrune = yes Rico Volume Retention = 325 hours Rico Accept Any Volume = yes Rico Recycle Current Volume = yes Rico Maximum Volumes = 10 Rico Maximum Volume Jobs = 5 Rico } Rico and here list media. this evening montag2 will be used(tape is Rico inserted and volumeretentionperiod is over). but i know the same error Rico like above WILL occur. if i purge the volume manuell before backup these Rico evening, then the backup runs without problems. but i wont do this Rico manuell every day. Rico Using default Catalog name=MyCatalog DB=bacula Rico Pool: Default Rico +-+-+---+--+--+--+-+--+---+---+-+ Rico | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | Rico VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten Rico | Rico +-+-+---+--+--+--+-+--+---+---+-+ Rico | 1 | montag1 | Read-Only | 1| 0| 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-12 03:40:57 | Rico | 2 | dienstag1 | Used | 289249453970 | 290 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-27 02:00:11 | Rico | 3 | mittwoch1 | Used | 378584181984 | 381 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-28 03:35:06 | Rico | 4 | donnerstag1 | Used | 378406052002 | 381 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-29 03:35:51 | Rico | 5 | freitag1| Used | 376792810971 | 380 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-30 03:45:38 | Rico | 7 | dienstag2 | Used | 372883955813 | 376 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-20 04:55:07 | Rico | 9 | mittwoch2 | Read-Only | 1| 0| 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-07 04:06:36 | Rico | 10 | donnerstag2 | Read-Only | 1| 0| 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-08 03:56:32 | Rico | 11 | freitag2| Used | 380277899635 | 382 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-23 17:41:14 | Rico | 12 | montag2 | Used | 373419137501 | 376 | 117 Rico | 1 | 0| 1 | LTO-G2| 2005-07-19 04:30:11 | Rico +-+-+---+--+--+--+-+--+---+---+-+ I can't anything obvious here. If it fails again this evening with montag2, please post the full console output and the output of list media again after the failure so we can see the VolStatus in the failing case. __Martin hi it failed again. the admin job was ok. the volume was pruned and recycled but thepig-job failed. here comes the output:
Re: [Bacula-users] volume recycling
On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. __Martin --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. I would suggest distilling the problem down to the very essence. From what I saw (briefly) in the emails exchanged, I would have a hard time figuring out what is not working correctly. -- Best regards, Kern ( /\ V_V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Kern Sibbald wrote: On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. I would suggest distilling the problem down to the very essence. From what I saw (briefly) in the emails exchanged, I would have a hard time figuring out what is not working correctly. kern, i can mail you my conf-files. should i open a bug-report anyway? in the meantime i must prune the current volume manual every day till the bug is fixed. thx rico --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Tuesday 02 August 2005 15:47, Rico wrote: Kern Sibbald wrote: On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. I would suggest distilling the problem down to the very essence. From what I saw (briefly) in the emails exchanged, I would have a hard time figuring out what is not working correctly. kern, i can mail you my conf-files. I don't think this will help because I don't understand the problem, and I don't have time to read conf files any more -- sorry. should i open a bug-report anyway? If you can clearly explain the problem and you are sure it is a bug, yet, open a bug report. in the meantime i must prune the current volume manual every day till the bug is fixed. If you are manually pruning Volumes to run, then you have very likely misconfigured something. There is a whole chapter in the manual devoted to having Bacula run unattended on a Disk based backup. It has been running for well over a year without any intervention on my part. This would not be possible without automatic pruning. That said, I note that there seems to be a bug in 1.37.x where the catalog size is growing despite pruning. This may also be a MySQL 4.12 bug. -- Best regards, Kern ( /\ V_V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Tuesday 02 August 2005 19:31, Martin Simmons wrote: On Tue, 2 Aug 2005 13:43:16 +0200, Kern Sibbald [EMAIL PROTECTED] said: Kern On Tuesday 02 August 2005 13:16, Martin Simmons wrote: On Tue, 02 Aug 2005 10:37:20 +0200, Rico [EMAIL PROTECTED] said: Rico it failed again. the admin job was ok. the volume was pruned and Rico recycled but thepig-job failed. The output looks normal to me, except for when the sd says Cannot find any appendable volumes. This could be a bug, so I suggest you report it at http://bugs.bacula.org/ including the latest console output. Kern I would suggest distilling the problem down to the very essence. From what I Kern saw (briefly) in the emails exchanged, I would have a hard time figuring out Kern what is not working correctly. I think this is the pertinent bit of the output. How can pe2800oracle-sd run between the Pruned and Recycled messages? 01-Aug 22:03 pe2800oracle-dir: Start Backup JobId 487, Job=thepig.2005-08-01_20.00.01 01-Aug 22:13 pe2800oracle-dir: Pruned 5 Jobs on Volume montag2 from catalog. 01-Aug 22:13 pe2800oracle-sd: Job thepig.2005-08-01_20.00.01 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: LTO Ultrium 2 Media type: LTO-G2 Pool: Default 01-Aug 23:13 pe2800oracle-dir: Recycled volume montag2 __Martin Well, I don't see anything running between messages, and I'm unsure what you mean. If you are trying to tie sequences of messages to their display order when they come from different daemons via the network and different threads and do not have thousandths of seconds in the time stamp, good luck. -- Best regards, Kern ( /\ V_V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
Martin Simmons wrote: On Fri, 29 Jul 2005 11:00:05 +0200, Rico [EMAIL PROTECTED] said: Rico hi Rico i have made a donothing-backup-job. Rico then run donothing. Rico 29-Jul 10:23 pe2800oracle-dir: Start Backup JobId 477, Rico Job=donothing.2005-07-29_10.23.49 Rico volumeretentionperiod is over. bacula pruned the current volume and Rico changed status to recycle. till here all right. Rico 29-Jul 10:37 pe2800oracle-dir: Pruned 5 Jobs on Volume freitag1 from Rico catalog. Rico 29-Jul 10:37 pe2800oracle-dir: Recycled volume freitag1 Rico BUT then received this error-message: Rico 29-Jul 10:37 pe2800oracle-sd: Job donothing.2005-07-29_10.23.49 waiting. Rico Cannot find any appendable volumes. Rico Please use the label command to create a new Volume for: Rico Storage: LTO Ultrium 2 Rico Media type: LTO-G2 Rico Pool: Default Rico after certain time job will be canceled automatic. Rico why donothing is not using the purged and recycled volume? the jobs Rico dont wait till the purging is ready. Rico it schould working like this. Rico 1. job start Rico 2. purge volume and set status to recycle.(job must wait till purging is Rico ready) Rico 3. use the currently purged volume for backup It would be useful to post the output of list media in the console and also your pool definition for Default. __Martin ok here ist my pool: Pool { Name = Default Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 325 hours Accept Any Volume = yes Recycle Current Volume = yes Maximum Volumes = 10 Maximum Volume Jobs = 5 } and here list media. this evening montag2 will be used(tape is inserted and volumeretentionperiod is over). but i know the same error like above WILL occur. if i purge the volume manuell before backup these evening, then the backup runs without problems. but i wont do this manuell every day. Using default Catalog name=MyCatalog DB=bacula Pool: Default +-+-+---+--+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-+-+---+--+--+--+-+--+---+---+-+ | 1 | montag1 | Read-Only | 1| 0| 117 | 1 | 0| 1 | LTO-G2| 2005-07-12 03:40:57 | | 2 | dienstag1 | Used | 289249453970 | 290 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-27 02:00:11 | | 3 | mittwoch1 | Used | 378584181984 | 381 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-28 03:35:06 | | 4 | donnerstag1 | Used | 378406052002 | 381 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-29 03:35:51 | | 5 | freitag1| Used | 376792810971 | 380 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-30 03:45:38 | | 7 | dienstag2 | Used | 372883955813 | 376 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-20 04:55:07 | | 9 | mittwoch2 | Read-Only | 1| 0| 117 | 1 | 0| 1 | LTO-G2| 2005-07-07 04:06:36 | | 10 | donnerstag2 | Read-Only | 1| 0| 117 | 1 | 0| 1 | LTO-G2| 2005-07-08 03:56:32 | | 11 | freitag2| Used | 380277899635 | 382 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-23 17:41:14 | | 12 | montag2 | Used | 373419137501 | 376 | 117 | 1 | 0| 1 | LTO-G2| 2005-07-19 04:30:11 | +-+-+---+--+--+--+-+--+---+---+-+ rico --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] volume recycling
On Fri, 29 Jul 2005 11:00:05 +0200, Rico [EMAIL PROTECTED] said: Rico hi Rico i have made a donothing-backup-job. Rico then run donothing. Rico 29-Jul 10:23 pe2800oracle-dir: Start Backup JobId 477, Rico Job=donothing.2005-07-29_10.23.49 Rico volumeretentionperiod is over. bacula pruned the current volume and Rico changed status to recycle. till here all right. Rico 29-Jul 10:37 pe2800oracle-dir: Pruned 5 Jobs on Volume freitag1 from Rico catalog. Rico 29-Jul 10:37 pe2800oracle-dir: Recycled volume freitag1 Rico BUT then received this error-message: Rico 29-Jul 10:37 pe2800oracle-sd: Job donothing.2005-07-29_10.23.49 waiting. Rico Cannot find any appendable volumes. Rico Please use the label command to create a new Volume for: Rico Storage: LTO Ultrium 2 Rico Media type: LTO-G2 Rico Pool: Default Rico after certain time job will be canceled automatic. Rico why donothing is not using the purged and recycled volume? the jobs Rico dont wait till the purging is ready. Rico it schould working like this. Rico 1. job start Rico 2. purge volume and set status to recycle.(job must wait till purging is Rico ready) Rico 3. use the currently purged volume for backup It would be useful to post the output of list media in the console and also your pool definition for Default. __Martin --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volume recycling
Hi MattB! In the Bacula on-line manual http://www.bacula.org/rel-manual/Automatic_Volume_Recycling.html you can find the recycling algorithm, that Bacula uses. I quote the relevant part here too: The full recycling algorithm that Bacula uses when it needs a new Volume is: * Search the Pool for a Volume with VolStatus=Append (if there is more than one, the Volume with the oldest date last written is chosen. If two have the same date then the one with the lowest MediaId is chosen). * Search the Pool for a Volume with VolStatus=Recycle (if there is more than one, the Volume with the oldest date last written is chosen. If two have the same date then the one with the lowest MediaId is chosen). * Prune volumes applying Volume retention period (Volumes with VolStatus Full, Used, or Append are pruned). * Search the Pool for a Volume with VolStatus=Purged * Attempt to create a new Volume if automatic labeling enabled * Prune the oldest Volume if RecycleOldestVolume=yes (the Volume with the oldest LastWritten date and VolStatus equal to Full, Recycle, Purged, Used, or Append is chosen). This record ensures that all retention periods are properly respected. * Purge the oldest Volume if PurgeOldestVolume=yes (the Volume with the oldest LastWritten date and VolStatus equal to Full, Recycle, Purged, Used, or Append is chosen). We strongly recommend against the use of PurgeOldestVolume as it can quite easily lead to loss of current backup data. * Give up and ask operator. I suggest you, that go through these steps, and try to find out, why your configuration does not choose one (the right one for your needs) from these steps. It may be important for you too the following paragraph: The Volume Retention period takes precedence over any Job Retention period you have specified in the Client resource. It should also be noted, that the Volume Retention period is obtained by reading the Catalog Database Media record rather than the Pool resource record. This means that if you change the VolumeRetention in the Pool resource record, you must ensure that the corresponding change is made in the catalog by using the update pool command. Doing so will insure that any new Volumes will be created with the changed Volume Retention period. Any existing Volumes will have their own copy of the Volume Retention period that can only be changed on a Volume by Volume basis using the update volume command. Hope, this helps you resolving your problem. Szaszka On Wed, 25 May 2005 12:55:50 -0400 Matthew Butt [EMAIL PROTECTED] wrote: I'm having a tough time trying to get Bacula to recycle volumes properly. I'm trying to backup a Windows server with a full backup on Sunday and incrementals Monday to Saturday. Backup is to a removable USB disk and I want the filenames to be automatically created in the format ProductionVol001, ProductionVol002 etc through to ProductionVol007, after which it will go back to 001 again. My relevant config entries are: Pool { Name = Production Use Volume Once = yes Pool Type = Backup LabelFormat = ProductionVol AutoPrune = yes Volume Retention = 7 days Maximum Volumes = 7 Recycle = yes } Client { Name = production-fd Address = production FDPort = 9102 Catalog = MyCatalog Password = password # password for FileDaemon File Retention = 30 days# 30 days Job Retention = 6 months# six months AutoPrune = yes # Prune expired Jobs/Files } Job { Name = ProductionFiles JobDefs = DefaultJob Client = production-fd Write Bootstrap = /var/bacula/ProductionFiles.bsr FileSet = ProductionFiles Pool = Production } The problem is that every time the schedule runs I'm getting the all-too-familiar error (below). All other backup jobs then stop completely. 25-May 08:43 backup-sd: Job ProductionFiles.2005-05-25_08.43.07 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: FileStorage Media type: File Pool: Production If I use label (which in my reckoning I should never need to do as Bacula should automatically create the label for me) then it works for that time, but next time it'll halt again with the same error. Can anyone throw me any pointers? Thanks, MattB --- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402alloc_id=16135op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users