No Next Pool specification found in Pool

511 views
Skip to first unread message

Seitan

unread,
Nov 15, 2017, 3:59:33 AM11/15/17
to bareos-users
Hello,

I'm having issues with "Always incremental" job.
When bareos tries to consolidate backups into new full backup, I get error:

No Next Pool specification found in Pool "Consolidated".
I do not need longterm pool, - I'm okay with just Consolidated pool.
What I'm doing wrong?

Pool configuration:

#
Pool {
Name = Incremental
Pool Type = Backup
Recycle = yes
Auto Prune = yes
Volume Retention = 10 days
Maximum Volume Bytes = 5G
Maximum Volumes = 255
Label Format = "Incremental-"
Storage = StorageInc
Next Pool = Consolidated
}

Pool {
Name = Consolidated
Pool Type = Backup
Recycle = yes
Auto Prune = yes
Volume Retention = 50 days
Volume Use Duration = 23h.
Maximum Volume Bytes = 5G
Maximum Volumes = 500
Label Format = "Consolidated-"
Storage = StorageConsolidated
}


Thank you for your help.

Douglas K. Rand

unread,
Nov 15, 2017, 10:42:36 AM11/15/17
to bareos...@googlegroups.com
What do your Jobs look like? Specifically, does your consolidate job specify
a pool of Incremental or Consolidated? Somewhat unintuitively the consolidate
job should use the Incremental pool. You consolidate from the pool into the
next pool.

Anyway, that's my guess.

Seitan

unread,
Nov 16, 2017, 4:15:01 AM11/16/17
to bareos-users
Here is my jobs configuration:

CLNT.conf:

Job {
Name = "CLNT_root"
Client = "CLNT"
JobDefs = "root_cons"
FileSet = "root_CLNT"
Always Incremental = yes
Accurate = yes
AlwaysIncrementalJobRetention = 6 days
AlwaysIncrementalMaxFullAge = 38 days
Pool = Incremental
Full Backup Pool = Consolidated

}

Consolidate.conf:

Job {
Enabled=yes
Name = "consolidate"
Type = "Consolidate"
JobDefs = "root_cons"
Accurate = "yes"
Client = "CLNT"
Fileset = "root"
}

jobDefs.conf:


JobDefs {
Name = "root_cons"
Type = Backup
FileSet = "root"
Schedule = "WeeklyCycleCons"
Messages = Standard
Priority = 8
Write Bootstrap = "/var/lib/bareos/%c.bsr"
Reschedule On Error = yes
Reschedule Interval = 45minutes
Reschedule Times = 3
Rerun Failed Levels = yes
Level = Incremental
Pool = Consolidated
Storage = File
}

Douglas K. Rand

unread,
Nov 16, 2017, 10:52:44 AM11/16/17
to bareos...@googlegroups.com
Seitan, do you see how your consolidate job is using the Consolidated pool?
In your CLNT_root job you over-ride the pool to be Incremental. But you don't
in the consolidate job, so the definition from the root_cons jobdefs takes
effect. In your root_cons jobdefs try setting the Pool to Incremental.

If you follow the documentation at
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-28600023.3
you'll have good luck. You'll have to reference
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-1570009.14
to find some of the details to fill in.

Seitan

unread,
Nov 20, 2017, 1:12:04 AM11/20/17
to bareos-users
Thank you for reply,

but won't this setting make all consolidations go into incremental volumes?
What I've tried to to is to make daily backups to land into Incremental volumes and all consolidations (even full consolidations) to be written into Consolidated volumes.

Douglas K. Rand

unread,
Nov 20, 2017, 11:44:26 AM11/20/17
to bareos...@googlegroups.com
[Providing some context to the messages by quoting at least part of the
previous thread is helpful for people to understand.]

On 2017-11-16 at 09:52 CST Douglas Rand wrote:
>> Seitan, do you see how your consolidate job is using the Consolidated
>> pool? In your CLNT_root job you over-ride the pool to be Incremental. But
>> you don't in the consolidate job, so the definition from the root_cons
>> jobdefs takes effect. In your root_cons jobdefs try setting the Pool
>> to Incremental.

>> If you follow the documentation at
>> http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-28600023.3
>> you'll have good luck. You'll have to reference >>
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-1570009.14
>> to find some of the details to fill in.

The documentation sets this out fairly clearly:

> In case of a Copy or Migration job, this setting determines what Pool will
> be examined for finding JobIds to migrate. The exception to this is when
> Selection Type Dir Job = SQLQuery, and although a Pool directive must still
> be specified, no Pool is used, unless you specifically include it in the SQL
> query. Note, in any case, the Pool resource defined by the Pool directive
> must contain a Next Pool Dir Pool = ... directive to define the Pool to
> which the data will be migrated.

And consolidation jobs are really nothing but automated virtual full jobs.
The Next Pool directive says where to WRITE the job. But the Pool directive
says where to READ the data for the job. You need both a source and destination.

Seitan

unread,
Nov 21, 2017, 1:02:53 AM11/21/17
to bareos-users
Thank you for clearing this out.

Reply all
Reply to author
Forward
0 new messages