Bacula:主管与 SD 的此工作连接已丢失

标签 bacula

SD-7.4.4(ubuntu 16)Director-7.4.4(ubuntu 16)FD-5.2.10(Windows)

我在使用 Bacula 备份 Windows 客户端时遇到问题。当备份大小约为 1MB 或 2 时,我可以很好地运行备份,但是当运行 500MB 的备份时,我每次都会遇到相同的错误

"Director's connection to SD for this Job was lost."

有些事情要提一下。当我发出status client时:

Terminated Jobs:  JobId  Level    Files      Bytes   Status   Finished
======================================================================
    81  Full      5,796    514.8 M  OK       06-Nov-17 12:50 BackupComputerA

当我发出status dir

06-Nov 17:58 acme-director JobId 81: Error: Director's connection to SD for this Job was lost.
06-Nov 17:58 acme-director JobId 81: Error: Bacula acme-director 7.4.4 (202Sep16):
  Build OS:               arm-unknown-linux-gnueabihf debian 9.0
  JobId:                  81
  Job:                    BackupComputerA.2017-11-06_17.41.01_03
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "Computer-A-fd" 5.2.10 (28Jun12) Microsoft  (build 9200), 32-bit,Cross-compile,Win32
  FileSet:                "Full Set" 2017-11-03 22:12:58
  Pool:                   "RemoteFile" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File1" (From Job resource)
  Scheduled time:         06-Nov-2017 17:40:59
  Start time:             06-Nov-2017 17:41:04
  End time:               06-Nov-2017 17:58:00
  Elapsed time:           16 mins 56 secs
  Priority:               10
  FD Files Written:       5,796
  SD Files Written:       0
  FD Bytes Written:       514,883,164 (514.8 MB)
  SD Bytes Written:       0 (0 B)
  Rate:                   506.8 KB/s
  Software Compression:   100.0% 1.0:1
  Snapshot/VSS:           yes
  Encryption:             yes
  Accurate:               no
  Volume name(s):         
  Volume Session Id:      1
  Volume Session Time:    1509989906
  Last Volume Bytes:      8,045,880,119 (8.045 GB)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  Error
  Termination:            *** Backup Error ***

备份大约 5 分钟后,我收到一条消息:

Running Jobs:
Console connected at 06-Nov-17 18:08
 JobId  Type Level     Files     Bytes  Name              Status
======================================================================
    83  Back Full          0         0  BackupComputerE   has terminated
====

作业完成并终止,但随后失去连接,我从未得到

"OK"

状态更新。

我添加了"Heartbeat Interval = 1 Minute"对于所有的守护进程,仍然没有运气。在Director上使用mysql作为数据库

感谢您的帮助

最佳答案

对于遇到同样问题的人,我可以通过向客户端添加心跳间隔并调整保持事件时间来解决 SD 和主管之间的问题

sysctl -w net.ipv4.tcp_keepalive_time=60

在存储守护进程和 Controller 上。使用 bconsole 远程连接到主管也会中断作业,因此我在与主管相同的计算机上运行 bconsole 并通过 ssh 连接。

关于Bacula:主管与 SD 的此工作连接已丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47143444/

相关文章:

bacula - 如何将 TCP Wrappers 与 Bacula 一起使用?

linux - 如何使用 bacula 编写备份脚本?

linux - Bacula bconsole 无法连接到本地主机 Centos7

linux - 命令了解文件夹中安装的内容

backup - 使用 bextract 从头开始​​ Bacula/Bareos 灾难恢复

mysql - Bacula使用sql查询搜索文件

linux - 我的 Bacula 传输率非常低。我如何配置导演来改善这一点?