Bacula-users

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

2009-06-15 15:16:24
Subject: Re: [Bacula-users] Bacula mixing up pools and mount points
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 15 Jun 2009 21:09:23 +0200
Hello,

15.06.2009 19:49, 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.

It's also important to NOT use the same media type for volumes handled 
by different storage devices that don't really share the same set of 
volumes.

Arno

> 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
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

------------------------------------------------------------------------------
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