Bacula-users

Re: [Bacula-users] Volume Status is Full instead of Purge

2013-09-24 02:52:53
Subject: Re: [Bacula-users] Volume Status is Full instead of Purge
From: Deepak <deepak AT palincorporates DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Tue, 24 Sep 2013 12:20:19 +0530
Quoting John Drescher <drescherjm AT gmail DOT com>:

> On Mon, Sep 23, 2013 at 3:23 PM, Deepak <deepak AT palincorporates DOT com> 
> wrote:
>
>> Hi ,
>>
>> While testing Recycling configuration for volumes. I am facing a issue.
>>
>> My volumes are in Full status even after expiration of Volume
>> Retention period.
>>
>> I have used "Volume Retention = 3 hours" in pools
>>
>> "Job Retention = 4 months" and "File Retention = 4 months"  in client
>> but 6 hours after last written my volume is still in Full status where
>> as I think it should be in Purge state.
>>
>> my pool configuration is:
>>
>>
>> Pool {
>>          Name = BACKUP
>>          Label Format = "Backup"
>>          Pool Type = Backup
>>          Recycle = yes           # Bacula can automatically recycle Volumes
>>          AutoPrune = yes         # Prune expired volumes
>>          Storage = Autochanger
>>          Volume Retention = 3 hours
>>          Cleaning Prefix = "CLN"
>>          Recycle Oldest Volume = yes
>> }
>>
>> my client configuration is:
>>
>> Client {
>>    Name = backup-fd
>>    Address = localhost
>>    FDPort = 9102
>>    Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"          #
>> password for FileDaemon
>>    Catalog = DefaultCatalog
>>    File Retention = 4 months
>>    Job Retention = 4 months
>>    AutoPrune = yes                     # Prune expired Jobs/Files
>> }
>>
>> in bconsole list media command shows below output:
>>
>> *list media
>> Pool: BACKUP
>>
>> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>> | MediaId | VolumeName | VolStatus | Enabled | VolBytes        |
>> VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
>> LastWritten         |
>>
>> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>> |       2 | A00040L4   | Append    |       1 | 825,924,685,824 |
>> 832 |       10,800 |       1 |    1 |         1 | LTO-4     |
>> 2013-09-24 00:45:46 |
>> |       3 | A00041L4   | Append    |       1 |          64,512 |
>>   0 |       10,800 |       1 |    2 |         1 | LTO-4     |
>> 0000-00-00 00:00:00 |
>> |       4 | A00042L4   | Full      |       1 | 845,369,247,744 |
>> 852 |       10,800 |       1 |    3 |         1 | LTO-4     |
>> 2013-09-23 19:20:01 |
>>
>> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>>
>> As it can be seen that last written time on this volume is 19:20:01 it
>> is mote than 6 hours.
>>
>>      Please tell me why it is in Full status . when it will be in purge
>> state.
>>      Will it be a problem for volume recycling
>>
>>
>
>
> Bacula will only recycle a volume when it needs one.
>
> John
>



thanks for Information John,

I am testing ... Let me see when it will recycle these volumes :-)

Here are few more things I am facing and want to discuss...

1) I have removed complete mysql database using drop_mysql_tables and  
then created new tables using make_mysql_table command . Every thing  
is clean now in database except one thing. When I am checking director  
with status director command in bconsole. then stiil it is showing  
lots of old jobs entries. Why it is happening?

below is output of status director command.


*status director
backup-dir Version: 5.2.12 (12 September 2012)  
x86_64-unknown-linux-gnu redhat Enterprise release
Daemon started 23-Sep-13 15:30. Jobs: run=29, running=0 mode=0,0
  Heap: heap=172,032 smbytes=191,848 max_bytes=11,904,773 bufs=598  
max_bufs=2,543

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================

Full           Backup    10  25-Sep-13 00:40    CONFIG          A00041L4
Full           Backup    10  25-Sep-13 01:10    CONFIG          A00041L4
Full           Backup    12  25-Sep-13 03:30    Catalog         
CatalogBackup0005
====

Running Jobs:
Console connected at 24-Sep-13 11:39
Console connected at 24-Sep-13 11:41
Console connected at 24-Sep-13 11:59
No Jobs running.
====

Terminated Jobs:
  JobId  Level    Files      Bytes   Status   Finished        Name
====================================================================

     17  Full          0         0   Error    23-Sep-13 22:15 CONFIG


2) second issue I am facing with huge logs which lin_tape driver is  
sending to /var/log/messages file while writing data on tapes, it is  
also sending lots of logs while reading data too. these things are  
making my messages file very huge to maintain. Please tell me some way  
to handle this.



Thanks ...!!!



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users