Bacula-users

[Bacula-users] Maximum concurrent jobs for devices

2010-05-03 08:16:49
Subject: [Bacula-users] Maximum concurrent jobs for devices
From: mangabbs AT hotmail DOT com
To: "bacula-users" <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 3 May 2010 14:16:52 +0200
Greetings,

I'm using Bacula  Version: 5.0.1 (24 February 2010) x86_64-pc-linux-gnu over 
Gentoo Linux. I've upgraded to be able to use some new features such as 
"Maximum Concurrent Jobs" for devices. Actually it seems to does not work (at 
least for me!). If I start 2 different jobs at the same time the 2nd is waiting 
to reserve a drive.

If I try to get status for storage from bconsole during the jobs I get:

Running Jobs:
Writing: Full Backup job BACKUP-vps-serverone JobId=742 Volume="VOLUME-Full-
vps-serverone-0362"
    pool="POOL-FULL-vps-serverone" device="bkp12-disk" (/bacula)                
                  
    spooling=0 despooling=0 despool_wait=0                                      
                     
    Files=1,634 Bytes=34,226,389 Bytes/sec=2,139,149                            
                     
    FDReadSeqNo=13,839 in_msg=9397 out_msg=5 fd=5
Writing: Full Backup job BACKUP-vps-servertwo JobId=743 Volume="VOLUME-Full-
vps-serverone-0362"
    pool="POOL-FULL-vps-servertwo" device="bkp12-disk" (/bacula)
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 Bytes/sec=0
    FDSocket closed
====

Jobs waiting to reserve a drive:
   3608 JobId=743 wants Pool="POOL-FULL-vps-servertwo" but have Pool="POOL-
FULL-vps-serverone" nreserve=0 on drive "bkp12-disk" (/bacula).
====


This is my Director configuration:

Director {                            # define myself
  Name = mc-bkp13-dir                                
  Maximum Concurrent Jobs = 50                                      
[....]
}                      

Storage {
  Name = mc-bkp12-sd
  Device = bkp12-disk
  Media Type = File12
  Maximum Concurrent Jobs = 40
[....]
}

Client {                                                             
  Name = vps-serverone-fd                                         
  Maximum Concurrent Jobs = 20                                       
[....]
}

Client {                                                             
  Name = vps-servertwo-fd                                          
  Maximum Concurrent Jobs = 20                                       
[....]
}         

This is my SD configuration:

Storage {                             # definition of myself
  Name = mc-bkp12-sd                                        
  Maximum Concurrent Jobs = 40
[...]
}

Device {
  Name = bkp12-disk
  Media Type = File12
  Archive Device = /bacula
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = yes
  Maximum Concurrent Jobs = 10
}

And of course the FD1 configuration:

Job {                                                                
  Name = BACKUP-vps-serverone                                     
  Type = Backup                                                      
  Level = Full                                                       
  Client = vps-serverone-fd                                       
  FileSet = FILESET-vps-serverone                                 
  Schedule = SCHEDULE-vps-serverone                               
  Storage = mc-bkp12-sd                                              
  Messages = MESSAGES-vps-serverone                               
  #Client Run Before Job = /root/backup-mysql.sh                     
  Maximum Concurrent Jobs = 20                                       
  Pool = POOL-FULL-vps-serverone                                  
  Full Backup Pool = POOL-FULL-vps-serverone                      
  Incremental Backup Pool = POOL-INCREMENTAL-vps-serverone        
  Differential Backup Pool = POOL-DIFFERENTIAL-vps-serverone      

  Priority = 12
  Reschedule On Error = yes
  Reschedule Interval = 1 hour
  Reschedule Times = 3        

  # After 4 1/2 hours from scheduled time cancel job if volume not mounted
  Max Wait Time = 16200                                                   
  # After 4 1/2 hours from scheduled time cancel job if not started       
  Max Start Delay = 16200                                                 
}   

And FD2 configuration:

Job {                                                                
  Name = BACKUP-vps-servertwo                                      
  Type = Backup                                                      
  Level = Full                                                       
  Client = vps-servertwo-fd                                        
  FileSet = FILESET-vps-servertwo                                  
  Schedule = SCHEDULE-vps-servertwo                                
  Storage = mc-bkp12-sd                                              
  Messages = MESSAGES-vps-servertwo                                
  Client Run Before Job = /root/mysql_backup.sh                      
  Maximum Concurrent Jobs = 20                                       
  Pool = POOL-FULL-vps-servertwo                                   
  Full Backup Pool = POOL-FULL-vps-servertwo                       
  Incremental Backup Pool = POOL-INCREMENTAL-vps-servertwo         
  Differential Backup Pool = POOL-DIFFERENTIAL-vps-servertwo       

  Priority = 11
  Reschedule On Error = yes
  Reschedule Interval = 1 hour
  Reschedule Times = 3        

  # After 4 1/2 hours from scheduled time cancel job if volume not mounted
  Max Wait Time = 16200                                                   
  # After 4 1/2 hours from scheduled time cancel job if not started       
  Max Start Delay = 16200                                                 
}          

Can you please help me to figure out why the directive does not work?

P.s. I've tryed with same priorities for each job as well.

Thank you

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users