You need to make a special job with Type = Verify and run that.

__Martin


>>>>> On Fri, 11 Jun 2021 11:07:01 +0200, Pierre Bernhardt said:
> 
> Hello,
> 
> I use Debian Buster with Bacula 9.4.2 with latest debian packages on the 
> related systems.
> 
> I want to check the DiskToCatalog and VolumeToCatalog feature to check the 
> entries in
> the database against the files on my disks and on my backup volumes.
> 
> By the way I have a job 3-level-jobs running (Monthly full, Weekly Diff and 
> Daily Incremental)
> where Monthly and Weekly are backup on LTO-4 and Daily on Disk based 
> Backupfile.
> 
> The backup and restore was mostly ok for the past also for full restore from 
> a all three
> level.
> 
> Here an example with the latest full backup:
> 
> Backup:
> Log records for job 53121
> 2021-06-06 23:50:00
> backup-dir
> Start Backup JobId 53121, Job=backup_full.2021-06-06_23.50.00_25
> 2021-06-06 23:50:01
> backup-sd
> 3307 Issuing autochanger "unload Volume LTO40077, Slot 19, Drive 1" command.
> 2021-06-06 23:53:56
> backup-dir
> Using Device "HPUltrium4-2" to write.
> 2021-06-06 23:53:57
> backup-sd
> 3304 Issuing autochanger "load Volume LTO40073, Slot 4, Drive 1" command.
> 2021-06-06 23:55:30
> backup-sd
> 3305 Autochanger "load Volume LTO40073, Slot 4, Drive 1", status is OK.
> 2021-06-06 23:55:38
> backup-sd
> Volume "LTO40073" previously written, moving to end of data.
> 2021-06-06 23:57:53
> backup-sd
> Spooling data ...
> 
> 
> Ready to append to end of Volume "LTO40073" at file=470.
> 2021-06-06 23:59:40
> backup-fd
>      /var/lib/postgresql is a different filesystem. Will not descend from / 
> into it.
> 2021-06-07 00:24:01
> backup-fd
>      /run is a different filesystem. Will not descend from / into it.
> 2021-06-07 00:25:56
> backup-fd
>      /var/lib/postgresql is a different filesystem. Will not descend from 
> /var into it.
> 2021-06-07 00:35:20
> backup-sd
> Committing spooled data to Volume "LTO40073". Despooling 4,171,824,686 bytes 
> ...
> 2021-06-07 00:37:18
> backup-sd
> Despooling elapsed time = 00:01:58, Transfer rate = 35.35 M Bytes/second
> 
> 
> Elapsed time=00:39:25, Transfer rate=1.759 M Bytes/second
> 
> 
> Sending spooled attrs to the Director. Despooling 20,844,697 bytes ...
> 2021-06-07 01:00:40
> backup-dir
> Bacula backup-dir 9.4.2 (04Feb19):
>   Build OS:               x86_64-pc-linux-gnu debian 10.5
>   JobId:                  53121
>   Job:                    backup_full.2021-06-06_23.50.00_25
>   Backup Level:           Full
>   Client:                 "backup-fd" 9.4.2 (04Feb19) 
> x86_64-pc-linux-gnu,debian,10.5
>   FileSet:                "Full Set" 2017-10-09 08:53:50
>   Pool:                   "Monthly" (From Job FullPool override)
>   Catalog:                "MyCatalog" (From Client resource)
>   Storage:                "FibreCAT TX48 S2" (From Pool resource)
>   Scheduled time:         06-Jun-2021 23:50:00
>   Start time:             06-Jun-2021 23:53:56
>   End time:               07-Jun-2021 01:00:39
>   Elapsed time:           1 hour 6 mins 43 secs
>   Priority:               9
>   FD Files Written:       86,324
>   SD Files Written:       86,324
>   FD Bytes Written:       4,125,513,811 (4.125 GB)
>   SD Bytes Written:       4,160,381,028 (4.160 GB)
>   Rate:                   1030.6 KB/s
>   Software Compression:   76.1% 4.2:1
>   Comm Line Compression:  None
>   Snapshot/VSS:           no
>   Encryption:             yes
>   Accurate:               yes
>   Volume name(s):         LTO40073
>   Volume Session Id:      688
>   Volume Session Time:    1617149650
>   Last Volume Bytes:      482,907,608,064 (482.9 GB)
>   Non-fatal FD errors:    0
>   SD Errors:              0
>   FD termination status:  OK
>   SD termination status:  OK
>   Termination:            Backup OK
> 
> Now to run a verify against the disk:
> 
> *run job=web_server jobid=53121 level=DiskToCatalog
> Run Backup job
> JobName:  web_server
> Level:    DiskToCatalog
> Client:   web-fd
> FileSet:  Server Set
> Pool:     Daily (From Job resource)
> Storage:  Disk2 (From Pool resource)
> When:     2021-06-11 10:32:01
> Priority: 9
> OK to run? (yes/mod/no):
> Job queued. JobId=53191
> 
> backup-dir Fatal error: fd_cmds.c:377 Unimplemented backup level 100 d
>  Using Device "DiskStorage2" to write.
>  Start Backup JobId 53191, Job=web_server.2021-06-11_10.32.03_43
> backup-dir Fatal error: Network error with FD during Backup: ERR=Interrupted 
> system call
> backup-dir
> Error: Bacula backup-dir 9.4.2 (04Feb19):
>   Build OS:               x86_64-pc-linux-gnu debian 10.5
>   JobId:                  53191
>   Job:                    web_server.2021-06-11_10.32.03_43
>   Backup Level:           DiskToCatalog
>   Client:                 "web-fd" 9.4.2 (04Feb19) 
> x86_64-pc-linux-gnu,debian,10.5
>   FileSet:                "Server Set" 2014-11-05 16:31:47
>   Pool:                   "Daily" (From Job resource)
>   Catalog:                "MyCatalog" (From Client resource)
>   Storage:                "Disk2" (From Pool resource)
>   Scheduled time:         11-Jun-2021 10:32:01
>   Start time:             11-Jun-2021 10:32:05
>   End time:               11-Jun-2021 10:36:06
>   Elapsed time:           4 mins 1 sec
>   Priority:               9
>   FD Files Written:       0
>   SD Files Written:       0
>   FD Bytes Written:       0 (0 B)
>   SD Bytes Written:       0 (0 B)
>   Rate:                   0.0 KB/s
>   Software Compression:   None
>   Comm Line Compression:  None
>   Snapshot/VSS:           no
>   Encryption:             no
>   Accurate:               yes
>   Volume name(s):
>   Volume Session Id:      741
>   Volume Session Time:    1617149650
>   Last Volume Bytes:      961,955,455,811 (961.9 GB)
>   Non-fatal FD errors:    1
>   SD Errors:              0
>   FD termination status:  Error
>   SD termination status:  Waiting on FD
>   Termination:            *** Backup Error ***
>  Fatal error: No Job status returned from FD.
> 
> 
> The interesting information is
> 
> backup-dir Fatal error: fd_cmds.c:377 Unimplemented backup level 100 d
> 
> So I want to ask what is wrong? Must I add a special job for verify or can I 
> use simply the same backup job?
> 
> With level=VolumeToCatalog I get the same error:
> 
> Run Backup job
> JobName:  web_server
> Level:    VolumeToCatalog
> Client:   web-fd
> FileSet:  Server Set
> Pool:     Daily (From Job resource)
> Storage:  Disk2 (From Pool resource)
> When:     2021-06-11 10:53:01
> Priority: 9
> OK to run? (yes/mod/no):
> Job queued. JobId=53193
> 
> backup-dir Fatal error: fd_cmds.c:377 Unimplemented backup level 79 O
>  Using Device "DiskStorage2" to write.
>  Start Backup JobId 53193, Job=web_server.2021-06-11_10.53.03_47
> backup-dir Fatal error: Network error with FD during Backup: ERR=Interrupted 
> system call
> backup-dir Fatal error: No Job status returned from FD.
> backup-dir
> Error: Bacula backup-dir 9.4.2 (04Feb19):
>   Build OS:               x86_64-pc-linux-gnu debian 10.5
>   JobId:                  53193
>   Job:                    web_server.2021-06-11_10.53.03_47
>   Backup Level:           VolumeToCatalog
>   Client:                 "web-fd" 9.4.2 (04Feb19) 
> x86_64-pc-linux-gnu,debian,10.5
>   FileSet:                "Server Set" 2014-11-05 16:31:47
>   Pool:                   "Daily" (From Job resource)
>   Catalog:                "MyCatalog" (From Client resource)
>   Storage:                "Disk2" (From Pool resource)
>   Scheduled time:         11-Jun-2021 10:53:01
>   Start time:             11-Jun-2021 10:53:06
>   End time:               11-Jun-2021 10:57:07
>   Elapsed time:           4 mins 1 sec
>   Priority:               9
>   FD Files Written:       0
>   SD Files Written:       0
>   FD Bytes Written:       0 (0 B)
>   SD Bytes Written:       0 (0 B)
>   Rate:                   0.0 KB/s
>   Software Compression:   None
>   Comm Line Compression:  None
>   Snapshot/VSS:           no
>   Encryption:             no
>   Accurate:               yes
>   Volume name(s):
>   Volume Session Id:      743
>   Volume Session Time:    1617149650
>   Last Volume Bytes:      961,955,455,811 (961.9 GB)
>   Non-fatal FD errors:    1
>   SD Errors:              0
>   FD termination status:  Error
>   SD termination status:  Waiting on FD
>   Termination:            *** Backup Error ***
> 
> Cheers,
> Pierre
> 
> 
> 
> _______________________________________________
> 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