Hello,
I'm currently working on Bacula 5.0.1 to upgrade our current production
backup system.
We are backuping on disk files, and thus implement the auto-label feature,
using counters.
On our first tests, everything was running as planned : volumes were created
and labeled automatically, and then recycled.
What happens now is that old volumes are recycled as they should be, but new
volumes are not created when needed, and I'm getting the famous message :
Please use the "label" command to create a new Volume for:
Storage: "fr-201-sd-2" (/backups)
Pool: PS_Default
Media type: File
I really don't understand why ?
Our version : Bacula 3.0.3 on CentOS 5.4
Compilated from source with all pre-requisites:
yum install httpd mysql-server mysql-devel php mtx gcc gcc-c++
readline-devel make openssl-devel
cd /root/bacula-3.0.3
make distclean
./configure --sbindir=/opt/bacula/bin --sysconfdir=/opt/bacula/etc
--with-pid-dir=/opt/bacula/working --with-subsys-dir=/opt/bacula/working
--enable-smartalloc --with-mysql --with-working-dir=/opt/bacula/working
--with-dump-email=xx...@xxxxx.fr --with-job-email=xx...@xxxxx.fr
-with-smtp-host=localhost
make
make install
make install-autostart
Director Configuration
Director { # define myself
Name = sv-ics-tst-bkp-fr-201-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/opt/bacula/opt/etc/query.sql"
WorkingDirectory = "/opt/bacula/working"
PidDirectory = "/opt/bacula/working"
Maximum Concurrent Jobs = 60
Password = "XXXXXXXXXX" # Console password
Messages = Daemon
FD Connect Timeout = 5 minutes # Default :
30 minutes
SD Connect Timeout = 5 minutes # Default :
30 minutes
}
Storage {
Name = fr-201-sd-1
Address = 10.3.1.254
SDPort = 9103
Maximum Concurrent Jobs = 1
Password = "XXXXXXXXXX"
Device = fr-201-sd-1
Media Type = File
}
Storage {
Name = fr-201-sd-2
Address = 10.3.1.254
SDPort = 9103
Maximum Concurrent Jobs = 1
Password = "XXXXXXXXXX"
Device = fr-201-sd-2
Media Type = File
}
JobDefs {
Name = "JS_Default"
Type = Backup
Level = Incremental
Client = sv-ics-tst-bkp-fr-201
FileSet = "FS_Default"
Schedule = "SS_Default"
Storage = fr-201-sd-1
Messages = Standard
Pool = PS_Default
Accurate = Yes
Max Wait Time = 14400 # 4 hours
Max Run Sched Time = 27000
}
FileSet {
Name = "FS_Default"
Include {
Options {
signature = MD5
onefs=no # on ne reste pas sur un seul file-system
fstype=ext2 # pour ext3 : fstype=ext2 aussi ...
compression = GZIP
}
File = /
}
Exclude {
File = /tmp
File = /.journal
File = /.fsck
File = /opt
}
}
Schedule {
Name = "SS_PRD_1"
Run = Level=Full Pool=PS_Default thu at 23:45
Run = Level=Full Pool=PS_Default fri-wed at 23:45
}
Pool {
Name = PS_Default
Pool Type = Backup
Recycle = yes
AutoPrune = yes
VolumeRetention = 3 days
Use Volume Once = yes
Label Format = "SYS-SD-FR-2-${C_SYS+}"
NextPool = PS_VFull
}
Pool {
Name = PS_VFull
Pool Type = Backup
Recycle = yes
AutoPrune = yes
VolumeRetention = 3 days
Use Volume Once = yes
Label Format = "SYS-VFULL-SD-FR-2-${C_SYSVFULL+}"
Storage = fr-201-sd-vfull
}
Counter {
Name = C_SYS
Catalog = MyCatalog
}
Counter {
Name = C_SYSVFULL
Catalog = MyCatalog
}
#CLIENTS : All clients have the same conf
Client {
Name = sv-ics-tst-bkp-fr-201
Address = 10.3.1.254
FDPort = 9102
Catalog = MyCatalog
Maximum Concurrent Jobs = 2
Password = "XXXXXXXXXX" # password for FileDaemon
File Retention = 3 months
Job Retention = 3 months
AutoPrune = yes # Prune expired Jobs/Files
}
# JOBS : All Jobs have the same conf except, using different storages
(fr-201-sd-1, fr-201-sd-2, .)
Job {
Name = "JS_sv-ics-tst-bkp-fr-201"
Enabled = yes
JobDefs = "JS_Default"
Client = sv-ics-tst-bkp-fr-201
Write Bootstrap = "/opt/bacula/bootstrap/sv-ics-tst-bkp-fr-201.sys.bsr"
Storage = fr-201-sd-1
Schedule = SS_PRD_1
}
STORAGE CONFIGURATION (SD)
Storage { # definition of myself
Name = fr-201-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/bacula/working"
Pid Directory = "/opt/bacula/working"
Maximum Concurrent Jobs = 10
}
Device {
Name = fr-201-sd-1
Media Type = File
Archive Device = /backups
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = fr-201-sd-2
Media Type = File
Archive Device = /backups
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Dominique Jeannerod
interact-iv.com
+33 6 98 77 87 63
<mailto:dominique.jeanne...@interact-iv.com>
dominique.jeanne...@interact-iv.com
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users