Bacula-users

Re: [Bacula-users] Attribute create error: "Pool record not found in Catalog."

2009-03-16 12:59:05
Subject: Re: [Bacula-users] Attribute create error: "Pool record not found in Catalog."
From: Kevin Keane <subscription AT kkeane DOT com>
Date: Mon, 16 Mar 2009 09:47:59 -0700
Andreas Schuldei wrote:
> On Mon, Mar 16, 2009 at 4:47 PM, Kevin Keane <subscription AT kkeane DOT com> 
> wrote:
>   
>> Andreas Schuldei wrote:
>>     
>>> On Mon, Mar 16, 2009 at 3:04 PM, John Drescher <drescherjm AT gmail DOT 
>>> com> wrote:
>>>
>>>       
>>>> On Mon, Mar 16, 2009 at 4:36 AM, Andreas Schuldei
>>>> <schuldei+bacula-users AT spotify DOT com> wrote:
>>>>         
>>>>> when using a new pool (file storage, is that the same?) for the first
>>>>> time i get this error:
>>>>>
>>>>> Fatal error: catreq.c:487 Attribute create error. Pool record not
>>>>> found in Catalog.
>>>>>
>>>>> do i have to initiate the pool? how do i do that?
>>>>>
>>>>>
>>>>>           
>>>> Bacula is supposed to do that automatically when it finds a new pool
>>>> in the bacula-dir.conf and you either restarted bacula-dir or had it
>>>> reload the config file with the reload command.
>>>>
>>>>         
>>> i certainly restarted and reloaded it since. can i somehow force it to
>>> label the pool or can i label it manually?
>>>
>>>       
>> The only way to force creating a pool is by restarting bacula-dir.
>>
>> By the way - did you remember to run
>>
>> bacula-dir -t
>>     
>
> that finishes just fine, without output.
>
>   
>> Next, let's take a step back and analyze the problem. Let's see what
>> bacula-dir thinks its pools are. Open bconsole, and type the command
>>
>> list pools
>>     
>
> *list pools
> Automatically selected Catalog: backup
> Using Catalog "backup"
> +--------+------------+---------+---------+----------+-------------------------+
> | poolid | name       | numvols | maxvols | pooltype | labelformat            
>  |
> +--------+------------+---------+---------+----------+-------------------------+
> |      2 | AFS        |      10 |       0 | Backup   | AFS-${NumVols:p/8/0/r} 
>  |
> |      4 | Tape       |       4 |       0 | Backup   | *                      
>  |
> |      5 | Tape-Index |       1 |       0 | Backup   | *                      
>  |
> |      6 | Default    |   1,011 |       0 | Backup   | 
> File-${NumVols:p/8/0/r} |
> +--------+------------+---------+---------+----------+-------------------------+
>
>
>   
>> Do you see that pool listed?
>>     
>
> The backups should go to the Default pool.
>
> but i dont see any connection to the FileStorage i configured/changed.
>
> can i see where that pool thinks it lives?
>   
And apparently the default pool is working quite well. I see that there 
are more than 1000 volumes in that pool, so you must have used it for a 
while, apparently successfully.

I'm not quite sure what you mean by "FileStorage". Did you create a new 
Storage resource?

Storage is not the same as pool.

Storage accesses volumes. It doesn't know anything about which volumes 
exist, it just simply reads and writes them (and creates and labels them 
as well when told to do so).

Pools are collections of database entries for volumes.

A pool will usually indicate which storage resource to use for physical 
access to the volumes. The reverse is not true - a storage resource 
never knows which pool a volume belongs to.

I don't know enough about the internals of bacula, but my gut feeling is 
that there is some kind of database corruption. You may want to run dbcheck.

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users