Backup

bareos 使用兩個磁帶驅動器(不是多路復用)

  • February 5, 2018

我正在使用帶有兩個驅動器的 Neoseries T24 (Flexstor II) 自動裝載機。我在標有“已滿”的池中有磁帶(其中 11 個)。

當我為“完整”池執行兩個作業時,它們將按順序等待,以便它們都可以使用同一個驅動器 (0),而不是一個在驅動器 0 上執行,一個在驅動器 1 上執行。

這是因為我在標籤過程中選擇了驅動器 0 嗎?

是否可以將完整池中的任何磁帶作為自動載入器中的可用驅動器,以便可以同時執行兩個作業?

是否需要執行兩個 SD 守護程序?

** bareos-sd.d/server-sd.conf**

storage {
 Name = server-sd
 Maximum Concurrent Jobs = 20
 # Plugin Directory = /usr/lib/bareos/plugins
 # Plugin Names = ""
}

** bareos-sd.d/autochanger/autochanger-0.conf **

Autochanger {
 Name = "FlexStor_II"
 Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_xxxxxxxxxxx_LL0 
 Device = ULTRIUM-HH7-0
 Device = ULTRIUM-HH7-1
 Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}

**少bareos-sd.d/device/ULTRIUM-HH7-0.conf **

Device {
   Name = "ULTRIUM-HH7-0"
   DeviceType = tape
   DriveIndex = 0
   ArchiveDevice = /dev/tape/by-id/scsi-xxxxxxxxxxxxxx001-nst
   MediaType = LTO-7
   AutoChanger = yes                       # default: no
   AutomaticMount = yes                    # default: no
   MaximumFileSize = 500GB                  # default: 1000000000 (1GB)
   AlwaysOpen = yes
   Autoselect = yes
   RemovableMedia = yes
}

** bareos-sd.d/device/ULTRIUM-HH7-1.conf **

Device {
   Name = "ULTRIUM-HH7-1"
   DeviceType = tape
   DriveIndex = 1
   ArchiveDevice = /dev/tape/by-id/scsi-xxxxxxxxxxxxxx004-nst
   MediaType = LTO-7
   AutoChanger = yes                       # default: no
   AutomaticMount = yes                    # default: no
   MaximumFileSize = 500GB                  # default: 1000000000 (1GB)
   AlwaysOpen = yes
   Autoselect = yes
   RemovableMedia = yes
}

** bareos-dir.d/storage/Tape.conf **

Storage {
 Name = Tape
 Address = server                # N.B. Use a fully qualified name here (do not use "localhost" here).
 Password = "e9cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxg"
 Device = FlexStor_II 
 Media Type = LTO-7
 Autochanger = yes
}

BareOS 文件

預設情況下,Bareos 作業將優先寫入已安裝的捲。如果您有一個多驅動器自動轉換器,並且您希望 Bareos 同時寫入同一池中的多個卷,則需要設置Prefer Mounted Volumes Dir Job = no。這將導致儲存守護程序最大限度地使用驅動器。

引用自:https://serverfault.com/questions/875342