Re: [Bacula-users] Volumes purged but not recycled
On Tue, Mar 24, 2015 at 1:04 PM, Michael Schwager < mschwa...@mochotrading.com> wrote: > The question then is: How do I get a Purged, Recycle-able tape to get > written to starting at the beginning? Do I need to delete it and re-add it? Ooops- I figured it out. The order of operations that was performed was: * Purge (Recycle = 0) * Recycle = 1 (I did this, but Bacula did nothing to the tape) * status=Append (I did this) ...At that point, we had a purged, appendable volume and like you say, Bacula appended to it. Today it was already Recycle=1 and the data backed up last night was basically useless so I re-purged it. Bacula took it immediately and I can see that it's writing to the tape from the beginning. Thanks for the help. *- Mike Schwager* * Linux Network Engineer, Mocho Trading LLC* * 312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax* -- This message is for the named person(s) use only. It may contain confidential proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Mocho Trading LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volumes purged but not recycled
Hi Michael, Bacula will only recycle a volume when there is no appendable volume in the pool. If automatic volume labeling is configured, it will try to label a new one. If none of this occurs, then it will try to recycle one. And when Bacula recycles a volume it overwrites the contents of that volume (disk or tape). In the case you described here, you set the status to append, so Bacula started to write ate the end of the volume. Basically, Bacula will try to recycle volumes in Purged, Recycle, Used or Full status accordingly to the recycling algorithm. If you had marked the volume purged, them Bacula would have recycled it. Best regards, Ana On Tue, Mar 24, 2015 at 3:04 PM, Michael Schwager < mschwa...@mochotrading.com> wrote: > On Mon, Mar 23, 2015 at 10:43 AM, Ana Emília M. Arruda < > emiliaarr...@gmail.com> wrote: > >> When the volumes 16 to 26 were created, do you had "Recycle = yes" >> configured in this pool? It seems that these volumes were created without >> this option configured in your pool. Every change you made in your pools >> configurations, they must be updated to the existing volumes in catalog: >> update -> pool from resource. And to update all the existing volumes to the >> new configurations: update volume -> all volumes from pool (you can use >> from all pools if you change more than one pool). > > > Thanks, Ana. That would explain my one issue. I'm sure I did not have it > configured in the pool. I have updated all the volumes. I thought "Recycle" > was an indicator of state and not an indicator of capability. Now I > understand. > > But I had marked the volume with MediaID 16 with Recycle=Yes, and then I > marked it with Append. Then Bacula appended a few files to it, but it ran > out of room almost immediately. I guess that makes sense. > > The question then is: How do I get a Purged, Recycle-able tape to get > written to starting at the beginning? Do I need to delete it and re-add it? > > > *- Mike Schwager* > > * Linux Network Engineer, Mocho Trading LLC* > * 312-646-4783 <312-646-4783> Phone312-637-0011 <312-637-0011> > Cell312-957-9804 <312-957-9804> Fax* > > > This message is for the named person(s) use only. It may contain > confidential proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. If > you receive this message in error, please immediately delete it and all > copies of it from your system, destroy any hard copies of it and notify the > sender. You must not, directly or indirectly use, disclose, distribute, > print, or copy any part of this message if you are not the intended > recipient. Mocho Trading LLC reserves the right to monitor all e-mail > communications through its networks. Any views expressed in this message > are those of the individual sender, except where the message states > otherwise and the sender is authorized to state them to be the views of any > such entity. > -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volumes purged but not recycled
On Mon, Mar 23, 2015 at 10:43 AM, Ana Emília M. Arruda < emiliaarr...@gmail.com> wrote: > When the volumes 16 to 26 were created, do you had "Recycle = yes" > configured in this pool? It seems that these volumes were created without > this option configured in your pool. Every change you made in your pools > configurations, they must be updated to the existing volumes in catalog: > update -> pool from resource. And to update all the existing volumes to the > new configurations: update volume -> all volumes from pool (you can use > from all pools if you change more than one pool). Thanks, Ana. That would explain my one issue. I'm sure I did not have it configured in the pool. I have updated all the volumes. I thought "Recycle" was an indicator of state and not an indicator of capability. Now I understand. But I had marked the volume with MediaID 16 with Recycle=Yes, and then I marked it with Append. Then Bacula appended a few files to it, but it ran out of room almost immediately. I guess that makes sense. The question then is: How do I get a Purged, Recycle-able tape to get written to starting at the beginning? Do I need to delete it and re-add it? *- Mike Schwager* * Linux Network Engineer, Mocho Trading LLC* * 312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax* -- This message is for the named person(s) use only. It may contain confidential proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Mocho Trading LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Volumes purged but not recycled
Hi Michael, When the volumes 16 to 26 were created, do you had "Recycle = yes" configured in this pool? It seems that these volumes were created without this option configured in your pool. Every change you made in your pools configurations, they must be updated to the existing volumes in catalog: update -> pool from resource. And to update all the existing volumes to the new configurations: update volume -> all volumes from pool (you can use from all pools if you change more than one pool). The "recycle pool" directive is not necessary, only if you want to move your volume to another pool when it is recycled. If you don´t set it, the volume will remain in the same pool. Best regards, Ana On Mon, Mar 23, 2015 at 11:53 AM, Michael Schwager < mschwa...@mochotrading.com> wrote: > Hello, > I am running Bacula 5.0.0 on Centos 6.5 *. I have old tapes that are in > Purged VolStatus and one of them is in our tape Changer library but Bacula > is not using it. Is there something I need to do to Purged volumes to make > Bacula write to them? > > I have a retention period of 90 days on my tapes, a tape that was last > written on 2014-11-15, and here it is 2015 March 23 and my current backup > job is stopped waiting to create a volume: > > Device "HP_LTO-3" (/dev/nst0) is not open. > Device is BLOCKED waiting to create a volume for: >Pool:Tape >Media type: LTO-3 > > I notice that the "Recycle" column in my "list media" don't seem to make > sense. Old tapes are marked "0" which I believe means they are not > available for recycling, new tapes are marked "1". > > Here are my media (some columns removed for brevity): > *list media > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > Pool: Tape > > +-+---+-+--+-+--+---+-+ > | MediaId | VolStatus | Enabled | VolRetention | Recycle | Slot | > InChanger | LastWritten | > > +-+---+-+--+-+--+---+-+ > | 16 | Purged| 1 |7,776,000 | 0 |4 | > 1 | 2014-11-15 11:45:33 | > | 17 | Purged| 1 |7,776,000 | 0 |0 | > 0 | 2014-12-20 07:04:03 | > | 23 | Error | 1 | 31,536,000 | 0 |0 | > 0 | 2014-12-02 06:46:34 | > | 26 | Full | 1 |7,776,000 | 0 |0 | > 0 | 2015-01-03 07:24:13 | > | 29 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-01-17 07:49:39 | > | 30 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-01-30 06:19:04 | > | 31 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-02-07 07:48:53 | > | 34 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-02-21 06:48:28 | > | 39 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-03-17 06:19:22 | > | 40 | Full | 1 |7,776,000 | 1 |0 | > 0 | 2015-03-07 07:59:28 | > | 42 | Full | 1 |7,776,000 | 1 |7 | > 1 | 2015-03-21 07:59:04 | > > +-+---+-+--+-+--+---+-+ > > Here is what my "Tape" pool says: > # Tape pool definition > Pool { > Name = Tape > Pool Type = Backup > Recycle = yes > AutoPrune = yes > Volume Retention = 3 months > # Maximum Volume Bytes = 400G > # Maximum Volumes = 7 > } > > ...do I need to have a "RecyclePool" line in there for it to work? Maybe I > should put in: > RecyclePool = Tape > ? > > Thanks for any help. > > * I'm thinking to upgrade, but before then I need this thing to work. It's > been pretty solid up till now. When I do upgrade, are there any caveats? I > notice that Simone Caronni has created some packages that seem to take care > of it ( > https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg59113.html > ). > > > *- Mike Schwager* > > * Linux Network Engineer, Mocho Trading LLC* > * 312-646-4783 <312-646-4783> Phone312-637-0011 <312-637-0011> > Cell312-957-9804 <312-957-9804> Fax* > > > This message is for the named person(s) use only. It may contain > confidential proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. If > you receive this message in error, please immediately delete it and all > copies of it from your system, destroy any hard copies of it and notify the > sender. You must not, directly or indirectly use, disclose, distribute, > print, or copy any part of this message if you are not the intended > recipient. Mocho Trading LLC reserves the right to monitor all e-mail > communications through its networks. Any views expressed in this message > are those of the individual sender, except where the message states > otherwise and the sender is authorized to state them to be the views of any > such entity. > > -
[Bacula-users] Volumes purged but not recycled
Hello, I am running Bacula 5.0.0 on Centos 6.5 *. I have old tapes that are in Purged VolStatus and one of them is in our tape Changer library but Bacula is not using it. Is there something I need to do to Purged volumes to make Bacula write to them? I have a retention period of 90 days on my tapes, a tape that was last written on 2014-11-15, and here it is 2015 March 23 and my current backup job is stopped waiting to create a volume: Device "HP_LTO-3" (/dev/nst0) is not open. Device is BLOCKED waiting to create a volume for: Pool:Tape Media type: LTO-3 I notice that the "Recycle" column in my "list media" don't seem to make sense. Old tapes are marked "0" which I believe means they are not available for recycling, new tapes are marked "1". Here are my media (some columns removed for brevity): *list media Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" Pool: Tape +-+---+-+--+-+--+---+-+ | MediaId | VolStatus | Enabled | VolRetention | Recycle | Slot | InChanger | LastWritten | +-+---+-+--+-+--+---+-+ | 16 | Purged| 1 |7,776,000 | 0 |4 | 1 | 2014-11-15 11:45:33 | | 17 | Purged| 1 |7,776,000 | 0 |0 | 0 | 2014-12-20 07:04:03 | | 23 | Error | 1 | 31,536,000 | 0 |0 | 0 | 2014-12-02 06:46:34 | | 26 | Full | 1 |7,776,000 | 0 |0 | 0 | 2015-01-03 07:24:13 | | 29 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-01-17 07:49:39 | | 30 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-01-30 06:19:04 | | 31 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-02-07 07:48:53 | | 34 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-02-21 06:48:28 | | 39 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-03-17 06:19:22 | | 40 | Full | 1 |7,776,000 | 1 |0 | 0 | 2015-03-07 07:59:28 | | 42 | Full | 1 |7,776,000 | 1 |7 | 1 | 2015-03-21 07:59:04 | +-+---+-+--+-+--+---+-+ Here is what my "Tape" pool says: # Tape pool definition Pool { Name = Tape Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 3 months # Maximum Volume Bytes = 400G # Maximum Volumes = 7 } ...do I need to have a "RecyclePool" line in there for it to work? Maybe I should put in: RecyclePool = Tape ? Thanks for any help. * I'm thinking to upgrade, but before then I need this thing to work. It's been pretty solid up till now. When I do upgrade, are there any caveats? I notice that Simone Caronni has created some packages that seem to take care of it ( https://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg59113.html ). *- Mike Schwager* * Linux Network Engineer, Mocho Trading LLC* * 312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax* -- This message is for the named person(s) use only. It may contain confidential proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Mocho Trading LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users