0

在我的虚拟 CentOS Linux 版本 7.3.1611 上配置 Bacula Server 以执行基本的本地备份工作时,我试图保持理智。

我在 conf 文件中准备了所有我认为必要的配置,并相应地准备了 mysql 数据库。

当我想开始工作(现在是本地备份)时,我在 bconsole 中输入以下命令:

*Connecting to Director 127.0.0.1:9101
1000 OK: bacula-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: File
Enter new Volume name: MyVolume
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3): 2

这返回

Connecting to Storage daemon File at 127.0.0.1:9101 ...
Failed to connect to Storage daemon.
Do not forget to mount the drive!!!
You have messages.

消息在哪里:

12-Sep 12:05 bacula-dir JobId 0: Fatal error: authenticate.c:120 Director unable to authenticate with Storage daemon at "127.0.0.1:9101". Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the SD or
SD networking messed up (restart daemon).
Please see http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000 for help.

我仔细检查了所有 conf 文件的完整性以及名称和密码。我不知道在哪里进一步寻找错误。

我很乐意发布 conf 文件的任何部分,但如果可能没有必要,我不想立即解决这个问题。谢谢你的任何提示。

4

2 回答 2

0

您必须从备份服务器添加主管的名称,在远程客户端编辑 /etc/bacula/bacula-fd.conf,请参阅“列出允许联系此文件守护程序的主管”:

Director {
  Name = BackupServerName-dir
  Password = "use *-dir password from the same file"
}
于 2021-02-22T12:37:22.017 回答
0

有时可能会帮助与我犯同样错误的人:

在一个接一个地查看手册页后,我发现这是我自己的错误。我有(出于我不记得的原因,我想之前解决了另一个问题)将所有端口设置为 9101 - 用于导向器、文件守护程序和存储守护程序。

所以我假设 bacula 组件必须阻止彼此在端口 9101 上的通信。根据手册重置默认端口(如 9102、9103)后,它起作用了,我现在可以在本地备份。

于 2017-09-19T08:26:58.130 回答