Bacula-users

Re: [Bacula-users] volume expire issue

2010-07-12 19:20:25
Subject: Re: [Bacula-users] volume expire issue
From: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Mon, 12 Jul 2010 15:59:22 -0700
John,

This is the first time the tape has been used by Bacula, I was using NetBackup 
before. I did alter the offsite retention period a month or so ago.

Another question... I have 4 tapes that are reporting as FULL but have no data 
on them. Both BAT and Bconsole are consistent with eachother on volume stats.

See attached for BAT illustration.

Bconsole output:

*list media pool=Onsite
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
...
|      79 | 000082     | Full      |       1 |          64,512 |        1 |    
7,776,000 |       1 |   11 |         1 | LTO2      | 0000-00-00 00:00:00 |
|      80 | KL0445     | Full      |       1 |          64,512 |        1 |    
7,776,000 |       1 |   12 |         1 | LTO2      | 0000-00-00 00:00:00 |
|      81 | KL0367     | Full      |       1 |          64,512 |        1 |    
7,776,000 |       1 |   13 |         1 | LTO2      | 0000-00-00 00:00:00 |
|      82 | KL0385     | Full      |       1 |          64,512 |        1 |    
7,776,000 |       1 |   14 |         1 | LTO2      | 0000-00-00 00:00:00 |
...

I've already issued a 'label barcodes' since I did just add some new tapes. Not 
sure if there were new ones, could be since no 'last written' date.  Here is 
the 'status slots' report.


 Slot |   Volume Name    |   Status  |     Media Type       |      Pool         
 |
------+------------------+-----------+----------------------+--------------------|
    1 |           000064 |     Error |                 LTO2 |             
Onsite |
    2 |           KL0339 |    Append |                 LTO2 |            
Offsite |
    3 |           KL0423 |     Error |                 LTO2 |            
Offsite |
    4 |           000098 |     Error |                 LTO2 |             
Onsite |
    5 |           KL0313 |    Append |                 LTO2 |             
Onsite |
    6 |           KL0392 |      Full |                 LTO2 |            
Offsite |
    7 |           KL0449 |    Append |                 LTO2 |            
Scratch |
    8*|           KL0444 |         ? |                    ? |                  
? |
    9 |           KL0362 |     Error |                 LTO2 |             
Onsite |
   10 |           KL0324 |    Append |                 LTO2 |            
Scratch |
   11 |           000082 |      Full |                 LTO2 |             
Onsite |
   12 |           KL0445 |      Full |                 LTO2 |             
Onsite |
   13 |           KL0367 |      Full |                 LTO2 |             
Onsite |
   14 |           KL0385 |      Full |                 LTO2 |             
Onsite |
   15*|           000087 |         ? |                    ? |                  
? |
   16 |           000103 |    Append |                 LTO2 |            
Scratch |
   17 |           000089 |    Append |                 LTO2 |            
Offsite |
   18 |           KL0391 |    Append |                 LTO2 |            
Scratch |
   19 |           KL0419 |    Append |                 LTO2 |            
Scratch |
   20 |           KL0325 |    Append |                 LTO2 |            
Offsite |
   21 |           KL0350 |     Error |                 LTO2 |             
Onsite |
   22 |                  |           |                      |                   
 |
   23 |                  |           |                      |                   
 |

Thanks,
JJ

-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Monday, July 12, 2010 1:31 PM
To: Jeremiah D. Jester
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] volume expire issue

On Mon, Jul 12, 2010 at 4:23 PM, Jeremiah D. Jester <jjest AT u.washington DOT 
edu> wrote:
>> |     104 | KL0392     | Full      |       1 | 226,775,678,976 |
>> | 227 |   31,536,000 |       1 |    6 |         1 | LTO2      |
>> | 2010-07-09 11:40:01 |
>
> Ok, so you took the VolRention secs and did this calculation to get number of 
> days?
>
> 31,536,000  / (60*60*24) = 365 days
>
> Why do you suppose the volume wasn't added to the 'Offsite' pool? Looks like 
> it got put into the 'Catalog' pool. When I swap out full tapes I'm simply 
> running 'lable barcodes' and assigning all tapes to scratch. Is this correct? 
> Thanks for your help!
>

No it was in the correct pool just did not have the correct retention.

If it was in the wrong pool it would not have been returned in the list media 
command.

Did you move this volume from a different pool? Did you ever change the volume 
retention of the Offsite pool after adding tapes?

John

Attachment: full-tapes.png
Description: full-tapes.png

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users