在我的虚拟CentOS Linux7.3.1611版上配置Bacula Server以执行基本的本地备份工作时,我正在努力保持理智。
我在配置文件中准备了所有需要的配置,并相应地准备了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文件的任何部分张贴出来,但如果没有必要的话,我不想马上毁了这个问题。谢谢你的任何提示。
发布于 2017-09-19 16:26:58
它可能会在某个时候帮助像我一样犯下同样错误的人:
在看了一页又一页的手册后,我发现这是我自己的错误。我已经将所有端口(对于控制器、文件守护进程和存储守护进程)都设置为9101 (出于某种原因,我猜是为了解决之前的另一个问题)。
因此,我假设bacula组件一定是在端口9101上阻塞了彼此的通信。在根据手册重置了9102、9103等默认端口后,它正常工作了,现在我可以在本地备份了。
发布于 2021-02-22 20:37:22
您必须从备份服务器添加控制器的名称,在远程客户端上编辑/etc/bacula/bacula-fd.conf,请参见“列出允许联系此文件守护程序的控制器”:
Director {
Name = BackupServerName-dir
Password = "use *-dir password from the same file"
}https://stackoverflow.com/questions/46173695
复制相似问题