Bacula

Bacula 拒絕使用可用的交易量

  • December 20, 2011

我最近安裝了一個新伺服器並將 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
*

任何想法可能會發生什麼?為什麼它沒有找到任何可附加的捲?

在那種情況下,我最終對數據庫進行了核對並重建它,而沒有更改配置中的任何內容並且它起作用了。我不確定發生了什麼。從那以後,我多次遇到相同的問題,並通過重新啟動導向器和儲存來解決。

InChanger 標誌設置為零。如果此設置使用磁帶庫,您應該能夠在 bconsole 中執行“更新槽”來掃描庫並更新 InChanger 和 Slot 資訊。

引用自:https://serverfault.com/questions/85938