Bacula does not create a new volume

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bacula does not create a new volume

Sergio Belkin-2
Hi,

I use bacula 7.0 and I'm testing Volume Recycling, below, the Pool configuration:

Pool {
  Name = TestShortZN
  Use Volume Once = no
  Pool Type = Backup
  LabelFormat = "TestShortZN"
  AutoPrune = yes
  Volume Retention =  1h
  Maximum Volumes = 2
  Maximum Volume Bytes = 5M
  Action On Purge = Truncate
  Recycle = yes
}


Schedule {
  Name = "testzn"
  Run = Level=Full Pool=TestShortZN Messages=Standard Storage=TempFile  hourly at 0:30
  Run = Level=Full Pool=TestShortZN Messages=Standard Storage=TempFile  hourly at 0:00
}


After second run ask my to label a new volume:


*list joblog jobid=1283
+----------------------------------------------------------------------------------------------------+
| LogText                                                                                              |
+----------------------------------------------------------------------------------------------------+
| bacula-dir JobId 1283: Start Backup JobId 1283, Job=Filetest.2016-12-21_12.30.00_09
                 |
| bacula-dir JobId 1283: Using Device "TempFileStorage" to write.
                                     |
| bacula-sd JobId 1283: Volume "TestShortZN0014" previously written, moving to end of data.
           |
| bacula-sd JobId 1283: Ready to append to end of Volume "TestShortZN0014" size=4,583,657
             |
| bacula-sd JobId 1283: End of medium on Volume "TestShortZN0014" Bytes=5,228,777 Blocks=82 at 21-Dec-2016 12:30.
 |
| bacula-sd JobId 1283: Job Filetest.2016-12-21_12.30.00_09 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
    Storage:      "TempFileStorage" (/tmp)
    Pool:         TestShortZN
    Media type:   File
 |
+----------------------------------------------------------------------------------------------------+
+-------+----------+---------------------+------+-------+----------+----------+-----------+
| JobId | Name     | StartTime           | Type | Level | JobFiles | JobBytes | JobStatus |
+-------+----------+---------------------+------+-------+----------+----------+-----------+
| 1,283 | Filetest | 2016-12-21 12:30:02 | B    | F     |        0 |        0 | R         |
+-------+----------+---------------------+------+-------+----------+----------+-----------+

Also I have the storage SD config with

Label Media = Yes

Why does bacula not create and label a new volume automatically?

Thanks in advance!
--
--
Sergio Belkin
LPIC-2 Certified - http://www.lpi.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Bacula does not create a new volume

Josh Fisher

On 12/21/2016 10:53 AM, Sergio Belkin wrote:

> Hi,
>
> I use bacula 7.0 and I'm testing Volume Recycling, below, the Pool
> configuration:
>
> Pool {
>   Name = TestShortZN
>   Use Volume Once = no
>   Pool Type = Backup
>   LabelFormat = "TestShortZN"
>   AutoPrune = yes
>   Volume Retention =  1h
>   Maximum Volumes = 2
>   Maximum Volume Bytes = 5M
>   Action On Purge = Truncate
>   Recycle = yes
> }
>
> ...
>
>
> Also I have the storage SD config with
>
> Label Media = Yes
>
> Why does bacula not create and label a new volume automatically?

Because in your Pool resource you have specified that the pool contain a
maximum of 2 volumes with the "Maximum Volumes = 2" directive.


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Bacula does not create a new volume

Sergio Belkin-2


2016-12-21 13:16 GMT-03:00 Josh Fisher <[hidden email]>:

On 12/21/2016 10:53 AM, Sergio Belkin wrote:
Hi,

I use bacula 7.0 and I'm testing Volume Recycling, below, the Pool configuration:

Pool {
  Name = TestShortZN
  Use Volume Once = no
  Pool Type = Backup
  LabelFormat = "TestShortZN"
  AutoPrune = yes
  Volume Retention =  1h
  Maximum Volumes = 2
  Maximum Volume Bytes = 5M
  Action On Purge = Truncate
  Recycle = yes
}

...


Also I have the storage SD config with

Label Media = Yes

Why does bacula not create and label a new volume automatically?

Because in your Pool resource you have specified that the pool contain a maximum of 2 volumes with the "Maximum Volumes = 2" directive.


But I'd want that always bacula keeps only 2 volumes, if I don't set "Maximum Volumes", new volumes are created but not recycled, am I missing something?

--
--
Sergio Belkin
LPIC-2 Certified - http://www.lpi.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Bacula does not create a new volume

Dimitri Maziuk
On 12/21/2016 03:22 PM, Sergio Belkin wrote:

> But I'd want that always bacula keeps only 2 volumes, if I don't set
> "Maximum Volumes", new volumes are created but not recycled, am I missing
> something?

What'd you want to achieve? What you have is bacula will create volume
1, then it will create volume 2, and once you got your maxvolumes it'll
start truncating existing ones and writing to volume 1, then volume 2, etc.

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users

signature.asc (197 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bacula does not create a new volume

Ana Emília M. Arruda
In reply to this post by Sergio Belkin-2
Hello Sergio,

You limited the 'Maximum Volume Bytes'  to 5 MB. How much your backup job uses? Is this enough?

If your first job, at 00:00, uses two volumes, since you have 'Maximum Volumes = 2', your second job scheduled to half an hour later will not start because the two volumes created for the first job cannot be reused due to the retention period. And bacula is unable to automatically create because you already reached the limit of 2 volumes in this pool.

Best regards,
Ana

On Wed, Dec 21, 2016 at 10:22 PM, Sergio Belkin <[hidden email]> wrote:


2016-12-21 13:16 GMT-03:00 Josh Fisher <[hidden email]>:

On 12/21/2016 10:53 AM, Sergio Belkin wrote:
Hi,

I use bacula 7.0 and I'm testing Volume Recycling, below, the Pool configuration:

Pool {
  Name = TestShortZN
  Use Volume Once = no
  Pool Type = Backup
  LabelFormat = "TestShortZN"
  AutoPrune = yes
  Volume Retention =  1h
  Maximum Volumes = 2
  Maximum Volume Bytes = 5M
  Action On Purge = Truncate
  Recycle = yes
}

...


Also I have the storage SD config with

Label Media = Yes

Why does bacula not create and label a new volume automatically?

Because in your Pool resource you have specified that the pool contain a maximum of 2 volumes with the "Maximum Volumes = 2" directive.


But I'd want that always bacula keeps only 2 volumes, if I don't set "Maximum Volumes", new volumes are created but not recycled, am I missing something?

--
--
Sergio Belkin
LPIC-2 Certified - http://www.lpi.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users