On Wednesday 21 February 2007 10:30, Ralf Gross wrote:
> Kern Sibbald schrieb:
> > 1. You might want to use two different databases, one for regular backups
> > and one for archives.  This will clearly separate your archive data from
> > your regular data.
>
> Basically this working now. But I'm a bit confused about the handling
> of pools and the assigned volumes with a second catalog.
>
> These are the pools/volumes I created before I added a second catalog.
>
> *list pools
> +--------+--------------+---------+---------+----------+-------------+
>
> | poolid | name         | numvols | maxvols | pooltype | labelformat |
>
> +--------+--------------+---------+---------+----------+-------------+
>
> |      2 | CleaningPool |       0 |       0 | Backup   | *           |
> |      3 | Archiv       |       0 |       0 | Backup   | *           |
> |      4 | Full         |       0 |       0 | Backup   | *           |
> |      5 | Differential |       0 |       0 | Backup   | *           |
> |      6 | Incremental  |       0 |       0 | Backup   | *           |
> |      7 | Scratch      |       0 |       0 | Backup   | *           |
>
> +--------+--------------+---------+---------+----------+-------------+
>
> Pool: Archiv
> +---------+------------+-----------+---------+
>
> | mediaid | volumename | volstatus | enabled |
>
> +---------+------------+-----------+---------+ ...snip...
>
> |      17 | 06D143L3   | Append    |       1 |
>
> +---------+------------+-----------+---------+
>
>
> Now with the second catalog I see the same pools if I switch to the new
> catalog ArchiveCatalog in bconsole with 'use'.
>
> *use
> The defined Catalog resources are:
>      1: MyCatalog
>      2: ArchiveCatalog
> Select Catalog resource (1-2): 2
> Using Catalog "ArchiveCatalog"
> Using Catalog name=ArchiveCatalog DB=bacula_archive
>
> *list pools
> +--------+--------------+---------+---------+----------+-------------+
>
> | poolid | name         | numvols | maxvols | pooltype | labelformat |
>
> +--------+--------------+---------+---------+----------+-------------+
>
> |      1 | Default      |       0 |       0 | Backup   | *           |
> |      2 | CleaningPool |       0 |       0 | Backup   | *           |
> |      3 | Archiv       |       0 |       0 | Backup   | *           |
> |      4 | Full         |       0 |       0 | Backup   | *           |
> |      5 | Differential |       0 |       0 | Backup   | *           |
> |      6 | Incremental  |       0 |       0 | Backup   | *           |
> |      7 | Scratch      |       0 |       0 | Backup   | *           |
>
> +--------+--------------+---------+---------+----------+-------------+
>
> That's fine, but the pools are all empty.
>
> *list volumes
> Pool: Default
> No results to list.
> Pool: CleaningPool
> No results to list.
> Pool: Full
> No results to list.
> Pool: Differential
> No results to list.
> Pool: Incremental
> No results to list.
> Pool: Scratch
> No results to list.
> Pool: Archiv
> No results to list.
>
> Therefor the archive job was complaining that there is no volume in the
> Archiv pool.
>
> 21-Feb 09:55 VU0EM005: Job VU0EM003_Archiv.2007-02-21_09.53.40 waiting.
> Cannot find any appendable volumes.
>
> Please use the "label"  command to create a new Volume for:
>     Storage:      "LTO3" (/dev/nst0)
>     Media type:   LTO3
>     Pool:         Archiv
>
>
> To solve this, I deleted the Archiv pool in MyCatalog, relabled the tape
> and added it to the Archiv pool of the ArchiveCatalog. In addition I
> deleted the Full, Default, Differential, Incremental pools in
> ArchiveCatalog.

It is quite possible that Bacula will re-create all the pools the next time 
the Director is restarted.

>
> It is a bit confusing that the pools exist in both catalogs, but not the
> volumes. What about the scratch pool, is there a way to share the volumes
> between the catalogs/pools?

No.  Maybe it is something to think about for the future though.

By the way, handling of two catalogs is, for the most part, significantly 
improved in version 2.0.x compared to 1.38.11.

Pool definitions are currently "global".  At some point in the future, they 
will need to be attached to a particular catalog ...

>
> Ralf
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to