我按照以下操作指南在 Cent OS 7 上安装了 bacula 7:http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/howto-install-bacula-7-on-centos-7-fresh-install-126395/。
现在我想备份一个服务器但是任务卡在了is waiting for a mount request
。
导演展示了以下信息:
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device "FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: ERR=file_dev.c:172 Could not open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine Berechtigung
31-Dez 15:42 bacula-sd JobId 6: Please mount append Volume "Remote-0002" or label a new one for:
Job: myserver-db.2015-12-31_15.42.23_03
Storage: "FileStorage" (/var/bacula/backups)
Pool: RemoteFile
Media type: File
这个错误Keine Berechtigung
意味着Permission denied
。
嗯,但是有一个目录/var/bacula/backups/
具有以下权限:drwxr-xr-x. 2 bacula bacula
答案1
存储守护进程中文件的正确权限是 bacula:disk。因此
chown -R bacula:disk /var/bacula/backups