HP Ultrium 1840 LTO-4 写入速度慢

Ric*_*ard 5 linux backup scsi tapedrive hp-storageworks

我有一个 HP StorageWorks Ultrium 1840 LTO-4 外部磁带驱动器连接到运行 Ubuntu 18.04.4 LTS(内核 4.15.0-99-generic)的机器,使用 LSI20320IE PCI-X x4 SCSI 适配器和 VHDCI 到 HD 电缆。

写入磁带驱动器的速度很慢,并且需要大量擦鞋。它的最大速度约为 36MB/s。这比它应该能够做到的要慢一个数量级。

我曾尝试使用 Adaptec 29160 PCI SCSI 适配器和 HD 到 HD 电缆将磁带驱动器连接到旧机器。磁带机的写入速度几乎完全相同(36MB/s)。

硬盘驱动器之间通常能够以超过 150MB/s 的速度相互传输数据。但只是为了检查它不是硬盘驱动器或 SATA 总线限制,我从/dev/urandomvia馈送磁带驱动器buffer,它仍然以大约 36MB/s 的速度达到最大值。

我怀疑问题出在磁带驱动器本身或操作系统级别,而不是 SCSI 适配器或电缆。也许有一个mt命令可以更改磁带驱动器上的设置。如何诊断和解决问题?

编辑: HP L&TT 诊断测试产生以下输出:

    - Firmware rev B56D is out-of-date for Ultrium 4-SCSI as of Thu May 26 19:00:00 2011; update to rev B63D.
    - Rule 19.0 (Performance & Config./Scsi configuration):
    - The current SCSI configuration is likely to be limiting the performance of the drive.
    - Please check that your HBA is the correct type for the drive and that the cabling is good.
    - Current SCSI configuration: narrow   Recommended: wide
    - Current SCSI transfer rate limited to: 40 MB/sec.   Recommended: 320 MB/sec. or better
    - There were 20 rules and 141 subrules checked.
    - Device Analysis completed, and warnings have been reported.
Run Code Online (Sandbox Code Playgroud)

所以看起来适配器正在检测链接为窄而不是宽。这将解释速度问题。但什么可能导致这种情况?

Bar*_*958 6

您没有差分电缆,因此 HBA 正在切换到 UltraWide 模式。在 HBA 和 SCSI 设备之间使用合适的电缆。

https://ask.adaptec.com/app/answers/detail/a_id/11007/~/scsi-standards-%2F-transfer-rates-%2F-bus-width-%2F-cable-length

(混合使用 LVD 和 SE 会限制您的性能)

  • 不... https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c01230685 “接口:Ultra 320 SCSI (LVDS)” (2认同)