Label Format = "${JobId}-${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${Level}"
Some times, one storage becomes blocked, waiting for a volume that was already created, and I have to manually create an other volume so as to continue. I am trying to solve this problem, so no manual intervention will be required.
I can see this logs:
#####################
29-Aug 00:17 SERVER1-dir JobId 2090: Start Backup JobId 2090, Job=Backup-SERVER2_mysql.2016-08-29_00.01.00_08
29-Aug 00:17 SERVER1-dir JobId 2090: Created new Volume "2090-Backup-SERVER2_mysql-2016-08-29-Differential" in catalog.
29-Aug 00:17 SERVER1-dir JobId 2090: Using Device "FileStorage" to write.
29-Aug 00:17 SERVER2-fd JobId 2090: shell command: run ClientBeforeJob "/etc/bareos/scripts/mysqldump_crea.sh"
29-Aug 00:17 SERVER2-fd JobId 2090: ClientBeforeJob: mysql: [Warning] Using a password on the command line interface can be insecure.
29-Aug 00:17 SERVER2-fd JobId 2090: ClientBeforeJob: mysqldump: [Warning] Using a password on the command line interface can be insecure.
29-Aug 00:20 SERVER2-fd JobId 2090: ClientBeforeJob: mysqldump: [Warning] Using a password on the command line interface can be insecure.
29-Aug 00:20 SERVER1-dir JobId 2090: Error: sql_create.c:450 Volume "2090-Backup-SERVER2_mysql-2016-08-29-Differential" already exists.
29-Aug 00:20 SERVER1-dir JobId 2090: Error: sql_create.c:450 Volume "2090-Backup-SERVER2_mysql-2016-08-29-Differential" already exists.
29-Aug 00:20 SERVER1-sd JobId 2090: Job Backup-SERVER2_mysql.2016-08-29_00.01.00_08 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "FileStorage" (/data/bareos)
Pool: Pool-Diff
Media type: File
29-Aug 00:30 SERVER1-dir JobId 2090: Error: sql_create.c:450 Volume "2090-Backup-SERVER2_mysql-2016-08-29-Differential" already exists.
#####################
And via bconsole I get this status storage:
#####################
Device status:
Device "FileStorage" (/data/bareos) is not open.
Device is BLOCKED waiting to create a volume for:
Pool: Pool-Diff
Media type: File
#####################
The file was not created, but the volume exists in the database. I really have no clue...
Thanks.