Hello Andrea,

You have 1 job per volume and automatic pruning and recycling enabled. If
the only job in the volume is deleted from the Catalog, the recycling
algorithm will detect it and the volume will be marked as Purged and
reused. Is it happening with all volumes or only a few cases? Are you
manually deleting jobs from the Catalog?

Best,
Ana

El sáb., 2 sept. 2023 17:04, Andrea Venturoli <m...@netfence.it> escribió:

> On 9/2/23 12:30, Andrea Venturoli wrote:
> > Hello.
> >
> > I've been using bacula for a long long time, but I can't seem to
> > understand why, in a specific installation, volumes are recycled before
> > I think they should.
> > The only difference from several other installation, is the use of S3
> > cloud plugin.
> >
> > So:
> >
> > _ Bacula version is 11.0.6;
> >
> > _ excerpts from bacula-dir.conf:
> >> Client {
> >>   Name=...
> >>   Address=...
> >>   FDPort = 9102
> >>   Catalog = MyCatalog
> >>   Password="..."
> >>   File Retention=3 months
> >>   Job Retention=3 months
> >>   AutoPrune = yes
> >> }
> >> Pool {
> >>   Name = Full
> >>   Pool Type = Backup
> >>   Recycle = yes
> >>   AutoPrune = yes
> >>   Maximum Volume Bytes = 50G
> >>   Maximum Volume Jobs=1
> >>   Label Format = "Full"
> >>   Volume Retention=3 months
> >>   Cache retention=31 days
> >>   Action On Purge=Truncate
> >> }
> >
> > _ from the DB:
> >> select volumename,volretention/60/60/24 from media where volumename
> >> like 'Full%';
> >>  volumename | ?column? ------------+----------
> >>  Full0021   |       90
> >>  Full0025   |       90
> >>  Full0026   |       90
> >>  Full0117   |       90
> >>  Full0112   |       90
> >>  Full0152   |       90
> >>  Full0111   |       90
> >>  Full0116   |       90
> >
> > _ yesterday I had:
> >> ls -lt|grep Full
> >> drwxr----- 2 bacula bacula 512 Aug 30 22:45 Full0111
> >> drwxr----- 2 bacula bacula 25600 Aug 8 22:45 Full0026
> >> drwxr----- 2 bacula bacula 512 Aug 7 22:45 Full0025
> >> drwxr----- 2 bacula bacula 21504 Aug 4 23:53 Full0116
> >> drwxr----- 2 bacula bacula 512 Aug 4 22:33 Full0112
> >> drwxr----- 2 bacula bacula 512 Jul 9 22:45 Full0021
> >> drwxr----- 2 bacula bacula 25088 Jul 4 22:45 Full0152
> >> drwxr----- 2 bacula bacula 512 Jul 3 22:45 Full0117
> >
> > _ today the volumes from July were recycled:
> >> ls -lt | grep Full
> >> drwxr----- 2 bacula bacula 21504 Sep 1 23:55 Full0152
> >> drwxr----- 2 bacula bacula 512 Sep 1 22:33 Full0117
> >> drwxr----- 2 bacula bacula 512 Aug 30 22:45 Full0111
> >> drwxr----- 2 bacula bacula 25600 Aug 8 22:45 Full0026
> >> drwxr----- 2 bacula bacula 512 Aug 7 22:45 Full0025
> >> drwxr----- 2 bacula bacula 21504 Aug 4 23:53 Full0116
> >> drwxr----- 2 bacula bacula 512 Aug 4 22:33 Full0112
> >> drwxr----- 2 bacula bacula 512 Jul 9 22:45 Full0021
> >
> >
> > Any idea why this happens?
>
> P.S.
> In the last job's mail I see:
> >  There are no more Jobs associated with Volume "Full0117". Marking it
> purged.
>
> So it seems job retention is the problem, not volume retention.
>
>
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to