Bacula-users

[Bacula-users] Copy Volume (disk) for the tape.

2015-08-04 12:24:47
Subject: [Bacula-users] Copy Volume (disk) for the tape.
From: Leandro César <leandro.cesar.dias AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 4 Aug 2015 13:19:56 -0300

I need to make a copy of certain Pools (disk) for the tape.

Some information:

Pool to be copied:
Pool {
  Name = Semanal
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Use Duration = 77 hours
  Volume Retention = 10 days
  Storage = Disco-Semanal
  Label Format = "Semanal-${NumVols}"
  Next Pool = Copia-Semanal
}

Pool destination:

Pool {
  Name = Copia-Semanal
  Pool Type = Backup
  AutoPrune = yes
  Volume Use Duration = 5 days
  Volume Retention = 10 days
  Recycle = yes
  Cleaning Prefix = "CLN"
  Storage = Autochanger
}

​Job copy:

Job {
  Name = "Copia Semanal"
  JobDefs = "jobdefs_default"
  Client = "xxxxx.com.br"
  FileSet="xxxxx_files"
  Schedule = "copia-semanal_schedule"
  Type = Copy
  Pool = Semanal
  Storage = Disco-Semanal
  Selection Type = PoolUncopiedJobs
  Priority = 10
}

Schedule {
  Name = "copia-semanal_schedule"
  Run = Level=Full Pool=Semanal NextPool=Copia-Semanal Storage=Autochanger mon at 20:00
}


​Running manually (bconsole, run) the following options are listed:

Run Copy job
JobName:       Copia Semanal
Bootstrap:     *None*
Client:        xxxxx.com.br
FileSet:       xxxxx_files
Pool:          Semanal (From Job resource)
NextPool:      Copia-Semanal (From Job Pool's NextPool resource)
Read Storage:  Disco-Semanal (From Pool resource)
Write Storage: Autochanger (From Job Pool's NextPool resource)
JobId:         *None*
When:          2015-08-03 21:16:41
Catalog:       MyCatalog
Priority:      10

I can run the copy, but only one Job at a time:

​* status dir

Running Jobs:
Console connected at 03-Aug-15 21:16
 JobId  Type Level     Files     Bytes  Name              Status
======================================================================
  4777  Copy Full          0         0  Copia Semanal     is waiting execution
  4778  Copy Full          0         0  Copia Semanal     is running
  4779  Back Full          0         0  ddddd_files     is running
  4780  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4781  Back Full          0         0  aaaa_files      is waiting on Storage "Autochanger"
  4782  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4783  Back Full          0         0  bbbb_files   is waiting on Storage "Autochanger"
  4784  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4785  Back Full          0         0  cccc_files    is waiting on Storage "Autochanger"
  4786  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4787  Back Full          0         0  dddd_files     is waiting on Storage "Autochanger"
  4788  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4789  Back Full          0         0  eeee_files    is waiting on Storage "Autochanger"
  4790  Copy Full          0         0  Copia Semanal     is waiting on Storage "Disco-Semanal"
  4791  Back Full          0         0  ffff_files  is waiting on Storage "Autochanger"

how to run simultaneous Jobs in this case?


Device and Storage settings:
Autochanger {
  Name = Autochanger
  Device = Drive-1, Drive-2
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg5
}

Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = LTO5
  Archive Device = /dev/st1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Concurrent Jobs = 50
#  Alert Command = "sh -c 'smartctl -H -l error %c'"
}

Device {
  Name = Drive-2
  Drive Index = 1
  Media Type = LTO5
  Archive Device = /dev/st0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Concurrent Jobs = 50
#  Alert Command = "sh -c 'smartctl -H -l error %c'"



Storage {
  Name = "Autochanger"
  Address = xxxx.com.br                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "Lnouwl2LIZ2/alZpV2bVFhs6ZqOWn9/vr7zHmX7AMCil"          # password for Storage daemon
  Device = "Autochanger"               # must be same as Device in Storage daemon
  Media Type = LTO5                # must be same as MediaType in Storage daemon
  Autochanger = yes                  # enable for autochanger device
  Maximum Concurrent Jobs = 100
}

--
--
Att,
Leandro César


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>