大网数据广告活动
服务器运维问答

bareos Using both tape drives (not multiplexing)

· 52CE 我爱测

I'm using a Neoseries T24 (Flexstor II) autoloader with two drives. I have tapes (11 of them) in a pool labeled 'Full'. When I run two jobs, both for the 'Full' pool, they will wait in sequence so they can both use the same drive…

问题原文

原帖链接 · BurningKrome · CC BY-SA 3.0

I'm using a Neoseries T24 (Flexstor II) autoloader with two drives. I have tapes (11 of them) in a pool labeled 'Full'.

When I run two jobs, both for the 'Full' pool, they will wait in sequence so they can both use the same drive (0) instead of one running on drive 0 and one running on drive 1.

Is this because I selected drive 0 during the label process?

Is it possible to have any tape from the Full pool an available drive in the autoloader so that two jobs can be run simultaneously?

Do two SD daemons need to be running?

** 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"
}

** less 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
}

已采纳解答

原帖链接 · wazoox · CC BY-SA 3.0

From the BareOS documentation:

As a default, Bareos jobs will prefer to write to a Volume that is already mounted. If you have a multiple drive autochanger and you want Bareos to write to more than one Volume in the same Pool at the same time, you will need to set Prefer Mounted Volumes Dir Job = no. This will cause the Storage daemon to maximize the use of drives.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-09-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。