Bacula-users

Re: [Bacula-users] can't run concurrent restores using multiple tape drives

2014-10-17 08:57:17
Subject: Re: [Bacula-users] can't run concurrent restores using multiple tape drives
From: Kern Sibbald <kern AT sibbald DOT com>
To: jaredk51 <jkelley AT popcap DOT com>, bacula-users AT lists.sourceforge DOT net
Date: Fri, 17 Oct 2014 08:54:35 -0400
There is nothing I know in Bacula that specifically restricts concurrent 
read jobs on a storage device. If you use defaults, read/write are 
treated the same and are limited to maximum values configured.  It is 
possibly, however, to restrict the number of simultaneous read jobs (at 
least in version 7.0).  So, if your restore jobs are waiting on storage, 
it is most likely some restriction such as a pool or a volume that is 
already in uses.

In version 7.0, you can even do simultaneous reads from the same disk 
volume, but with the restriction that there is only one job per device.  
I.e. with multiple devices, you can read the same disk volume 
simultaneously.  For tapes, only one job can read from a given volume at 
any one time -- this is a physical limitation of the device rather than 
any Bacula restriction.

Best regards,
Kern

On 14-10-13 03:54 PM, jaredk51 wrote:
> I'm working with Amazon VTL (Virtual Tape Library) and Bacula v 5.2.6 which
> functions well and can run concurrent jobs to multiple tape drives just
> fine.
> I want to speed up restores for DR purposes and make use of the 10 virtual
> tape drives VTL gives you.
> I am not sure if bacula supports restoring to multiple tape drives at the
> same time and haven't been able to find anything in the documentation as
> such.
>
> I have created multiple restore jobs and ran them concurrently just fine but
> each restore job waits for the first tape drive to complete before running.
>
>   JobId Level   Name                       Status
> ======================================================================
>     423         RestoreFiles.2014-10-13_19.35.32_03 is running
>     424         RestoreFiles2.2014-10-13_19.35.53_04 is waiting on Storage
> "Tape1"
>
> So running concurrent restores doesn't provide any net benefit as they can
> only run 1 at a time.
> If anyone has any information regarding running restore jobs at the same
> time using multiple tape drives please let me know. Thanks in advance.
>
>
> My restore job configs look like this:
>
> ##
> Job {
> Name = "RestoreFiles"
> Type = Restore
> Client = backup02
> FileSet = "Full Set"
> Pool = Disk
> Messages = Standard
> Where = /mnt/restores
> Maximum Concurrent Jobs = 10
> Prefer Mounted Volumes = no
> }
>
> Job {
> Name = "RestoreFiles2"
> Type = Restore
> Client = backup02
> FileSet = "Full Set2"
> Pool = Disk
> Messages = Standard
> Where = /mnt/restores
> Maximum Concurrent Jobs = 10
> Prefer Mounted Volumes = no
> }
>
>
> autochanger and Devices from bacula-sd.conf
>
> Autochanger {
>    Name = Autochanger
>    Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7,
> Drive-8, Drive-9, Drive-10
>    Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>    Changer Device = /dev/sg10
> }
>
>
> Device {
>    Name = Drive-1
>    Drive Index = 0
>    Media Type = LTO
>    Archive Device =
> /dev/tape/by-path/ip-192.168.1.1:3260-iscsi-iqn.1997-05.com.amazon:sgw-bcb95cd5-tapedrive-01-lun-0-nst
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    LabelMedia = yes;
>    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
> }
>
> Device {
>    Name = Drive-2
>    Drive Index = 1
>    Media Type = LTO
>    Archive Device =
> /dev/tape/by-path/ip-192.168.1.1:3260-iscsi-iqn.1997-05.com.amazon:sgw-bcb95cd5-tapedrive-02-lun-0-nst
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    LabelMedia = yes;
>    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
> }
>
> Device {
>    Name = Drive-3
>    Drive Index = 2
>    Media Typ.....
>
>
>
> --
> View this message in context: 
> http://bacula.10910.n7.nabble.com/can-t-run-concurrent-restores-using-multiple-tape-drives-tp79446.html
> Sent from the Bacula - Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users