On Thursday 14 July 2005 11:50 am, DAve wrote:
> Mike Reinehr wrote:
> > On Thursday 14 July 2005 09:37 am, DAve wrote:
> >>Good morning all,
> >>
> >>I've read through the docs (doesn't mean I got it all) and successfully
> >>installed and configured Bacula. Very nice program. I ran backups into a
> >>single file for a while until we got an idea what we needed. I then
> >>reread the docs section about Automatic_Volume_Recycling. I am certain I
> >>missed something.
> >>
> >>Once I got everything resetup and running Bacula appeared to be doing
> >>exactly what I wanted except that my catalog backup is now failing.
> >>
> >>I am at a oss as to understand why. Can someone please smack me with a
> >>clue bat?
> >>
> >>Thanks, details below.
> >>
> >>DAve
> >
> > Dave,
> >
> > Your listing for Jobid 895, below, indicates a Backup Level of Catalog. I
> > think this is your problem. The backup level should be Full. Catalog is a
> > level used only by verify jobs. Unfortunately, I can't say for certain
> > why this is happening. All of your configuration stanzas seem correct, to
> > me.
>
> Agreed, but I don't understand why it is trying to use that backup
> level? I don't have a backup level of Catalog anywhere.

        No, I can't see that either, from what you've provided so far.

> > The
> > only clue that I see is in your listing of pools. In that list the pool
> > type for your Catalog pool is indicated as Cat-. You might try deleting
> > this pool and allowing it to be created again, from scratch.
>
> I don't understand, delete what? The media?

        No, the pool. From within bconsole, "*delete pool=Catalog".

        From "The Pool Resource" of the Bacula User Manual:

Another important aspect of a Pool is that it contains the default attributes 
(Maximum Jobs, Retention Period, Recycle flag, ...) that will be given to a 
Volume when it is created. This avoids the need for you to answer a large 
number of questions when labeling a new Volume. Each of these attributes can 
later be changed on a Volume by Volume basis using the update command in the 
console program. Note that you must explicitly specify which Pool Bacula is 
to use with each Job. Bacula will not automatically search for the correct 
Pool.

Most often in Bacula installations all backups for all machines (Clients) go 
to a single set of Volumes. In this case, you will probably only use the 
Default Pool. If your backup strategy calls for you to mount a different tape 
each day, you will probably want to define a separate Pool for each day. For 
more information on this subject, please see the Backup Strategies chapter of 
this manual.

To use a Pool, there are three distinct steps. First the Pool must be defined 
in the Director's configuration file. Then the Pool must be written to the 
Catalog database. This is done automatically by the Director each time that 
it starts, or alternatively can be done using the create command in the 
console program. Finally, if you change the Pool definition in the Director's 
configuration file and restart Bacula, the pool will be updated alternatively 
you can use the update pool console command to refresh the database image. It 
is this database image rather than the Director's resource image that is used 
for the default Volume attributes. Note, for the pool to be automatically 
created or updated, it must be explicitly referenced by a Job resource.

> > Also, are you running this job with a bconsole run command, or is it
> > running automatically? If from bconsole, make sure that you have selected
> > the correct level, before saying yes to run.
>
> When I run the job from bconsole it works fine, but I have to mod the
> pool to "Full" for it to work. Not seeing where the Pool is getting set
> to "Catalog".
>
> Should I post the complete bacula-dir.conf?
>
> Should I send any output from bconsole?

        Try updating/recreating your Catalog pool first and see what happens. 
If 
that's not successful, then we'll have to dig deeper.

Cheers!

cmr

> DAve
>
> > cmr
> >
> >>=============error message========================
> >>14-Jul 01:10 web6-dir: Start Backup JobId 895,
> >>Job=BackupCatalog.2005-07-14_01.10.00
> >>14-Jul 01:10 web6-dir: BackupCatalog.2005-07-14_01.10.00 Fatal error:
> >>fd_cmds.c:222 Unimplemented backup level 67 C
> >>14-Jul 01:10 web6-dir: BackupCatalog.2005-07-14_01.10.00 Error: Bacula
> >>1.36.1 (26Nov04): 14-Jul-2005 01:10:08
> >>   JobId:                  895
> >>   Job:                    BackupCatalog.2005-07-14_01.10.00
> >>   Backup Level:           Catalog
> >>   Client:                 web6-fd
> >>   FileSet:                "Web6-Catalog" 2004-12-17 15:27:31
> >>   Pool:                   "Default"
> >>   Storage:                "File"
> >>   Start time:             14-Jul-2005 01:10:02
> >>   End time:               14-Jul-2005 01:10:08
> >>   FD Files Written:       0
> >>   SD Files Written:       0
> >>   FD Bytes Written:       0
> >>   SD Bytes Written:       0
> >>   Rate:                   0.0 KB/s
> >>   Software Compression:   None
> >>   Volume name(s):
> >>   Volume Session Id:      25
> >>   Volume Session Time:    1120164017
> >>   Last Volume Bytes:      0
> >>   Non-fatal FD errors:    0
> >>   SD Errors:              0
> >>   FD termination status:
> >>   SD termination status:  Waiting on FD
> >>   Termination:            *** Backup Error ***
> >>
> >>
> >>=============bacula-dir.conf==========================
> >>Job {
> >>   Name = "BackupCatalog"
> >>   Type = Backup
> >>   FileSet = "Web6-Catalog"
> >>   Schedule = "WeeklyCycleAfterBackup"
> >>   # This creates an ASCII copy of the catalog
> >>   RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula
> >>bacula"
> >>   # This deletes the copy of the catalog
> >>   RunAfterJob  = "/usr/local/share/bacula/delete_catalog_backup"
> >>   Write Bootstrap = "/usr/local/db/bacula/BackupCatalog.bsr"
> >>   Level = Full
> >>   Client = web6-fd
> >>   Storage = File
> >>   Messages = Standard
> >>   Pool = Default
> >>   Priority = 11                   # run after main backup
> >>}
> >>
> >>FileSet {
> >>   Name = "Web6-Catalog"
> >>   Include {
> >>     Options {
> >>       signature = MD5
> >>     }
> >>     File = /usr/local/db/bacula/bacula.sql
> >>   }
> >>}
> >>
> >>Schedule {
> >>   Name = "WeeklyCycleAfterBackup"
> >>   Run = Level=Full FullPool=Catalog sun-sat at 1:10
> >>}
> >>
> >>Pool {
> >>   Name = Catalog
> >>   Pool Type = Backup
> >>   Recycle = yes
> >>   AutoPrune = yes                     # Prune expired volumes
> >>   Volume Retention = 30 days
> >>   Accept Any Volume = yes             # write on any volume in the pool
> >>   LabelFormat = "Cat-"
> >>   Maximum Volume Jobs = 6
> >>   Maximum Volumes = 5
> >>}
> >>
> >>=================bconsole=======================
> >>*list pools
> >>+--------+-----------+---------+---------+----------+-------------+
> >>
> >>| PoolId | Name      | NumVols | MaxVols | PoolType | LabelFormat |
> >>
> >>+--------+-----------+---------+---------+----------+-------------+
> >>
> >>|      1 | Default   |       4 |       4 | Backup   | BackUp      |
> >>|      2 | Inc-Pool  |       6 |       6 | Backup   | Inc-        |
> >>|      3 | Diff-Pool |       5 |       5 | Backup   | Diff-       |
> >>|      4 | Full-Pool |       6 |       6 | Backup   | Full-       |
> >>|      5 | Catalog   |       5 |       5 | Backup   | Cat-        |
> >>
> >>+--------+-----------+---------+---------+----------+-------------+
> >>
> >>*list media
> >>Pool: Catalog
> >>+---------+------------+-----------+------------+----------+-------------
> >>-+ ---------+------+-----------+-----------+---------------------+
> >>
> >>| MediaId | VolumeName | VolStatus | VolBytes   | VolFiles |
> >>
> >>VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
> >>
> >>+---------+------------+-----------+------------+----------+-------------
> >>-+ ---------+------+-----------+-----------+---------------------+
> >>
> >>|      22 | Cat-0001   | Append    | 72,498,076 |        0 |
> >>
> >>2,592,000 |       1 |    0 |         1 | File      | 2005-06-30 15:42:30
> >> |
> >>
> >>|      23 | Cat-0002   | Append    |          1 |        0 |
> >>
> >>2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00
> >> |
> >>
> >>|      24 | Cat-0003   | Append    |          1 |        0 |
> >>
> >>2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00
> >> |
> >>
> >>|      25 | Cat-0004   | Append    |          1 |        0 |
> >>
> >>2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00
> >> |
> >>
> >>|      26 | Cat-0005   | Append    |          1 |        0 |
> >>
> >>2,592,000 |       1 |    0 |         1 | File      | 0000-00-00 00:00:00
> >> |
> >> +---------+------------+-----------+------------+----------+------------
> >>--+ ---------+------+-----------+-----------+---------------------+
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> >>from IBM. Find simple to follow Roadmaps, straightforward articles,
> >>informative Webcasts and more! Get everything you need to get up to
> >>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> >>_______________________________________________
> >>Bacula-users mailing list
> >>Bacula-users@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Debian 'Sarge': Registered Linux User #241964
----
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC
--------


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to