Hello Phil, I have not yet figured out what is going wrong here, or what triggered Bacula to think it is trying to use a Volume directly from the Scratch pool. I am going to look at the code in more detail to see if I can find the problem. In any case, I am planning to remove the code as in my view it appears more likely to create problems rather than solve them. The only thing that I see that is related to the Scratch pool is the Recycle pool so I am going to look at the code from that stand point, but recycling into the Scratch pool is quite OK to do.
You should not need to directly reference the Scratch pool as you ask below. Would you mind attaching your Director's Job and Restore Resources and a copy of any resource that it points to? I suspect that the normal mechanism of setting up to run a job finds a Pool to be used for a "backup" job even though in this case it is a restore job, and perhaps somewhere along the line, the Pool is marked to be Scratch. Just to repeat, even if a reference to the Scratch pool happens, this code causes Bacula to malfunction. Best regards, Kern On 01/15/2017 07:56 PM, Phil Stracchino wrote: > Removed Storage from the Scratch pool definition. > Updated the Scratch pool from resource. > Re-updated director from 7.4.3 to 7.4.4 > Re-entered the restore job. Job failed with the same > invalid-scratch-pool message. > > > cwd is: / > $ cd /home/alaric > cwd is: /home/alaric/ > $ cd ".moonchild productions" > cwd is: /home/alaric/.moonchild productions/ > $ cd "pale moon" > cwd is: /home/alaric/.moonchild productions/pale moon/ > $ mark alaric > 1,207 files marked. > $ exit > Bootstrap records written to /var/lib/bacula/minbar-dir.restore.1.bsr > Bootstrap records written to /var/lib/bacula/minbar-dir.restore.1.bsr > > The Job will require the following (*=>InChanger): > Volume(s) Storage(s) SD Device(s) > =========================================================================== > > LTO4-FULL-0013 babylon5-sd LTO-4 > DIFF-20170109-04:30 babylon4-file FileStorage > INCR-20170115-04:30 babylon4-file FileStorage > > Volumes marked with "*" are in the Autochanger. > > > 1,210 files selected to be restored. > > Using Catalog "Catalog" > Pool "Scratch" not valid. > Job not run. > You have messages. > *llist volume=LTO4-FULL-0013 > MediaId: 48 > VolumeName: LTO4-FULL-0013 > Slot: 0 > PoolId: 6 > MediaType: LTO-4 > MediaTypeId: 0 > ... > ScratchPoolId: 0 > RecyclePoolId: 0 > ... > > *llist volume=DIFF-20170109-04:30 > MediaId: 1,991 > VolumeName: DIFF-20170109-04:30 > Slot: 0 > PoolId: 4 > MediaType: File > MediaTypeId: 0 > ... > ScratchPoolId: 0 > RecyclePoolId: 1 > ... > > *llist volume=INCR-20170115-04:30 > MediaId: 1,997 > VolumeName: INCR-20170115-04:30 > Slot: 0 > PoolId: 5 > MediaType: File > MediaTypeId: 0 > ... > ScratchPoolId: 0 > RecyclePoolId: 1 > ... > > *list pools > +--------+-------------+---------+---------+----------+---------------------------------------------------------------------------------------+ > | PoolId | Name | NumVols | MaxVols | PoolType | LabelFormat > | > +--------+-------------+---------+---------+----------+---------------------------------------------------------------------------------------+ > | 1 | Scratch | 1 | 0 | Backup | * > | > | 2 | VirtualFull | 0 | 0 | Backup | > VIRTUAL-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}-$Client > | > | 3 | Full-Disk | 0 | 0 | Backup | > FULL-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r} > | > | 4 | Diff-Disk | 6 | 0 | Backup | > DIFF-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r} > | > | 5 | Incr-Disk | 27 | 0 | Backup | > INCR-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r} > | > | 6 | Full-Tape | 21 | 24 | Backup | LTO4-FULL- > | > +--------+-------------+---------+---------+----------+---------------------------------------------------------------------------------------+ > > > > > I do notice that the scratch pool ID for all of these pools is 0. There > is no pool with id 0, and in fact I am not setting a Scratch pool for > any of my pools. Could this be the problem? > > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users