On Wed, Apr 22, 2009 at 7:32 AM, <kshatriyak AT gmail DOT com> wrote:
> Hello !
>
> Since we just bought new tapes, I want to do it the right way now: i want
> to know when I started using each tape, and how many times a tape was
> written.
>
> I know there is a field in bacula 'InitialWrite', but this isn't the
> datetime a media is taken in use for the first time, it is exact the same
> as FirstWritten (so it changes with every job). I talked with Kern about
> this on the buglist but this field isn't ment like this.
>
> So, as far as I know, there is no automated (or manual) way in Bacula to
> determine how many times a volume as been written and since when volume
> was taken first in use.
>
> Does anybody addresses this feature with seperate scripts (for example
> with an 'BeforeJob' or 'AfterJob') ? How do you people know or determine
> when tapes are worn out?
>
In the 5 years of using bacula daily at work on 30 to 50 clients and >
100TB backed up I have yet to have a tape worn out. I do have 100+
tapes though.
There is a query 16 that produces info like this
*query
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Available queries:
1: List up to 20 places where a File is saved regardless of the directory
2: List where the most recent copies of a file are saved
3: List last 20 Full Backups for a Client
4: List all backups for a Client after a specified time
5: List all backups for a Client
6: List Volume Attributes for a selected Volume
7: List Volumes used by selected JobId
8: List Volumes to Restore All Files
9: List Pool Attributes for a selected Pool
10: List total files/bytes by Job
11: List total files/bytes by Volume
12: List Files for a selected JobId
13: List Jobs stored on a selected MediaId
14: List Jobs stored for a given Volume name
15: List Volumes Bacula thinks are in changer
16: List Volumes likely to need replacement from age or errors
Choose a query (1-16): 16
+----------------+--------+--------+---------+--------+
| volume | mounts | errors | writes | status |
+----------------+--------+--------+---------+--------+
| NULL | NULL | NULL | NULL | NULL |
| JMD0-Temp-0021 | 55 | 0 | 36,246 | Append |
| JMD0-Def-0053 | 0 | 0 | 6 | Error |
| JMD0-Def-0050 | 0 | 0 | 6 | Error |
| JMD0-Def-0031 | 51 | 0 | 249,687 | Full |
| JMD0-Def-0012 | 59 | 0 | 247,843 | Full |
| JMD0-Def-0027 | 68 | 0 | 249,700 | Full |
| JMD0-Def-0001 | 91 | 0 | 386,130 | Full |
+----------------+--------+--------+---------+--------+
*q
I am at home now so these are disk volumes so there are no worries here..
John
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|