Hi,
I had two backup jobs, one for data and one for catalog. All was working ok.
Then I just added VolumeToCatalog verify jobs one for each. Now before backup
jobs, I'm getting "The number of files mismatch" errors. Catalog file count is
always one bigger than the volume. So I update the catalog file count (though
decreasing is not recommended) and make it run the backup&verify jobs. But
again it gives the same error when it comes to next scheduled backup.
Error:
10-May 23:00 nagios.xxx-dir JobId 771: shell command: run BeforeJob
"/etc/bacula/mount.sh"
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Connecting to Director
localhost:9101
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: 1000 OK: nagios.xxx-dir
Version: 5.2.13 (19 February 2013)
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Enter a period to cancel a
command.
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: gui off
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: You have messages.
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: @#
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: @# Kartus mount ediyorum
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: @#
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: mount
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Automatically selected
Catalog: MyCatalog
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Using Catalog "MyCatalog"
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Automatically selected
Storage: TAPE
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Connecting to Storage daemon
TAPE at nagios.xxx:9103 ...
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: 3998 Device ""TAPE"
(/dev/st0)" is not an autochanger.
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Enter autochanger drive[0]: .
10-May 23:00 nagios.xxx-dir JobId 771: BeforeJob: Enter autochanger slot:
@output /dev/null
10-May 23:00 nagios.xxx-dir JobId 771: Start Backup JobId 771,
Job=BackupDaily.2016-05-10_23.00.00_38
10-May 23:00 nagios.xxx-dir JobId 771: Using Device "TAPE" to write.
10-May 23:00 nagios.xxx-sd JobId 771: Volume "yedek-0041" previously written,
moving to end of data.
10-May 23:00 nagios.xxx-sd JobId 771: Error: Bacula cannot write on tape Volume
"yedek-0041" because:
The number of files mismatch! Volume=163 Catalog=164
10-May 23:00 nagios.xxx-sd JobId 771: Marking Volume "yedek-0041" in Error in
Catalog.
10-May 23:01 nagios.xxx-dir JobId 771: Created new Volume "yedek-0060" in
catalog.
10-May 23:01 nagios.xxx-sd JobId 771: Please mount append Volume "yedek-0060"
or label a new one for:
Here're the related parts of the conf files. Any help woul be appreciated.
Btw,
bacula-dir:
Job {
Name = "BackupCatalog"
Level = Full
FileSet="Catalog"
Schedule = "DailyFull"
Storage = TAPE
Type = Backup
Client=nagios.xxx-fd
RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 10
Messages = Standard
Pool = TAPE
RunBeforeJob = "/etc/bacula/mount.sh"
}
Job {
Name = "BackupCatalogVerify"
Level = VolumeToCatalog
FileSet="Catalog"
Schedule = "DailyFullVerify"
Storage = TAPE
Type = Verify
VerifyJob = "BackupCatalog"
Client=nagios.xxx-fd
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 11
Messages = Standard
Pool = TAPE
}
FileSet {
Name = "Catalog"
Include {
Options {
Signature = SHA1
verify = pins1
recurse = yes
sparse = yes
check file changes = yes
ignore case = yes
}
File = "/var/spool/bacula/bacula.sql"
}
}
Schedule {
Name = "DailyFull"
Run = Level=Full Pool=TAPE mon-sun at 23:30
}
Schedule {
Name = "DailyFullVerify"
Run = Pool=TAPE on mon-sun at 08:00
}
##Daily Backup##
Job {
Name = "BackupDaily"
Level = Incremental
FileSet="BackupDaily"
Schedule = "MonthlyDiff"
Storage = TAPE
Type = Backup
Client=nagios.xxx-fd
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 10
Messages = Standard
Pool = TAPE
RunBeforeJob = "/etc/bacula/mount.sh"
}
##Daily Backup Verify##
Job {
Name = "BackupDailyVerify"
Level = VolumeToCatalog
FileSet="BackupDaily"
Schedule = "MonthlyDiffVerify"
Storage = TAPE
Type = Verify
VerifyJob = "BackupDaily"
Client=nagios.xxx-fd
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 11
Messages = Standard
Pool = TAPE
}
##DailyBackup & DailyBackupVerify##
FileSet {
Name = "BackupDaily"
Include {
Options {
Compression=GZIP
Signature = SHA1
verify = pins1
recurse = yes
sparse = yes
check file changes = yes
ignore case = yes
}
File = /bacula/backup/buay/.
}
Exclude {
File = /.journal
File = /.fsck
}
}
Schedule {
Name = "MonthlyDiff"
Run = Level=Full Pool=TAPE on 1 at 23:00
Run = Level=Incremental Pool=TAPE on 2-31 at 23:00
}
Schedule {
Name = "MonthlyDiffVerify"
Run = Pool=TAPE on mon-sun at 06:00
}
bacula-sd:
Device {
Name = TAPE
Media Type = LTO-4
Archive Device = /dev/st0
AutomaticMount = yes
AlwaysOpen = yes
Offline On Unmount = no
Hardware End of Medium = yes
BSF at EOM = yes
Backward Space Record = yes
Fast Forward Space File = yes
TWO EOF = no
LabelMedia = yes
}
Btw, after getting this error, I changed TWO EOF setting to no. It was yes
before. But no change, same error.
Thanks,
Orhan
+----------------------------------------------------------------------
|This was sent by ogiraz AT kepkur.com DOT tr via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|