Bacula-users

Re: [Bacula-users] info on how old a tape volume is

2009-07-11 07:37:00
Subject: Re: [Bacula-users] info on how old a tape volume is
From: Petar Bogdanovic <petar AT smokva DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 11 Jul 2009 13:16:35 +0200
On Sat, Jul 11, 2009 at 09:51:21AM +0200, Ralf Gross wrote:
> 
> I'm looking for some info about the usage of tape volumes (date of first 
> usage,
> data written...).
> 
> 
> *llist media=A00162L4
>           mediaid: 539
>        volumename: A00162L4
>              slot: 34
>            poolid: 49
>         mediatype: LTO4
>      firstwritten: 2009-07-10 15:36:16
>       lastwritten: 2009-07-10 19:48:16
>         labeldate: 2009-07-10 15:36:16
>           voljobs: 1
>          volfiles: 68
>         volblocks: 1,375,253
>         volmounts: 3
>          volbytes: 360,514,323,456
>         volerrors: 2
>         volwrites: 8,056,338
>  volcapacitybytes: 0
>         volstatus: Disabled
>           enabled: 1
>           recycle: 1
>      volretention: 4,579,200
>    voluseduration: 432,000
>        maxvoljobs: 0
>       maxvolfiles: 0
>       maxvolbytes: 0
>         inchanger: 1
>           endfile: 67
>          endblock: 3,159
>          volparts: 0
>         labeltype: 0
>         storageid: 32
>          deviceid: 0
>        locationid: 0
>      recyclecount: 2
>      initialwrite: 
>     scratchpoolid: 0
>     recyclepoolid: 0
>           comment: 
> 
> 
> 
> So I would think that 2009-07-10 was the time when the tape was first used.
> 
> On the other hand my logs tell me that the tape was used on 2009-06-13 (I've 
> no
> older logs).
> 
> /var/log/bacula/bacula.log.4.gz:13-Jun 17:53 VU0EA003-sd JobId 12904: Wrote 
> label to prelabeled Volume "A00162L4" on device "ULTRIUM-TD4-D3" 
> (/dev/ULTRIUM-TD4-D3)
> 
> 
> Query 16 doesn't show the age either (List Volumes likely to need replacement
> from age or errors).
> 
> 
> So the info of llist is not what I'm looking for. Is there any other way to 
> see
> the age of an tape?

`initialwrite' is not yet implemented:

        http://marc.info/?l=bacula-bugs&m=122589937024372&w=2

Maybe a rough estimate using `recyclecount', `volretention' and some
simple math would suffice?



   Petar Bogdanovic




------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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>