星期三, 2月 06, 2013

Bacula Heartbeat Interval

Bacula 是一套開放源始碼集中備分系統,bacula-dir負責呼叫bacula-fd進行備分,bacula-fd將備分資料傳給bacula-sd後寫入備分媒體。以上是三個主要的組件,其它的附屬工具還有bconsole、bacula-web、bscan、bcopy、、等
值得一提的是bacula提供的windows版備分用戶端還支援VSS功能,因此可以線上備分資料庫檔案,不會因為檔案使用中而備分失敗。

Heartbeat  Interval參數設定是為了避免備分的檔案過多或過大,因備分時間過長造成網路連線被中斷而設的參數。如果檔案可以正常備分但是備分到一半會忽然停住,可能就要在上面三個主要組件加入這個參數。
 Storage {                             # definition of myself
  Name = xxx-sd
  SDPort = 9103                  # Director's port    
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 192.168.nn.nn
  Heartbeat Interval = 300
}

Director {                            # define myself
  Name = xxx-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "xxxxxxxxxxxxxxxxxxxxxxx"         # Console password
  Messages = Daemon
  DirAddress = 192.168.nn.nn
  Heartbeat Interval = 300
}




FileDaemon {                          # this is me
  Name = xxx-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run/bacula
  Heartbeat Interval = 300
}

沒有留言: