我最近安装了一台新服务器,并将 Bacula 配置为自动标记最多 10 个卷。很快我就收到一条消息,说需要干预,当我查看它时,发现一个卷已完全使用,其余卷处于附加模式但未被使用。
我设法使原始文件进入回收模式,但其余文件仍处于附加模式,并且备份不起作用。
这是一些控制台输出。
我的卷
*list volumes
Pool: Default
+---------+-------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+-------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | mozart-0001 | Recycle | 1 | 1 | 0 | 1,296,000 | 1 | 0 | 0 | File | 2009-11-12 23:10:02 |
| 2 | mozart-0002 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 3 | mozart-0003 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 4 | mozart-0004 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 5 | mozart-0005 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 6 | mozart-0006 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 7 | mozart-0007 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 8 | mozart-0008 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 9 | mozart-0009 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
| 10 | mozart-0010 | Append | 1 | 0 | 0 | 1,296,000 | 1 | 0 | 0 | File | 0000-00-00 00:00:00 |
+---------+-------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: Scratch
No results to list.
运行备份:
*run
A job name must be specified.
The defined Job resources are:
1: Main
2: Catalog
3: RestoreFiles
Select Job resource (1-3): 1
Run Backup job
JobName: Main
Level: Incremental
Client: mozart-fd
FileSet: Full Set
Pool: Default (From Job resource)
Storage: chopin-sd (From Job resource)
When: 2009-11-18 15:12:45
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=28
18-Nov 15:12 mozart-dir JobId 28: No prior Full backup Job record found.
18-Nov 15:12 mozart-dir JobId 28: No prior or suitable Full backup found in catalog. Doing FULL backup.
*
失败:
18-Nov 15:49 chopin-sd JobId 27: Job Main.2009-11-18_14.49.47.28 waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "FileStorage" (/var/bacula-backups)
Pool: Default
Media type: File
*
知道可能发生了什么吗?为什么找不到任何可附加的卷?
答案1
InChanger 标志设置为零。如果此设置使用磁带库,您应该能够在 bconsole 中运行“更新插槽”来扫描库并更新 InChanger 和插槽信息。
答案2
在这种情况下,我最终删除了数据库并重建了它,而没有更改配置中的任何内容,并且它成功了。我不确定发生了什么。从那时起,我多次遇到同样的问题,并通过重新启动控制器和存储解决了这个问题。