Bacula-users

Re: [Bacula-users] Forcing volume change.

2008-11-07 09:28:47
Subject: Re: [Bacula-users] Forcing volume change.
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 07 Nov 2008 15:25:33 +0100
Hi,

07.11.2008 11:10, Fábio Catunda wrote:
> Hi list.
> 
> This is my first message to the list, I'm new on bacula, if some 
> information is missing, please, just ask and I promise that next time 
> the information will be in the first e-mail.
> 
> Bacula version: 1.38.11 (28 June 2006) Debian package.

A very good start to include that information.
And - your Bacula is outdated. You should upgrade as soon as possible. 
Recebt versions not only add new features but also fix serious issues.

> I have a storage, so I'm using file storage. Everything was fine until 
> the volume I created got about 50GB of data, then I saw that it was 
> taking too long to restore some files. Search google for help I got to:
> http://bacula.org/en/rel-manual/Basic_Volume_Management.html#SECTION002611000000000000000
> 
> Great. So I made the following config (relevant sections only):
> in bacula-sd:
> 
> Device {
>   Name = Default
>   Media Type = File
>   Archive Device = /backup/bacula
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = no;
> }
> 
> And in bacula-dir.conf:
> JobDefs {
>   Name = "ETC"
>   Type = Backup
>   Level = Incremental
>   FileSet = "ETC"
>   Schedule = "WeeklyCycle"
>   Storage = File
>   Messages = Standard
>   Pool = Default
>   Priority = 10
> }
> 
> Pool {
>   Name = Default
>   Pool Type = Backup
>   Recycle = yes
>   AutoPrune = yes
>   Volume Retention = 180 days
>   Volume Use Duration = 23h
>   LabelFormat = "Backup-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}"
> }
> 
> Storage {
>   Name = File
>   Address = hefesto.mydomain.com.br
>   SDPort = 9103
>   Password = "ThisIsMyPassword"
>   Device = Default
>   Media Type = File
> }
> 
> I was expecting a volume cycle, but more than 23h has passed and still 
> no new volume in my default pool.

That's probably because your existing volume still uses the original 
information. What you set in the pool configuration is merely a 
template used when creating new volumes, so you need to update the 
existing volume. In bconsole, the command to use is - surprise! - 
'update'.

> I would like to know what is wrong, any tip is appreciated. Also, is 
> there a way to force a volume creation? I would like to run some backups 
> today (fryday) in a new volume, just in case.

You could also simply set the volume status to "Used" and use the 
'label' command to create a new volume.

Arno

> Thanks for the help.
> 
> Fábio Catunda.

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>