Concurrent Jobs With Multiple Storage Devices

31 views
Skip to first unread message

Brock Palen

unread,
Sep 14, 2019, 9:43:21 PM9/14/19
to bareos-users
I was reading:
https://docs.bareos.org/Appendix/Troubleshooting.html#concurrent-jobs

I’m trying to allow multiple clients to backup at once. We are using spooling, and all client backups go to disk volumes where we defined multiple devices. When we did this it worked great,

The problem is we have a single tape drive in a changer. Over time we migrate jobs from disk volumes to tape volumes. When VirtualFull’s run from Consolidate jobs it tries to run multiple of the VIrtualFull jobs and the first one grabs the LTO drive, and works, and all the other jobs quickly fail with errors like:

14-Sep 21:03 myth-dir JobId 15041: Connected Storage daemon at myth.sheptechllc.com:9103, encryption: TLS_CHACHA20_POLY1305_SHA256
14-Sep 21:03 myth-dir JobId 15041: Using Device "FileStorage" to read.
14-Sep 21:03 myth-dir JobId 15041: Using Device "FileStorage2" to write.
14-Sep 21:03 myth-sd JobId 15041: stored/acquire.cc:151 Changing read device. Want Media Type="LTO5" have="File"
device="FileStorage" (/mnt/bacula)
14-Sep 21:03 myth-sd JobId 15041: Releasing device "FileStorage" (/mnt/bacula).
14-Sep 21:03 myth-sd JobId 15041: Fatal error: stored/acquire.cc:205 No suitable device found to read Volume "A00023L5"
14-Sep 21:03 myth-sd JobId 15041: Elapsed time=435697:03:29, Transfer rate=0 Bytes/second
14-Sep 21:03 myth-sd JobId 15041: Releasing device "FileStorage2" (/mnt/bacula).
14-Sep 21:03 myth-sd JobId 15041: Releasing device "Tand-LTO5" (/dev/nst1).
14-Sep 21:03 myth-dir JobId 15041: Error: Bareos myth-dir 18.2.5 (30Jan19):

If I flip back to only allowing 1 job at a time via the Director {} resource things work again for obvious reasons the jobs run one after the other.
Why does the job not just block waiting for storage device? Both Storage {} reside on the same SD.

Storage {
Name = File
# Do not use "localhost" here
Address = myth.sheptechllc.com # N.B. Use a fully qualified name here
#LanAddress = 192.168.1.7
Password = “<snip>"
Device = FileStorage
Device = FileStorage2
Device = FileStorage3
Device = FileStorage4
Device = FileStorage5
# number of devices = Maximum Concurrent Jobs
Maximum Concurrent Jobs = 5
Media Type = File
}

Storage {
Name = Tand-LTO5-Lib
Address = myth
Password = “<snip>"
Device = Tand-LTO5-Lib
Media Type = LTO5
Maximum Concurrent Jobs = 1
Auto Changer = yes
}


Brock Palen
1 (989) 277-6075
bro...@mlds-networks.com
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting



Reply all
Reply to author
Forward
0 new messages