Re: [Bacula-users] Storage Management

2022-11-23 Thread Chris Miller
If your volumes were allowed to fill the disk to 100%, that might be part
of your problem. Your (max volumes * volume size) should leave some buffer
space on the disk allocated to Bacula. If your working directory is on the
same disk, you need to be even more generous with that buffer (I often use
a separate disk for this). Also your sql database should be on a different
volume. All these can cumulatively exceed your storage limit.

I ran into this problem before, but I don't recall exactly how I fixed
it, so I'll just talk about this out loud here. The retention time may need
to be adjusted on a per client basis in addition to a global value,
otherwise this may be holding the volumes as in-use. Beyond changing your
retention time, you probably need to restart bacula if you haven't already.

You need to get the oldest backups in the database to reflect (fall outside
of) the updated retention period through the console (this should be a
function of the retention time updates to the client definitions). Bacula
has a notion of "recycling" volumes, but it won't delete them. This is one
of those "you never want to get here" kind of things.

Once you can "expire" (not a Bacula term) the oldest backups, you should
end up with one or more volumes which can be recycled, they will show a
"purged" status in the console I believe. If any backup is still valid, it
will hold that volume as in-use.  Once the target volume is reported as
"Purged" you can use the "delete volume" command, and hopefully you are
good to go.

On a related note, with respect to pruning, this does not recover space or
delete volumes which it seems you may need to do. From the manual

:

"By setting AutoPrune to yes you will permit Bacula to automatically prune
all Volumes in the Pool when a Job needs another Volume. Volume pruning
means removing records from the catalog. It does not shrink the size of the
Volume or affect the Volume data until the Volume gets overwritten. When a
Job requests another volume and there are no Volumes with Volume Status
Append available, Bacula will begin volume pruning. This means that all
Jobs that are older than the VolumeRetention period will be pruned from
every Volume that has Volume Status Full or Used and has Recycle set to
yes. Pruning consists of deleting the corresponding Job, File, and JobMedia
records from the catalog database. No change to the physical data on the
Volume occurs during the pruning process. When all files are pruned from a
Volume (i.e. no records in the catalog), the Volume will be marked as
Purged implying that no Jobs remain on the volume."

I hope this helps.

Chris

On Wed, Nov 23, 2022 at 9:47 AM Nick Bright  wrote:

> Greetings,
>
> I'm new to Bacula, and haven't used tape based backups before (though
> I've used BackupPC for many years.) I'm running Bacula 11.0.6 on Debian 11.
>
> Currently I'm backing up about 30 servers to Bacula, and this seems to
> be working well; however I've filled up my 17TB of disk, and backups are
> now failing citing that there are no available volumes to append to.
>
> I've spent the morning searching for various storage space management
> strategies within Bacula, but not finding anything useful. I suspect my
> failure to find useful information may be that I don't know enough about
> what needs to happen to properly phrase the questions I need to be
> asking - results have centered around truncating volumes, but all
> command just return essentially 'nothing to truncate'.
>
> Speculating this has to do with retention, I turned my retention for
> both Jobs and Files down to 7 days, but still 'nothing to truncate' is
> the output.
>
> Specifically running the bconsole command "prune expired volume yes"
> results in all Volumes reporting "Found no Job associated with the
> Volume to prune", and the bconsole command "purge volume action=truncate
> allpools storage=File1" reports "No Volumes found to perform the command"
>
> Adding storage isn't a tenable solution (all disk bays are full), so I
> would appreciate any specific recommendations for storage management
> strategies.
>
> Thanks,
>
> --
> -
> -  Nick Bright  -
> -  KwiKom Communications-
> -  Office 800-379-7292  -
> -  Direct 620-228-5653  -
> -  Web https://www.kwikom.com/  -
> -
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 

Regards,
Chris

*We do the things you want to do and don't know how*
*We do the things you know how to do and don't have the time*

Chris MillerCEORocket Scientist831.480.7199 (office)831.428.2556 (cell)


  

[Bacula-users] Community Binaries for 11.0.5?

2022-06-21 Thread Chris Miller
I am aware the bacula.org website was undergoing some maintenance which
broke access to the Apt repo for the community binaries. It appears this
was restored since Jun 9th, however the newest repo is for 11.0.2. We
previously installed systems from this repo using 11.0.5 so it looks like
these have not been uploaded yet (or this was overlooked). We have a new
system at risk in which we need to install 11.0.5 and have been waiting
patiently, but just want to make sure this is one someone's radar.

Regards,
Chris

*We do the things you want to do and don't know how*
*We do the things you know how to do and don't have the time*

Chris MillerCEORocket Scientist831.480.7199 (office)831.428.2556 (cell)


  
  Let's talk! ⤴
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users