Re: [Bacula-users] bacula can't make use of multi drives
2014-11-19 10:06:55
Thanks for the response heitor,
Is it a bug that bacula cannot write to multiple drives for the jobs
in the same pool? Will there be a fix. Back in March 2014 Wolfgang
Denk wrote "it can" but how?
http://adsm.org/lists/html/Bacula-users/2014-03/msg00212.html
I am trying to make bacula use multi drives in a
Fujitsu Tape Library with no success. Recently I added 3
more drives to bacula configuration to reduce backup time.
But bacula insists on using only the first drive. Backup
jobs are not sent to other suitable tape drives. Jobs are
started at the same time and queued. Jobs in the queue is
waiting for the previous job to finish even if there is a
valid media (tape) for the pool and other drives are idle. I
can mount other drives manually. Is there any other setting
I'm missing to make use of multi-drives? Please advise.
Hey Mr. Suleyman: if you want Bacula to write in more than
one drive simultaneously, the most reliable option is submit
the job into different pools at the same given scheduled time.
Regards,
============================================================
Heitor Medrado de Faria
============================================================
De:
"Süleyman Kuran" <skuran AT ayk.gov DOT tr>
Para: "bacula-users"
<bacula-users AT lists.sourceforge DOT net>
Enviadas: Terça-feira, 18 de novembro de 2014 7:39:33
Assunto: [Bacula-users] bacula can't make use of multi
drives
Hi,
I am trying to make bacula use multi drives in a Fujitsu
Tape Library with no success. Recently I added 3 more
drives to bacula configuration to reduce backup time. But
bacula insists on using only the first drive. Backup jobs
are not sent to other suitable tape drives. Jobs are
started at the same time and queued. Jobs in the queue is
waiting for the previous job to finish even if there is a
valid media (tape) for the pool and other drives are idle.
I can mount other drives manually. Is there any other
setting I'm missing to make use of multi-drives? Please
advise.
Regards,
Suleyman
==================================================================================
CentOS release 6.5 (Final)
Bacula version 5.0.0-12.el6
Config files:
bacula-sd.conf
==================================================================================
Storage { # definition of
myself
Name = bacula-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/spool/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 2
}
....
Autochanger {
Name = AYKAutochanger
Device = Drive-1
Device = Drive-2
Device = Drive-3
Device = Drive-4
Changer Command = "/usr/libexec/bacula/mtx-changer %c %o
%S %a %d"
Changer Device = /dev/sg9
}
Device {
Name = Drive-1
Drive Index = 0
Media Type = LTO-5
Archive Device = /dev/nst0
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
Random Access = no
Maximum File Size = 10GB
Changer Command = "/usr/libexec/bacula/mtx-changer %c %o
%S %a %d"
Changer Device = /dev/sg9
AutoChanger = yes
}
Device {
Name = Drive-2
Drive Index = 1
Media Type = LTO-5
Archive Device = /dev/nst1
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
Random Access = no
Maximum File Size = 10GB
Changer Command = "/usr/libexec/bacula/mtx-changer %c %o
%S %a %d"
Changer Device = /dev/sg9
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep
TapeAlert|cat'"
}
Device {
Name = Drive-3
Drive Index = 2
Media Type = LTO-5
Archive Device = /dev/nst2
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
Random Access = no
Maximum File Size = 10GB
Changer Command = "/usr/libexec/bacula/mtx-changer %c %o
%S %a %d"
# Changer Device = /dev/changer
Changer Device = /dev/sg9
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep
TapeAlert|cat'"
}
Device {
Name = Drive-4
Drive Index = 3
Media Type = LTO-5
Archive Device = /dev/nst3
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
Random Access = no
Maximum File Size = 10GB
Changer Command = "/usr/libexec/bacula/mtx-changer %c %o
%S %a %d"
Changer Device = /dev/sg9
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep
TapeAlert|cat'"
}
...
===========================================================================
bacula-dir.conf
Director { # define myself
Name = bacula-dir
DIRport = 9101 # where we listen for UA
connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 2
Password = "mypassword" # Console password
Messages = Daemon
}
JobDefs {
Name = "MyJobDefs"
Type = Backup
Storage = "Fujitsu ETERNUS LT60"
Max Start Delay = 36000 #do not start jobs after 10
hours
Messages = Standard
Pool = Default # will be overwritten by MultipleRUN
Schedule
#Write Bootstrap = "/var/spool/bacula/%c.bsr"
Prefer Mounted Volumes = no
}
Job {
Name = "EbysFileBackup"
JobDefs = "MyJobDefs"
Client = bacula-fd
FileSet="EbysFiles"
Schedule = "MultipleRUN"
Priority = 10
}
Job {
Name = "LoggerBackup"
JobDefs = "MyJobDefs"
Client = logger-fd
FileSet="Logger"
Schedule = "MultipleRUN"
Priority = 15
}
Job {
Name = "RadiusBackup"
JobDefs = "MyJobDefs"
Client = radius-fd
FileSet="RadiusFiles"
Schedule = "MultipleRUN"
Priority = 20
}
Schedule {
Name = "MultipleRUN"
Run = Level=Full Pool=Daily mon-thu at 2:17
Run = Level=Full Pool=Daily 2nd-5th fri at 2:17
Run = Level=Full Pool=Daily 2nd-5th sat at 2:17
#never run Daily on 1st
Run = Level=Full Pool=Weekly sun at 2:17
#Run = Level=Incremental Pool=Weekly mon-sat at 19:05
Run = Level=Full Pool=Monthly 1st sat at 2:17
#Run = Level=Incremental Pool=Monthly sun-fri at 2:05
Run = Level=Full Pool=Offsite 1st fri at 2:17
}
Client {
Name = radius-fd
Address = client-address
FDPort = 9102
Catalog = MyCatalog
Password = "mypassword" # password for
FileDaemon 2
}
Storage {
Name = "Fujitsu ETERNUS LT60"
Address = sd-FQDN-address # N.B. Use a
fully qualified name here
SDPort = 9103
Password = "mypassword" # password for Storage
daemon
Device = AYKAutochanger
Media Type = LTO-5 # must be same as
MediaType in Storage daemon
Autochanger = yes # enable for
autochanger device
Maximum Concurrent Jobs = 2
}
Pool {
Name = Daily
Pool Type = Backup
Recycle = yes # Bacula can
automatically recycle Volumes
AutoPrune = yes # Prune expired
volumes
Volume Retention = 7 days
Cleaning Prefix = "CLN"
Maximum Volume Bytes = 4924983103488
}
Pool {
Name = Weekly
Pool Type = Backup
Recycle = yes # Bacula can
automatically recycle Volumes
AutoPrune = yes # Prune expired
volumes
Volume Retention = 30 days
Cleaning Prefix = "CLN"
Maximum Volume Bytes = 4924983103488
}
#fileset definitions and some unrelated config
snipped
============================================================
bacula-fd.conf
FileDaemon { # this is me
Name = bacula-fd
FDport = 9102 # where we listen for the
director
WorkingDirectory = /var/spool/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 2
}
....
snipped
=========================================================
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
Server
from Actuate! Instantly Supercharge Your Business Reports and
Dashboards
with Interactivity, Sharing, Native Excel Exports, App
Integration & more
Get technology previously reserved for billion-dollar
corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|