Bacula:写入备份失败


1

我根据此方法在Cent OS 7上安装了bacula 7:http : //www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/howto-install-bacula -7-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


如果您仅以登录身份尝试在该目录中创建文件,该bacula怎么办?像sudo -u bacula touch /var/bacula/backups/tempfile
Paul Haldane 2015年

Answers:


2

存储守护程序中文件的正确权限是bacula:disk。所以

chown -R bacula:disk /var/bacula/backups
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.