Ok, I’ll reconfigure and let you know. Thanks for your help.
To answer your question “Are my pool definitions are working?", in bconsole when I do a list volumes, or show pools, see below, you can see by the output bacula
thinks it has the correct volumes and slots assigned to each pool. The functionality, however, is not working, i.e. bacula is only using 1 tape/volume in each pool for all jobs assigned to each pool. So that is why I thought prefer mounted volumes might be
my only fix.
I think where I went wrong on this was to assume I can assign a drive to a pool instead of a volume. I’m going to change my thinking and just keep the volumes assigned to a pool and follow your instructions for configuring the storage.
Thanks again, I will follow up when I have ran some jobs to test.
Pool: Default
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 18 | AAAAC85F6D | Full | 1 | 733,591,821,312 | 773 | 31,536,000 | 0 | 11 | 1 | LTO | 2014-11-13 09:05:22 |
| 23 | AAAACA5F6F | Append | 1 | 1,721,087,907,840 | 1,764 | 31,536,000 | 0 | 9 | 1 | LTO | 2014-11-20 10:05:03 |
| 24 | AAAACB5F6E | Append | 1 | 34,805,449,728 | 38 | 31,536,000 | 0 | 7 | 1 | LTO | 2014-11-03 09:06:28 |
| 27 | AAAACD5F68 | Append | 1 | 17,029,877,760 | 18 | 31,536,000 | 0 | 10 | 1 | LTO | 2014-11-02 17:29:22 |
| 28 | AAAB3B609E | Append | 1 | 353,673,556,992 | 364 | 31,536,000 | 0 | 8 | 1 | LTO | 2014-11-13 10:05:14 |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: File
No results to list.
Pool: Disk
No results to list.
Pool: svc
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 19 | AAAACE5F6B | Append | 1 | 274,436,886,528 | 277 | 31,536,000 | 0 | 0 | 0 | LTO | 2014-11-14 18:49:09 |
| 26 | AAAACC5F69 | Append | 1 | 1,754,788,137,984 | 1,786 | 31,536,000 | 0 | 0 | 0 | LTO | 2014-11-20 19:01:38 |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: database
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 20 | AAAACF5F6A | Append | 1 | 1,598,797,218,816 | 1,637 | 31,536,000 | 0 | 3 | 1 | LTO | 2014-11-20 11:28:07 |
| 21 | AAAAC95F6C | Append | 1 | 139,567,905,792 | 145 | 31,536,000 | 0 | 6 | 1 | LTO | 2014-11-12 08:46:11 |
| 22 | AAAAD55F70 | Append | 1 | 966,402,984,960 | 989 | 31,536,000 | 0 | 5 | 1 | LTO | 2014-11-14 18:41:07 |
| 25 | AAAAD45F71 | Append | 1 | 7,680,734,208 | 9 | 31,536,000 | 0 | 4 | 1 | LTO | 2014-11-03 08:21:04 |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*show pools
Pool: name=Default PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=0 auto_prune=1 VolRetention=1 year
VolUse=0 secs recycle=0 LabelFormat=*None*
CleaningPrefix=*None* LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=2684354560000
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Storage: name=Tape7 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-7 MediaType=LTO StorageId=9
--> Storage: name=Tape8 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-8 MediaType=LTO StorageId=10
--> Storage: name=Tape9 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-9 MediaType=LTO StorageId=11
--> Storage: name=Tape10 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-10 MediaType=LTO StorageId=12
Pool: name=svc PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=0 auto_prune=1 VolRetention=1 year
VolUse=0 secs recycle=0 LabelFormat=*None*
CleaningPrefix=*None* LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=2684354560000
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Storage: name=Tape1 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-1 MediaType=LTO StorageId=3
--> Storage: name=Tape2 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-2 MediaType=LTO StorageId=4
Pool: name=database PoolType=Backup
use_cat=1 use_once=0 cat_files=1
max_vols=0 auto_prune=1 VolRetention=1 year
VolUse=0 secs recycle=0 LabelFormat=*None*
CleaningPrefix=*None* LabelType=0
RecyleOldest=0 PurgeOldest=0 ActionOnPurge=0
MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=2684354560000
MigTime=0 secs MigHiBytes=0 MigLoBytes=0
JobRetention=0 secs FileRetention=0 secs
--> Storage: name=Tape3 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-3 MediaType=LTO StorageId=5
--> Storage: name=Tape4 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-4 MediaType=LTO StorageId=6
--> Storage: name=Tape5 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-5 MediaType=LTO StorageId=7
--> Storage: name=Tape6 address=backup02.wes.popcap.com SDport=9103 MaxJobs=20
DeviceName=Drive-6 MediaType=LTO StorageId=8
Hi Jared,
In your bacula-sd.conf, you have defined an autochanger device:
Name = Autochanger
Device = Drive-1, Drive-2, Drive-3, Drive-4, Drive-5, Drive-6, Drive-7, Drive-8, Drive-9, Drive-10
...
}
But, in your bacula-sd.conf, you don't use it. Instead, you have a storage definition for each of your tape devices, like the bellow one for the Drive-1:
Storage {
Name = Tape1
Address = backup # N.B. Use a fully qualified name here, not localhost
SDPort = 9103
Password = “PASSWORD" # password for SD
Device = Drive-1
Media Type = LTO
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
|