Job creating multiples new volumes

33 views
Skip to first unread message

Rodrigo Jorge

unread,
Jul 10, 2021, 10:55:02 AM7/10/21
to bareos...@googlegroups.com
Hello guys!

I have a problem when execute parallel jobs are created many new volumes in catalog.

For Example, I ran the jobid 112109 and this job created 19 new volumes.

06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6043" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6044" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6045" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6046" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6047" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6048" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6049" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6050" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6051" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6052" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6053" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6054" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6055" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6056" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6057" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6058" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6059" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6060" in catalog.
06-Jul 20:00 backup01-dir JobId 112109: Created new Volume "diario-DISCO-6061" in catalog.

But using only one volume.

*list jobid=112109
+---------+-------------+----------------+---------------------+------+-------+----------+-------------+-----------+
| JobId   | Name        | Client         | StartTime           | Type | Level | JobFiles | JobBytes    | JobStatus |
+---------+-------------+----------------+---------------------+------+-------+----------+-------------+-----------+
| 112,109 | pmbp-sql-01 | pmbp-sql-01-fd | 2021-07-06 20:00:43 | B    | I     |        6 | 199,093,012 | T         |
+---------+-------------+----------------+---------------------+------+-------+----------+-------------+-----------+

*list jobmedia jobid=112109
+---------+-------------------+------------+-----------+
| JobId   | VolumeName        | FirstIndex | LastIndex |
+---------+-------------------+------------+-----------+
| 112,109 | diario-DISCO-6043 |          1 |         6 |
+---------+-------------------+------------+-----------+

If I execute one job per time I don't have this problem.
I attach the full job execution

My Configs:

Client {
  Name = pmbp-sql-01-fd
  Address = 172.16.123.13
  Password = "PWD"
  @/etc/bareos/bareos-client-common.conf
}

Job {
  Name = "pmbp-sql-01"
  JobDefs = "DefJobsDISCO"
  Schedule = "DISCO_20h_TANDBERG"
  Client = pmbp-sql-01-fd
  Storage = backup-disco
  FileSet = file_pmbp-sql-01
  Client Run Before Job = "E:\bkp_full_pmbp-sql-01.bat"
}

FileSet {
  Name = "file_pmbp-sql-01"
  Enable VSS = yes
  Include {
  Options {
  Signature = MD5
  Drive Type = fixed
  IgnoreCase = yes
  WildFile = "[A-Z]:/pagefile.sys"
  WildDir = "[A-Z]:/RECYCLER"
  WildDir = "[A-Z]:/$RECYCLE.BIN"
  WildDir = "[A-Z]:/System Volume Information"
  Exclude = yes
    }
     File = E:/SQLBackup
  }
}

JobDefs {
 Name = "DefJobsDISCO"
 Type = Backup
 Level = Incremental
 Storage = backup-disco
 Schedule = "DISCO_19h_TANDBERG"
 Messages = Standard
 Accurate = no
 Pool = diario-DISCO
 Priority = 10
 Write Bootstrap = "/var/lib/bareos/%c.bsr"
 Full Backup Pool = semanal-DISCO
 Incremental Backup Pool = diario-DISCO
 Maximum Concurrent Jobs = 10
}

Schedule {
 Name = "DISCO_20h_TANDBERG"
 Run = Incremental 1st mon-fri at 20:00
 Run = Incremental 2nd-5th mon-sat at 20:00
 Run = Full sun at 20:00
 Run = Full Pool=Mensal Storage=TANDBERG 1st sat at 20:00
}

Pool {
 Name = semanal-DISCO
 Pool Type = Backup
 Storage = backup-disco
 AutoPrune = yes
 Action On Purge = Truncate
 Maximum Volume Bytes = 100g
 Maximum Volume Jobs = 10
 Maximum Volumes = 100
 Recycle = yes
 Volume Retention = 31 days
 Volume Use Duration = 12 hours
 File Retention = 31 days
 Job Retention = 31 days
 Label Format = "semanal-DISCO-"
}

Pool {
 Name = diario-DISCO
 Pool Type = Backup
 Storage = backup-disco
 AutoPrune = yes
 Action On Purge = Truncate
 Maximum Volume Bytes = 100g
 Maximum Volume Jobs = 10
 Maximum Volumes = 100
 Recycle = yes
 Volume Retention = 31 days
 Volume Use Duration = 12 hours
 File Retention = 31 days
 Job Retention = 31 days
 Label Format = "diario-DISCO-"
}

Pool {
  Name = Mensal
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Action On Purge = Truncate
  Volume Retention = 3 years
  File Retention = 3 years
  Volume Use Duration = 5 days
  Job Retention = 3 years
}

Storage {
  Name = backup-disco
  Address = srv-backup04
  Password = "PWD"
  Device = backup-disco
  MaximumConcurrentJobs = 8
  Media Type = File
}

Device {
  Name = backup-disco
  Media Type = File
  Archive Device = /mnt/backup-disco
  LabelMedia = no;
  Random Access = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
  Label Media = yes
}


Please help-me find my fault !

Regards,

Rodrigo L L Jorge
job.log

Rodrigo Jorge

unread,
Jul 12, 2021, 10:24:40 AM7/12/21
to bareos...@googlegroups.com
Hello Folks,

This is a BUG or a CONFIG error ? 

Regards,

Rodrigo L L Jorge

Spadajspadaj

unread,
Jul 12, 2021, 10:28:09 AM7/12/21
to bareos...@googlegroups.com

I'd start by checking whether the media files are really created on disk.

Then I'd run the daemon with higher debug level and capture the output.

--
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 bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/CAEQmXaPiOjfacfFvubsS6FXV-B%3DcYaUafftLVcwAmmcSvXyJPg%40mail.gmail.com.

Rodrigo Jorge

unread,
Jul 12, 2021, 10:47:46 AM7/12/21
to Spadajspadaj, bareos...@googlegroups.com
Hi, 

The media was not created on disk, only in the catalog.
And new jobs do not reuse recycled volumes because there are volumes with append status.

Regards,

Rodrigo

Reply all
Reply to author
Forward
0 new messages