Bacula-users

Re: [Bacula-users] Volumes purged but not recycled

2015-03-23 11:45:44
Subject: Re: [Bacula-users] Volumes purged but not recycled
From: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
To: Michael Schwager <mschwager AT mochotrading DOT com>
Date: Mon, 23 Mar 2015 12:43:29 -0300
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 <mschwager AT mochotrading DOT 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 AT lists.sourceforge DOT net/msg59113.html).

- Mike Schwager
  Linux Network Engineer, Mocho Trading LLC
  312-646-4783 Phone    312-637-0011 Cell    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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>