如何使用Bareos(Bacula)存储守护进程与多个磁盘?

时间:2017-10-19 13:49:29

标签: bacula

我有Bareos Storage守护进程(bareos-sd)和三个2 Tb硬盘。我希望它们被视为一个存储,Bareos在前一个磁盘已满时自动切换到下一个磁盘。 现在我将所有磁盘分别作为具有不同介质类型的不同设备和具有相应磁盘的存储。在Job's Pool中,我将Sorage设置为以逗号分隔的三个存储区。但现在我的第一个磁盘已满,Bareos不使用下一个磁盘。

1 个答案:

答案 0 :(得分:0)

您必须指定另一个设备指令。取自http://www.bacula.org/5.0.x-manuals/en/main/main/Storage_Daemon_Configuratio.html

If you want to write into more than one directory (i.e. to spread the load to different disk drives), you will need to define two Device resources, each containing an Archive Device with a different directory

所以,只需创建另一个'设备'指令,以便您有两个设备指令,如下所示:

Device {
  Name = FifoStorage
  Media Type = Fifo
  Device Type = Fifo
  Archive Device = /folder1
  LabelMedia = yes
  Random Access = no
  AutomaticMount = no
  RemovableMedia = no
  MaximumOpenWait = 60
  AlwaysOpen = no
}
Device {
  Name = FifoStorage2
  Media Type = Fifo
  Device Type = Fifo
  Archive Device = /folder2
  LabelMedia = yes
  Random Access = no
  AutomaticMount = no
  RemovableMedia = no
  MaximumOpenWait = 60
  AlwaysOpen = no
}