Mr. Suleyman - sorry to hear this. From my personal experience (nerver tried to limit autochanger devices max. sim. jobs): "Having 2 pools is still safer and more reliable way to do multiple volumes writing at the same time."
But I really hope you find a solution for this, since it looks very appealing nowadays.
De: "Süleyman Kuran" <skuran AT ayk.gov DOT tr>
Para: bacula-users AT lists.sourceforge DOT net
Enviadas: Terça-feira, 25 de novembro de 2014 6:46:25
Assunto: Re: [Bacula-users] bacula can't make use of multi drives
I still can't find the final key to my puzzle :)
Jobs (from the same pool) are still waiting the first drive to finish. I followed Ana's advise and set Max Concurrent Jobs = 1 in the Device directive in bacula-sd.conf and other configs in bacula-dir.conf The following are related parts of config files. Please advice.
Best regards,
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 = 20
}
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/changer
Changer Device = /dev/sg9
AutoChanger = yes
## # Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
### If you have smartctl, enable this, it has more info than tapeinfo
#Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 1
}
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/changer
Changer Device = /dev/sg9
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Maximum Concurrent Jobs = 1
}
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'"
Maximum Concurrent Jobs = 1
}
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/changer
Changer Device = /dev/sg9
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Maximum Concurrent Jobs = 1
}
...
==================================================================
bacula-dir.conf
...
Storage {
Name = "Fujitsu ETERNUS LT60"
Address = fqdn.bacula.tld # N.B. Use a fully qualified name here
SDPort = 9103
Password = "mypass" # 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 = 20
}
Director { # define myself
Name = bacula-dir
DIRport = 9101 # where we listen for UA connections
#QueryFile = "/usr/libexec/bacula/query.sql"
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = "mypasswd" # Console password
Messages = Daemon
}
Client {
Name = bacula-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "mypasswd" # password for FileDaemon
Maximum Concurrent Jobs = 20
}
On 21-11-2014 01:27, Kelley, Jared wrote:
Yep, that was the final key to the puzzle. SUCCESS!!
Thank you so much for your help with this.
I’m running test jobs now with the new setting and I’m 4 jobs from same pool are writing to
4 different drives and volumes concurrently.
Again, your help is much appreciated.
Thank you
Jared
Hi Jared,
Try setting
Maximum Concurrent Jobs = 1 in each device definition. This will spread your 4 jobs in 4 drives of your autochanger device.
Device {
Name = Drive0
Drive Index = 0
Media Type = LTO
Archive Device = /dev/tape/by-path/ip-IPiscsi-iqn.1997-05.com.amazon:sgw-20b85d49-tapedrive-01-lun-0-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
LabelMedia = no;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
SpoolDirectory = /etc/bacula/spool
Maximum Concurrent Jobs = 1
}
Best regards,
Ana
------------------------------------------------------------------------------
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