Not related, but what most likely happened is that it cannot find the 
volume you deleted and bareos had plans to write into it. Even though it 
was yet unused, the record of that media was in the DB. (I am speculating 
here based on what you describe)

The easiest option is to create a volume with the same name.

Do a "status storage" in bconsole, then select the storage name and it most 
likely will tell you what the storage daemon is expecting to write to. 
Create a volume in that pool with the same name.

If you deleted volumes, please make sure you also delete volumes from your 
DB by issuing:

"delete volume" in bconsole.

On Thursday, November 9, 2023 at 10:54:43 AM UTC+1 Yariv Hazan wrote:

> I'm not sure its related but using bconsole I have deleted an empty unused 
> volume restarted director and now I get this error running jobs:
>
> bareos-sd JobId 663: Job wpcoreopswat01_job_D.2023-11-09_11.42.35_06 is 
> waiting. Cannot find any appendable volumes.
> Please use the "label" command to create a new Volume for:
> Storage: "FileStorage" (/var/lib/bareos/storage)
> Pool: DailyFullCyclePool
> Media type: File
>
> Runing label in bconsole and creating a new volume in  DailyFullCyclePool 
> does not seem to solve the problem.
>
> On Thursday, November 9, 2023 at 11:51:37 AM UTC+2 Yariv Hazan wrote:
>
>> Great so fixed and let it run see how it goes.
>>
>>
>> On Thursday, November 9, 2023 at 10:50:42 AM UTC+2 Miguel Santos wrote:
>>
>>> Sorry about that, yes, the name of the pools is all mixed up since the 
>>> beginning when I sent the first message.
>>>
>>> But the fix should be self explanatory.
>>>
>>>   Run = Level=Full Pool=DailyFullCyclePool 
>>> FullPool=DailyFullCyclePool  mon-sat at 22:00
>>>
>>>   Run = Level=Full Pool=WeeklyFullCyclePool 
>>> FullPool=WeeklyFullCyclePool  2nd-5th sun at 22:00
>>>
>>>   Run = Level=Full Pool=MonthlyFullCyclePool 
>>> FullPool=MonthlyFullCyclePool  1st sun at 22:00
>>>
>>> On Thursday, November 9, 2023 at 9:04:48 AM UTC+1 Yariv Hazan wrote:
>>>
>>>> This looks OK, but maybe its the naming is the issue.
>>>> What pool should hold which backups?
>>>> DailyFullCyclePool should hold mon-sat at 22:00
>>>> MonthlyFullCyclePool  should hold 1st sun at 22:00
>>>> Right?
>>>>
>>>> On Tuesday, November 7, 2023 at 4:15:16 PM UTC+2 Miguel Santos wrote:
>>>>
>>>>> I think I have seen this before and probably it may be a bug, but I 
>>>>> have not had the initiative to look further.
>>>>>
>>>>> So, what I believe is happening is that the Pool is taken from either 
>>>>> the defaults.
>>>>>
>>>>> Can you try to change the schedule so it ends up like this?
>>>>>
>>>>> Schedule {
>>>>>
>>>>>   Name = CustomCycle
>>>>>
>>>>>   Run = Level=Full Pool=DailyFullCyclePool 
>>>>> *FullPool=DailyFullCyclePool*  1st sun at 22:00
>>>>>
>>>>>   Run = Level=Full Pool=WeeklyFullCyclePool 
>>>>> *FullPool=WeeklyFullCyclePool*  2nd-5th sun at 22:00
>>>>>
>>>>>   Run = Level=Full Pool=MonthlyFullCyclePool 
>>>>> *FullPool=MonthlyFullCyclePool*  mon-sat at 22:00
>>>>> }
>>>>>
>>>>> Just adding FullPool to the schedule.
>>>>>
>>>>> Good luck.
>>>>>
>>>>>
>>>>> On Tuesday, November 7, 2023 at 3:01:29 PM UTC+1 Yariv Hazan wrote:
>>>>>
>>>>>> Hi Guys,
>>>>>>
>>>>>> I did as per your help and created the files per your examples thank 
>>>>>> you so much.
>>>>>>
>>>>>> I can see the bold letering and also updated the volumes, thanks! 
>>>>>>
>>>>>> Seems backups are being saved to an old volume Monthly-0006 , meaning 
>>>>>> they are not written to a new Daily-XXXX that is supposed to be created.
>>>>>>
>>>>>> Please see my configuration:
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Job {
>>>>>>
>>>>>>   Name = "lpsoar01_job_D"
>>>>>>
>>>>>>   JobDefs = "DailyJobDefs"
>>>>>>
>>>>>>   FileSet = "lpsoar01_fileset"
>>>>>>
>>>>>>   Schedule = "CustomCycle"
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Job {
>>>>>>
>>>>>>    Name = "lpsyslog01_job_D"
>>>>>>
>>>>>>    JobDefs = "DailyJobDefs"
>>>>>>
>>>>>>    FileSet = "lpsyslog01_fileset"
>>>>>>
>>>>>>    Schedule = "CustomCycle"
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>>  
>>>>>>
>>>>>> JobDefs {
>>>>>>
>>>>>>   Name = "DailyJobDefs"
>>>>>>
>>>>>>   Type = Backup
>>>>>>
>>>>>>   Level = Full
>>>>>>
>>>>>>   Client = bareos-fd
>>>>>>
>>>>>>   Schedule = "CustomCycle"   ß--------------I’ve changed this line
>>>>>>
>>>>>>   Storage = File
>>>>>>
>>>>>>   Messages = Standard
>>>>>>
>>>>>>   Pool = DailyFullCyclePool
>>>>>>
>>>>>>   Priority = 10
>>>>>>
>>>>>>   Write Bootstrap = "/var/lib/bareos/%c.bsr"
>>>>>>
>>>>>>   Full Backup Pool = DailyFullCyclePool    # write Full Backups into 
>>>>>> "Full-Pool" Pool
>>>>>>
>>>>>>   Differential Backup Pool = Differential  # write Diff Backups into 
>>>>>> "Differential" Pool
>>>>>>
>>>>>>   Incremental Backup Pool = Incremental    # write Incr Backups into 
>>>>>> "Incremental" Pool
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Pool {
>>>>>>
>>>>>>   Name = DailyFullCyclePool
>>>>>>
>>>>>>   Pool Type = Backup
>>>>>>
>>>>>>   Recycle = yes
>>>>>>
>>>>>>   AutoPrune = yes
>>>>>>
>>>>>>   Volume Retention = 7 days
>>>>>>
>>>>>>   Maximum Volume Jobs = 1
>>>>>>
>>>>>>   Label Format = Daily-
>>>>>>
>>>>>>   Maximum Volumes = 7
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Pool {
>>>>>>
>>>>>>   Name = WeeklyFullCyclePool
>>>>>>
>>>>>>   Pool Type = Backup
>>>>>>
>>>>>>   Recycle = yes
>>>>>>
>>>>>>   AutoPrune = yes
>>>>>>
>>>>>>   Volume Retention = 31 days
>>>>>>
>>>>>>   Maximum Volume Jobs = 100
>>>>>>
>>>>>>   Label Format = Weekly-
>>>>>>
>>>>>>   Maximum Volumes = 5
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Pool {
>>>>>>
>>>>>>   Name = MonthlyFullCyclePool
>>>>>>
>>>>>>   Pool Type = Backup
>>>>>>
>>>>>>   Recycle = yes
>>>>>>
>>>>>>   AutoPrune = yes
>>>>>>
>>>>>>   Volume Retention = 181 days
>>>>>>
>>>>>>   Maximum Volume Jobs = 100
>>>>>>
>>>>>>   Label Format = Monthly-
>>>>>>
>>>>>>   Maximum Volumes = 6
>>>>>>
>>>>>> }
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Schedule {
>>>>>>
>>>>>>   Name = CustomCycle
>>>>>>
>>>>>>   Run = Level=Full Pool=DailyFullCyclePool 1st sun at 
>>>>>> 22:00                          ßChanged this line according to my 
>>>>>> existing pool
>>>>>>
>>>>>>   Run = Level=Full Pool=WeeklyFullCyclePool 2nd-5th sun at 
>>>>>> 22:00             ß Changed this line according to my existing pool
>>>>>>
>>>>>>   Run = Level=Full Pool=MonthlyFullCyclePool mon-sat at 
>>>>>> 22:00                  ß Changed this line according to my existing 
>>>>>> pool
>>>>>>
>>>>>> }
>>>>>>
>>>>>> On Sunday, October 29, 2023 at 12:25:36 PM UTC+2 Yariv Hazan wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>> My retention is pretty simple(?) I have only full backups and I need 
>>>>>>> to keep backups for
>>>>>>> Last 6 daily backups for a week
>>>>>>> Last 4 weekly backups for a month
>>>>>>> Last 6 monthly backups for 6 months.
>>>>>>>
>>>>>>> But:
>>>>>>> 1. All backups are kept for much longer without being pruned.
>>>>>>> 2. A daily backup volume is created every day but older daily backup 
>>>>>>> volume are used instead.
>>>>>>>
>>>>>>> I run version 22.1.1~pre26.eeec2501e without any changes to defaults.
>>>>>>>
>>>>>>> Here is an examples of my configuration:
>>>>>>>
>>>>>>> Job {
>>>>>>>   Name = "lpsoar01_job_D"
>>>>>>>   JobDefs = "DailyJobDefs"
>>>>>>>   FileSet = "lpsoar01_fileset"
>>>>>>>   Schedule = "DailyFullCycle"
>>>>>>> }
>>>>>>>
>>>>>>> JobDefs {
>>>>>>>   Name = "DailyJobDefs"
>>>>>>>   Type = Backup
>>>>>>>   Level = Full
>>>>>>>   Client = bareos-fd
>>>>>>>   Schedule = "DailyFullCycle"
>>>>>>>   Storage = File
>>>>>>>   Messages = Standard
>>>>>>>   Pool = DailyFullCyclePool
>>>>>>>   Priority = 10
>>>>>>>   Write Bootstrap = "/var/lib/bareos/%c.bsr"
>>>>>>>   Full Backup Pool = DailyFullCyclePool                 # write Full 
>>>>>>> Backups into "Full-Pool" Pool
>>>>>>>   Differential Backup Pool = Differential  # write Diff Backups into 
>>>>>>> "Differential" Pool
>>>>>>>   Incremental Backup Pool = Incremental    # write Incr Backups into 
>>>>>>> "Incremental" Pool
>>>>>>> }
>>>>>>>
>>>>>>> Pool {
>>>>>>>   Name = DailyFullCyclePool
>>>>>>>   Pool Type = Backup
>>>>>>>   Recycle = yes
>>>>>>>   AutoPrune = yes
>>>>>>>   Volume Retention = 7 days
>>>>>>>   Maximum Volume Jobs = 100
>>>>>>>   Label Format = Daily-
>>>>>>>   Maximum Volumes = 40
>>>>>>> }
>>>>>>>
>>>>>>> What am I doing wrong here?
>>>>>>> Thanks,
>>>>>>> Yariv
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/2db5d25c-67ca-42ae-9a7e-e41ec6f5a556n%40googlegroups.com.

Reply via email to