Hi Martin, Hi @ all!
On 27.02.2018 11:09, Thorsten Johannsen wrote:
On 26.02.2018 15:50, Martin Simmons wrote:
Do you have the same Media Type for all devices? You need to make
the Media
Type unique for each device if the volumes are in different
directories. The
Media Type specified in the Director's Storage resource, must
correspond to
the Media Type specified in the Device resource of the Storage daemon
configuration file.
So I implemented the changes like you suggested (one media type per
directory).
Furthermore I tinkered with the SQL database. Since my Volumes have the
type (FullBackup | DiffBackup | IncBackup) in
the name it required only a few simple queries to get the DB straight:
UPDATE bacula.Media SET MediaType = "MT-heBacula-sd-AC-FullBackup" WHERE
VolumeName LIKE "FullBackup__%";
UPDATE bacula.Media SET MediaType = "MT-heBacula-sd-AC-DiffBackup" WHERE
VolumeName LIKE "DiffBackup__%";
UPDATE bacula.Media SET MediaType = "MT-heBacula-sd-AC-IncBackup" WHERE
VolumeName LIKE "IncBackup__%";
Then I tried to restore the same set of data that gave me trouble about
a week ago:
-------------------------------------------------------------------------------------------------------------------
2018-03-03 20:12:22heBacula-dir JobId 1188: Start Restore Job
Job_RestoreFiles.2018-03-03_20.12.20_08
2018-03-03 20:12:23heBacula-dir JobId 1188: Using Device "AC-FullBackup-Dev01"
to read.
2018-03-03 20:12:23heBacula-sd JobId 1188:Ready to read from volume
"FullBackup__hexbmc02-fd__875__2018-02-04T20.05.13" on File device
"AC-FullBackup-Dev01" (/srv/bacula-sd/AC-FullBackup).
2018-03-03 20:12:23heBacula-sd JobId 1188: Forward spacing Volume
"FullBackup__hexbmc02-fd__875__2018-02-04T20.05.13" to addr=999936268
2018-03-03 20:12:50heBacula-sd JobId 1188: End of Volume at addr=3552030657 on device
"AC-FullBackup-Dev01" (/srv/bacula-sd/AC-FullBackup), Volume
"FullBackup__hexbmc02-fd__875__2018-02-04T20.05.13"
2018-03-03 20:12:50heBacula-sd JobId 1188: acquire.c:114Changing read device. Want Media Type="MT-heBacula-sd-AC-DiffBackup"
have="MT-heBacula-sd-AC-FullBackup"
File device="AC-FullBackup-Dev01" (/srv/bacula-sd/AC-FullBackup)
2018-03-03 20:12:50heBacula-sd JobId 1188:Media Type change. New read File device "AC-DiffBackup-Dev01"
(/srv/bacula-sd/AC-DiffBackup) chosen.
2018-03-03 20:12:51heBacula-sd JobId 1188:Ready to read from volume
"DiffBackup__hexbmc02-fd__1029__2018-02-18T20.00.46" on File device
"AC-DiffBackup-Dev01" (/srv/bacula-sd/AC-DiffBackup).
2018-03-03 20:12:51heBacula-sd JobId 1188: Forward spacing Volume
"DiffBackup__hexbmc02-fd__1029__2018-02-18T20.00.46" to addr=285
2018-03-03 20:12:51heBacula-sd JobId 1188: Elapsed time=00:00:28, Transfer
rate=56.73 M Bytes/second
2018-03-03 20:12:51heBacula-dir JobId 1188: Bacula Enterprise heBacula-dir
8.8.1 (01Mar17):
Build OS: x86_64-redhat-linux-gnu-bacula-enterprise redhat
Enterprise release
JobId: 1188
Job: Job_RestoreFiles.2018-03-03_20.12.20_08
Restore Client: hexbmc02-fd
Start time: 03-Mar-2018 20:12:22
End time: 03-Mar-2018 20:12:51
Files Expected: 21,347
Files Restored: 21,347
Bytes Restored: 1,648,095,283
Rate: 56830.9 KB/s
FD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Restore OK
-------------------------------------------------------------------------------------------------------------------
Everything works like a charm!
Thank you very much again for your valuable input!
Cheers, Thorsten
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users