Re: [Bacula-users] Volume not recycling?

2014-06-02 Thread Kern Sibbald

  
  
Hello,
  
  Just one tip: if you use a Volume Use Duration as many people do,
  please ensure that it is not an exact multiple of 24 hours. 
  Otherwise, at some point you will have several jobs that start,
  the first gets Volume 001, then the second starts and the Volume
  001 is recycled (usually on some interval of 24 hours) and the
  second job get very confused.
  
  If you specify a use duration of say 20-23 hours, this problem
  (race condition) will be avoided.
  
  Regards,
  Kern
  
  On 05/24/2014 03:57 PM, Ana Emília M. Arruda wrote:


  
Hi!



  You are correct Luc. 


He
  needs a "stop using volume directive", and I paste here the
  options from manual:



  The
above three directives are all you need assuming that you
fill each of your Volumes then wait the Volume Retention
period before reusing them. If you want Bacula to stop using
a Volume and recycle it before it is full, you will need to
use one or more additional directives such as:
  
Use Volume _Once_ = yes
Volume Use Duration = ttt
Maximum Volume Jobs = nnn
Maximum Volume Bytes = mmm
  


  Particularly, I like the "volume use duration" when you have
  more than one job writing to volume. It works like a charm for
  me.



  But, with Volume retention = 1 month and a "stop using volume
  directive"configured, all the jobs and files are pruned when
  the volume retention period is reached. So he will not have
  jobs and files for a year, but for a month too.


Regards,
Ana


  
  

On Fri, May 23, 2014 at 10:59 AM, Luc
  Van der Veken <luc...@wimionline.com>
  wrote:
  

  
I’m not the expert, so I could be
wrong, but these are a few things I noticed.
I hope if I’m wrong, whether it be
completely or in a detail, someone will correct me
so I learn something from it myself.
 
- Looks like it’s a disk volume, and
there’s no limit on volume size or job count or
time, nor a “Use Volume Once”. I think it will just
keep appending without ever starting a new volume.
- File & job retention 1 year,
would span 12 full backups.
- Volume retention 1 month: that starts
counting after the last write to the volume, not at
day one.  It also may never happen (or
at least later than you expect, I don’t know if
there’s a default maximum size) because there’s no
limit on volume use.
 
 
 
From: Henrique Machado [mailto:henri@gmail.com]

Sent: 23 May 2014 14:52
To: bacula-users@lists.sourceforge.net
            Subject: [Bacula-users] Volume not recycling?

  
 

  
Hello!
  
  
 
  
  
I'm
  backuping a windows 2008 R2 64bits fileserver.
  I just want a full backup at 1st friday and
  incremental at another days.
  
  
 
  
  
Current
  Windows Used disk: 1.13 TB
  
  
Current
  Full backup Volume: 3.4 TB
  
  
Current
  Incremental backup Volume: 167 GB
  
  
 
  
  
Why
  my full backup volume is 3x more than my
  backuped disk?
  
  
 
  

Re: [Bacula-users] Volume not recycling?

2014-05-24 Thread Ana Emília M . Arruda
Hi!

You are correct Luc.

He needs a "stop using volume directive", and I paste here the options from
manual:

The above three directives are all you need assuming that you fill each of
your Volumes then wait the Volume Retention period before reusing them. If
you want Bacula to stop using a Volume and recycle it before it is full,
you will need to use one or more additional directives such as:

   - Use Volume Once = yes
   - Volume Use Duration = ttt
   - Maximum Volume Jobs = nnn
   - Maximum Volume Bytes = mmm

Particularly, I like the "volume use duration" when you have more than one
job writing to volume. It works like a charm for me.

But, with Volume retention = 1 month and a "stop using volume
directive"configured, all the jobs and files are pruned when the volume
retention period is reached. So he will not have jobs and files for a year,
but for a month too.

Regards,
Ana



On Fri, May 23, 2014 at 10:59 AM, Luc Van der Veken
wrote:

>  I’m not the expert, so I could be wrong, but these are a few things I
> noticed.
>
> I hope if I’m wrong, whether it be completely or in a detail, someone will
> correct me so I learn something from it myself.
>
>
>
> - Looks like it’s a disk volume, and there’s no limit on volume size or
> job count or time, nor a “Use Volume Once”. I think it will just keep
> appending without ever starting a new volume.
>
> - File & job retention 1 year, would span 12 full backups.
>
> - Volume retention 1 month: that starts counting after the last write to
> the volume, not at day one.  It also may never happen (or at least later
> than you expect, I don’t know if there’s a default maximum size) because
> there’s no limit on volume use.
>
>
>
>
>
>
>
> *From:* Henrique Machado [mailto:henri....@gmail.com]
> *Sent:* 23 May 2014 14:52
> *To:* bacula-users@lists.sourceforge.net
> *Subject:* [Bacula-users] Volume not recycling?
>
>
>
> Hello!
>
>
>
> I'm backuping a windows 2008 R2 64bits fileserver. I just want a full
> backup at 1st friday and incremental at another days.
>
>
>
> Current Windows Used disk: 1.13 TB
>
> Current Full backup Volume: 3.4 TB
>
> Current Incremental backup Volume: 167 GB
>
>
>
> Why my full backup volume is 3x more than my backuped disk?
>
>
>
> Thanks.
>
>
>
>
>
> OS: CentOS release 6.5
>
> Bacula Version: 5.0.0
>
>
>
>
>
> #fileserver.conf
>
>
>
> Client {
>
>   Name = fileserver-fd
>
>   Password = 123456789
>
>   Address = fileserver.domain.local
>
>   FDPort = 9102
>
>   Catalog = MyCatalog
>
>   File Retention = 1 year
>
>   Job Retention = 1 year
>
> }
>
>
>
> Job {
>
>   Name = fileserverDefault-Job
>
>   Type = Backup
>
>   Level = Incremental
>
>   Client = fileserver-fd
>
>   FileSet = fileserverDefault-Fileset
>
>   Schedule = fileserverDefault-Schedule
>
>   Storage = Default
>
>   Pool = Default
>
>   Full Backup Pool = "fileserverFull-Pool"
>
>   Incremental Backup Pool = "fileserverIncremental-Pool"
>
>   Messages = Standard
>
> }
>
>
>
> Pool {
>
>   Name = fileserverFull-Pool
>
>   Pool Type = Backup
>
>   Volume Retention = 1 month
>
>   Recycle = yes
>
>   AutoPrune = yes
>
>   LabelFormat = fileserverFull-
>
> }
>
>
>
> Pool {
>
>   Name = fileserverIncremental-Pool
>
>   Pool Type = Backup
>
>   Volume Retention = 1 month
>
>   Recycle = yes
>
>   AutoPrune = yes
>
>   LabelFormat = fileserverIncremental-
>
> }
>
>
>
> FileSet {
>
>   Name = fileserverDefault-Fileset
>
>   Include {
>
> File = D:/Public
>
> File = D:/Users
>
> Options {
>
>   Signature = MD5
>
>   Compression = GZIP5
>
>
>
> }
>
>   }
>
> }
>
>
>
>
>
> Schedule {
>
>   Name = fileserverDefault-Schedule
>
>   Run = Level=Full Pool=fileserverFull-Pool 1st fri at 19:00
>
>   Run = Level=Incremental Pool=fileserverIncremental-Pool daily at 22:00
>
> }
>
>
>
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Volume not recycling?

2014-05-23 Thread John Drescher
> - Looks like it’s a disk volume, and there’s no limit on volume size or job
> count or time, nor a “Use Volume Once”. I think it will just keep appending
> without ever starting a new volume.
>
You are correct.

>
> - File & job retention 1 year, would span 12 full backups.
>
> - Volume retention 1 month: that starts counting after the last write to the
> volume, not at day one.  It also may never happen (or at least later than
> you expect, I don’t know if there’s a default maximum size) because there’s
> no limit on volume use.
>

The retention period will begin when the volume is marked Full or
Used. With the current settings that will happen when the filesystem
becomes full. At that point bacula will start the retention counting
from the last modified time. Also at that time bacula will prompt the
user to label an additional volume since there are no appendable
volumes.

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Volume not recycling?

2014-05-23 Thread Luc Van der Veken
I’m not the expert, so I could be wrong, but these are a few things I noticed.
I hope if I’m wrong, whether it be completely or in a detail, someone will 
correct me so I learn something from it myself.

- Looks like it’s a disk volume, and there’s no limit on volume size or job 
count or time, nor a “Use Volume Once”. I think it will just keep appending 
without ever starting a new volume.
- File & job retention 1 year, would span 12 full backups.
- Volume retention 1 month: that starts counting after the last write to the 
volume, not at day one.  It also may never happen (or at least later than you 
expect, I don’t know if there’s a default maximum size) because there’s no 
limit on volume use.



From: Henrique Machado [mailto:henri@gmail.com]
Sent: 23 May 2014 14:52
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Volume not recycling?

Hello!

I'm backuping a windows 2008 R2 64bits fileserver. I just want a full backup at 
1st friday and incremental at another days.

Current Windows Used disk: 1.13 TB
Current Full backup Volume: 3.4 TB
Current Incremental backup Volume: 167 GB

Why my full backup volume is 3x more than my backuped disk?

Thanks.


OS: CentOS release 6.5
Bacula Version: 5.0.0


#fileserver.conf

Client {
  Name = fileserver-fd
  Password = 123456789
  Address = fileserver.domain.local
  FDPort = 9102
  Catalog = MyCatalog
  File Retention = 1 year
  Job Retention = 1 year
}

Job {
  Name = fileserverDefault-Job
  Type = Backup
  Level = Incremental
  Client = fileserver-fd
  FileSet = fileserverDefault-Fileset
  Schedule = fileserverDefault-Schedule
  Storage = Default
  Pool = Default
  Full Backup Pool = "fileserverFull-Pool"
  Incremental Backup Pool = "fileserverIncremental-Pool"
  Messages = Standard
}

Pool {
  Name = fileserverFull-Pool
  Pool Type = Backup
  Volume Retention = 1 month
  Recycle = yes
  AutoPrune = yes
  LabelFormat = fileserverFull-
}

Pool {
  Name = fileserverIncremental-Pool
  Pool Type = Backup
  Volume Retention = 1 month
  Recycle = yes
  AutoPrune = yes
  LabelFormat = fileserverIncremental-
}

FileSet {
  Name = fileserverDefault-Fileset
  Include {
File = D:/Public
File = D:/Users
Options {
  Signature = MD5
  Compression = GZIP5

}
  }
}


Schedule {
  Name = fileserverDefault-Schedule
  Run = Level=Full Pool=fileserverFull-Pool 1st fri at 19:00
  Run = Level=Incremental Pool=fileserverIncremental-Pool daily at 22:00
}

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Volume not recycling?

2014-05-23 Thread Henrique Machado
Hello!

I'm backuping a windows 2008 R2 64bits fileserver. I just want a full
backup at 1st friday and incremental at another days.

Current Windows Used disk: 1.13 TB
Current Full backup Volume: 3.4 TB
Current Incremental backup Volume: 167 GB

Why my full backup volume is 3x more than my backuped disk?

Thanks.


OS: CentOS release 6.5
Bacula Version: 5.0.0


#fileserver.conf

Client {
  Name = fileserver-fd
  Password = 123456789
  Address = fileserver.domain.local
  FDPort = 9102
  Catalog = MyCatalog
  File Retention = 1 year
  Job Retention = 1 year
}

Job {
  Name = fileserverDefault-Job
  Type = Backup
  Level = Incremental
  Client = fileserver-fd
  FileSet = fileserverDefault-Fileset
  Schedule = fileserverDefault-Schedule
  Storage = Default
  Pool = Default
  Full Backup Pool = "fileserverFull-Pool"
  Incremental Backup Pool = "fileserverIncremental-Pool"
  Messages = Standard
}

Pool {
  Name = fileserverFull-Pool
  Pool Type = Backup
  Volume Retention = 1 month
  Recycle = yes
  AutoPrune = yes
  LabelFormat = fileserverFull-
}

Pool {
  Name = fileserverIncremental-Pool
  Pool Type = Backup
  Volume Retention = 1 month
  Recycle = yes
  AutoPrune = yes
  LabelFormat = fileserverIncremental-
}

FileSet {
  Name = fileserverDefault-Fileset
  Include {
File = D:/Public
File = D:/Users
Options {
  Signature = MD5
  Compression = GZIP5

}
  }
}


Schedule {
  Name = fileserverDefault-Schedule
  Run = Level=Full Pool=fileserverFull-Pool 1st fri at 19:00
  Run = Level=Incremental Pool=fileserverIncremental-Pool daily at 22:00
}
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Volume not recycling - Volume Retention && Recycle Current Volume

2007-06-24 Thread Arno Lehmann
Hi,

24.06.2007 09:49,, Bradley Schatz wrote::
> Hi,
> 
> I have a set of pools for full daily backups - Monday to Friday. Each
> pool has exacly one tape in it, and is intended to be recycled and
> used the next weekday. I am using a 6 day volume retention, with
> recycle=yes and recycle current volume = yes to try to achieve this,
> to no avail.
> 
> The volume, for example Friday, shows up before the friday backup run
> in append state, at which point the director tries to append a full
> backup to it, rather than to purge it and recycle. The tape fills up,
> and then the director starts complaining that it cant find any
> appendable volumes.
> 
> Relevant configs below. Any suggestions on how to recycle in this
> manner? Bacula version  2.1.18.

The problem would be that your volumes are not in state "Used" when 
the backup starts.

In addition to the volume retention, you'll also need to set the 
volume use time. This could probably set to 23 hours (ensuring the 
volume is marked as "used" when the next jobs start).

Don't forget to update the settings for the existing volumes after you 
modified the pool configuration!

Arno

> thanks,
> 
> Bradley
> 
> 23-Jun 00:52 foundry-sd: Job NightlySaveFoundry.2007-06-22_23.30.00
> waiting. Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
> Storage:  "VXA-2" (/dev/nst0)
> Pool: Friday
> Media type:   VXA-2
> 
> 
> Pool {
>   Name = Friday
>   Pool Type = Backup
>   AutoPrune = yes
>   Volume Retention = 6d
>   Maximum Volumes = 1
>   Recycle = yes
>   Recycle Current Volume = yes
>   }
> 
> +-++---+-++--+--+-+--+---+---+-+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes   |
> VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
> LastWritten |
> +-++---+-++--+--+-+--+---+---+-+
> |   5 | Friday | Full  |   1 | 30,671,972,352 |
> 33 |  518,400 |   1 |0 | 1 | VXA-2 |
> 2007-06-22 23:50:54 |
> +-++---+-++--+--+-+--+---+---+-+
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Volume not recycling - Volume Retention && Recycle Current Volume

2007-06-24 Thread Bradley Schatz
Hi,

I have a set of pools for full daily backups - Monday to Friday. Each
pool has exacly one tape in it, and is intended to be recycled and
used the next weekday. I am using a 6 day volume retention, with
recycle=yes and recycle current volume = yes to try to achieve this,
to no avail.

The volume, for example Friday, shows up before the friday backup run
in append state, at which point the director tries to append a full
backup to it, rather than to purge it and recycle. The tape fills up,
and then the director starts complaining that it cant find any
appendable volumes.

Relevant configs below. Any suggestions on how to recycle in this
manner? Bacula version  2.1.18.

thanks,

Bradley

23-Jun 00:52 foundry-sd: Job NightlySaveFoundry.2007-06-22_23.30.00
waiting. Cannot find any appendable volumes.
Please use the "label"  command to create a new Volume for:
Storage:  "VXA-2" (/dev/nst0)
Pool: Friday
Media type:   VXA-2


Pool {
  Name = Friday
  Pool Type = Backup
  AutoPrune = yes
  Volume Retention = 6d
  Maximum Volumes = 1
  Recycle = yes
  Recycle Current Volume = yes
  }

+-++---+-++--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes   |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+-++---+-++--+--+-+--+---+---+-+
|   5 | Friday | Full  |   1 | 30,671,972,352 |
33 |  518,400 |   1 |0 | 1 | VXA-2 |
2007-06-22 23:50:54 |
+-++---+-++--+--+-+--+---+---+-+

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users