![bareos 使用两个磁带驱动器(非多路复用)](https://linux22.com/image/710983/bareos%20%E4%BD%BF%E7%94%A8%E4%B8%A4%E4%B8%AA%E7%A3%81%E5%B8%A6%E9%A9%B1%E5%8A%A8%E5%99%A8%EF%BC%88%E9%9D%9E%E5%A4%9A%E8%B7%AF%E5%A4%8D%E7%94%A8%EF%BC%89.png)
我使用的是 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
}
答案1
默认情况下,Bareos 作业将优先写入已安装的卷。如果您有多个驱动器自动转换器,并且希望 Bareos 同时写入同一池中的多个卷,则需要设置首选已安装卷目录作业 = 否。这将导致存储守护进程最大限度地利用驱动器。