Bacula-users

Re: [Bacula-users] Bacula mixing up pools and mount points

2009-06-15 15:43:48
Subject: Re: [Bacula-users] Bacula mixing up pools and mount points
From: Jonathan Bayer <jbayer AT regiscope DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 15 Jun 2009 15:38:39 -0400
I have a temporary solution, will send another message later after I've
conducted a few more tests.

I simply created a new label on the external drive, so now the drive
contains two labels.  Now it is able to read both the internal backup
AND the original VirtualFull backups, and write the new backup to the
new label on the same physical drive.

I will still have to test what happens when _another_ virtualfull backup
is done, I want to see if it will then read from the second and write to
the first.



JBB

On Mon, 2009-06-15 at 13:49 -0400, Dirk Bartley wrote:
> OK, just re-read the storage= option under pool and it is a little bit
> confusing to me because I always thought the storage came from the job
> defaults, then the schedule resource for that run if it has an override.
> 
> >From the docs, this means my assumtion was incorrect.
> 
> "The Storage resource may also be specified in the Job resource, but the
> value, if any, in the Pool resource overrides any value in the Job. This
> Storage resource definition is not required by either the Job resource
> or in the Pool, but it must be specified in one or the other. If not
> configuration error will result."
> 
> I'd still look at the storage on the job's log.  You may want to choose
> to put the storage= in the schedule resource just to make sure.
> 
> Dirk
> 
> On Mon, 2009-06-15 at 10:52 -0400, Jonathan Bayer wrote:
> > Hi,
> > 
> > Running Bacula 3.0.1 on an Ubuntu 9.05 system.
> > Main backups are done to an internal hard disk.  Pool is called
> > Internal, volume name is Internal
> > VirtualFull backups are done to an external hard disk.  Pool is called
> > External, volume name is D1
> > 
> > The internal pool is mounted in:  /var/lib/bacula/archive
> > The external pool is mounted in /media/bacula
> > 
> > The external pool is accessed using the NextPool keyword.
> > 
> > Bacula gets the pools confused.  It looks for the D1 volume at the
> > internal pool location
> > 
> > This doesn't make sense, it is trying to both read and write at the
> > same location.
> > 
> > Any ideas?
> > 
> > JBB
> > 
> > 
> > 15-Jun 10:44 bayer-sd JobId 423: Warning: dev.c:534 dev.c:532 Could
> > not open: /var/lib/bacula/archive/D1, ERR=No suchfile or directory
> > 15-Jun 10:44 bayer-sd JobId 423: Warning: acquire.c:221 Read open
> > device "FileStorage" (/var/lib/bacula/archive) Volume "D1" failed:
> > ERR=dev.c:532 Could not open: /var/lib/bacula/archive/D1, ERR=No such
> > file or directory
> > 
> > 15-Jun 10:44 bayer-sd JobId 423: Please mount Volume "D1" for:
> >     Job:          Clonezilla.2009-06-15_10.41.00_24
> >     Storage:      "FileStorage" (/var/lib/bacula/archive)
> >     Pool:         Internal
> >     Media type:   File
> > *list media
> > 
> > 
> > 
> > Pool: Internal
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > | mediaid | volumename | volstatus | enabled | volbytes        |
> > volfiles | volretention | recycle | slot | inchanger| mediatype |
> > lastwritten         |
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > |       1 | Internal   | Append    |       1 | 650,457,573,214 |
> > 151 |   31,536,000 |       1 |    0 |         0| File      |
> > 2009-06-15 10:33:29 |
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > Pool: External
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > | mediaid | volumename | volstatus | enabled | volbytes        |
> > volfiles | volretention | recycle | slot | inchanger| mediatype |
> > lastwritten         |
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > |       5 | D1         | Append    |       1 | 272,625,134,040 |
> > 63 |   31,536,000 |       1 |    0 |         0| File      | 2009-06-05
> > 18:33:31 |
> > +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> > 
> > Pool {
> >   Name = Internal
> >   Pool Type = Backup
> >   Recycle = yes                       # Bacula can automatically
> > recycle Volumes
> >   AutoPrune = yes                     # Prune expired volumes
> >   Volume Retention = 365 days         # one year
> >   NextPool = External
> >   Storage = File
> > }
> > 
> > # Default pool definition
> > Pool {
> >   Name = External
> >   Pool Type = Backup
> >   Recycle = yes                       # Bacula can automatically
> > recycle Volumes
> >   AutoPrune = yes                     # Prune expired volumes
> >   Volume Retention = 365 days         # one year
> >   Storage = ExternalFileStorage
> > }
> > 
> > 
> > 
> > ------------------------------------------------------------------------------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing 
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________ Bacula-users mailing list 
> > Bacula-users AT lists.sourceforge DOT net 
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users