I suspect that you used the same Media Type for Volumes in both autochangers.

Each autochanger must have a unique Media Type so that Bacula can figure out in which autochange each volume is located.

Best regards,
Kern

On 07/17/2018 01:57 PM, Christoph Litauer wrote:
Dear bacula users,

using bacula 9.0.4.

My situation: I have two nearly identical LTO-6 libraries. I use "Neo400" for Full backups "FlexStorII" for Diff backups. bacula-sd.conf is attached.

Preparing a restore that needs a full and a diff backup I get the output:

The Job will require the following (*=>InChanger):
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================

   *LTO6-020                  Neo400                    Neo400
   *LTO6-002                  FlexStorII                FlexStor2

Volumes marked with "*" are in the Autochanger.


So LTO6-020 (Full) is in Neo400 while LTO6-002 is in FlexStorII. Both are available. 
Starting the restore leads to:

17-Jul 12:40 bacula-dir JobId 1016825: Start Restore Job RestoreFiles.2018-07-17_12.40.22_19
17-Jul 12:40 bacula-dir JobId 1016825: Using Device "LTO6-1" to read.
17-Jul 12:40 bacula-sd JobId 1016825: 3307 Issuing autochanger "unload Volume LTO6-002, Slot 3, Drive 1" command.
17-Jul 12:40 bacula-sd JobId 1016825: 3304 Issuing autochanger "load Volume LTO6-020, Slot 20, Drive 1" command.
17-Jul 12:41 bacula-sd JobId 1016825: 3305 Autochanger "load Volume LTO6-020, Slot 20, Drive 1", status is OK.
17-Jul 12:41 bacula-sd JobId 1016825: Ready to read from volume "LTO6-020" on Tape device "LTO6-1" (/dev/tape/by-id/scsi-35000e11150246004-nst).
17-Jul 12:41 bacula-sd JobId 1016825: Forward spacing Volume "LTO6-020" to addr=88:0
17-Jul 12:42 imap3 JobId 1016825: drwxr-xr-x  15 root     root            4096 2016-01-18 10:42:03  /tmp/bacula-restores/var/spool/
17-Jul 12:44 imap3 JobId 1016825: drwxr-xr-x   4 cyrus    mail              34 2016-01-19 04:58:27  /tmp/bacula-restores/var/spool/imap/l/
17-Jul 12:45 imap3 JobId 1016825: -rw-------   1 cyrus    mail             128 2017-03-31 12:35:19  /tmp/bacula-restores/var/spool/imap/l/user/litauer/Trash/cyrus.index
17-Jul 12:45 imap3 JobId 1016825: -rw-------   1 cyrus    mail               4 2017-03-31 12:35:19  /tmp/bacula-restores/var/spool/imap/l/user/litauer/Trash/cyrus.cache
17-Jul 12:45 imap3 JobId 1016825: -rw-------   1 cyrus    mail             189 2017-03-31 12:35:19  /tmp/bacula-restores/var/spool/imap/l/user/litauer/Trash/cyrus.header
17-Jul 12:45 imap3 JobId 1016825: drwx------   2 cyrus    mail              77 2017-03-31 12:35:19  /tmp/bacula-restores/var/spool/imap/l/user/litauer/Trash/
17-Jul 12:47 bacula-sd JobId 1016825: End of Volume "LTO6-020" at addr=136:8676 on device "LTO6-1" (/dev/tape/by-id/scsi-35000e11150246004-nst).
17-Jul 12:47 imap3 JobId 1016825: drwxr-xr-x  17 root     root            4096 2017-07-06 13:50:37  /tmp/bacula-restores/var/
17-Jul 12:47 bacula-sd JobId 1016825: 3307 Issuing autochanger "unload Volume LTO6-020, Slot 20, Drive 1" command.
17-Jul 12:48 bacula-sd JobId 1016825: 3304 Issuing autochanger "load Volume LTO6-002, Slot 3, Drive 1" command.
17-Jul 12:49 bacula-sd JobId 1016825: 3305 Autochanger "load Volume LTO6-002, Slot 3, Drive 1", status is OK.
17-Jul 12:49 bacula-sd JobId 1016825: 3307 Issuing autochanger "unload Volume LTO6-002, Slot 3, Drive 1" command.
17-Jul 12:50 bacula-sd JobId 1016825: Warning: acquire.c:279 Read acquire: Wrong Volume mounted on Tape device "LTO6-1" (/dev/tape/by-id/scsi-35000e11150246004-nst): Wanted LTO6-002 have LTO6-003
17-Jul 12:50 bacula-sd JobId 1016825: 3304 Issuing autochanger "load Volume LTO6-002, Slot 3, Drive 1" command.
17-Jul 12:50 bacula-sd JobId 1016825: 3305 Autochanger "load Volume LTO6-002, Slot 3, Drive 1", status is OK.
17-Jul 12:50 bacula-sd JobId 1016825: 3307 Issuing autochanger "unload Volume LTO6-002, Slot 3, Drive 1" command.
17-Jul 12:51 bacula-sd JobId 1016825: Warning: acquire.c:279 Read acquire: Wrong Volume mounted on Tape device "LTO6-1" (/dev/tape/by-id/scsi-35000e11150246004-nst): Wanted LTO6-002 have LTO6-003

As you can see, tape LTO6-002 is found in slot 3. So bacula tries to load slot 3 -- but uses library Neo400 instead of FlexStorII. This results in a "wrong volume" error.
Is this a bug or should I configure my libraries in some other way? Maybe the problem is that both libraries are of type LTO6?




      

------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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

Reply via email to