Resending with additional information

ganiuszka wrote:
>               Hi,
> 
>       I am testing Duplicate Job Control. I found a few strange behaviour. 
> One of these is Allow Higher Duplicates.
> 
> I used to this job next directives:
> 
> Allow Duplicate Jobs = no
> Allow Higher Duplicates = yes
> 
> I ran the job, and the moment I started a job of the same name but with 
> a higher priority. First job still worked, second job had a status 
> "waiting for higher priority jobs to finish". Why the first job does not 
> abort and the second job starts out of hand?

My guess: Because it was already running.  Bacula does not cancel
running jobs.  The directives are applied to jobs as they are being
added to the queue.

Try running three jobs and then you'll see.

Then you might want to look into these directives:

Cancel Queued Duplicates = <yes|no>
If this directive is set to yes (default) any job that is already queued 
to run but not yet running will be canceled.

Cancel Running Duplicates = <yes|no>
If this directive is set to yes any job that is already running will be 
canceled. The default is no.

> 
> This is my configuration and steps for this situation:
> 
> 
> Storage {
>      Name = UrzadzeniePlikowe
>      Address = darkstar
>      SDPort = 9103
>      Password = "*****"
>      Media Type = Plik
>      Device = UrzadzeniePlikoweDev
>      Maximum Concurrent Jobs = 10
> }
> 
> Storage {
>      Name = UP
>      Address = darkstar
>      SDPort = 9103
>      Password = "*****"
>      Media Type = Plik
>      Device = UPDev
>      Maximum Concurrent Jobs = 10
> }
> 
> Pool {
>      Name = Tescik
>      Pool Type = Backup
>      Recycle = no
>      Storage = UrzadzeniePlikowe
> }
> 
> Pool {
>      Name = Paktos
>      Pool Type = Backup
>      Recycle = no
>      Storage = UP
> }
> 
> Job {
>      Name = QemuImages
>      Type = Backup
>      Level = Full
>      Pool = Tescik
>      Client = darkstar-fd
>      Messages = DirMessages
>      FileSet = QemuImages_FileSet
>      Allow Duplicate Jobs = no
>      Allow Higher Duplicates = yes
>      Maximum Concurrent Jobs = 10
> }
> 
> run job=QemuImages storage=UP pool=Paktos priority=15
> run job=QemuImages storage=UrzadzeniePlikowe pool=Tescik priority=10
> 
> *run job=QemuImages storage=UP pool=Paktos priority=15
> Run Backup job
> JobName:  QemuImages
> Level:    Full
> Client:   darkstar-fd
> FileSet:  QemuImages_FileSet
> Pool:     Paktos (From User input)
> Storage:  UP (From command line)
> When:     2010-01-30 22:01:17
> Priority: 15
> OK to run? (yes/mod/no): yes
> Job queued. JobId=246
> *run job=QemuImages storage=UrzadzeniePlikowe pool=Tescik priority=10
> Run Backup job
> JobName:  QemuImages
> Level:    Full
> Client:   darkstar-fd
> FileSet:  QemuImages_FileSet
> Pool:     Tescik (From Job resource)
> Storage:  UrzadzeniePlikowe (From command line)
> When:     2010-01-30 22:01:58
> Priority: 10
> OK to run? (yes/mod/no): yes
> Job queued. JobId=247
> 
> * status dir
> 
> ......
> ......
> Running Jobs:
> Console connected at 30-sty-10 22:00
>   JobId Level   Name                       Status
> ======================================================================
>     246 Full    QemuImages.2010-01-30_22.01.48_28 is running
>     247 Full    QemuImages.2010-01-30_22.02.00_29 is waiting for higher 
> priority jobs to finish
> ====
> .....
> .....
> 



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to