Hello Josef, I think that this behavior is caused by wrong Bacula usage by the user.
Please look at following steps that user did (with my comments): 1) [root@bacula-sd ~]# /usr/libexec/bacula/mtx-changer /dev/sg5 load 1 /dev/nst0 0 To load/unload volume in storage managed by Bacula, the user has to umount the storage first. Otherwise Bacula SD will have wrong tape drive state remembered and from this reason Bacula can try load volume already loaded or can try unload volume not loaded. 2) [root@bacula-dir ~]# bconsole *status storage=Quantum-Changer ... Device status: Autochanger "Quantum-Changer" with devices: "LTO5" (/dev/nst0) Device "LTO5" (/dev/nst0) open but no Bacula volume is currently mounted. Drive 0 status unknown. Total Bytes Read=0 Blocks Read=0 Bytes/block=0 Positioned at File=0 Block=0 ==== ... In this output the "no Bacula volume is currently mounted" state means that Bacula SD doesn't know about loaded tape from slot 1 to tape drive /dev/nst0. So, before loading volume by mtx-changer the storage wasn't unmounted (it was mounted). 3) *label storage=Quantum-Changer pool=LTO5-Pool slots=1-3 barcodes It can fail because of above problem. 4) *unmount storage=Quantum-Changer It can fail because of above problem. 5) [root@bacula-sd ~]# /etc/init.d/bacula-sd stop All Bacula SD devices are freed. 6) [root@bacula-sd ~]# cp /etc/init.d/bacula-sd /etc/init.d/bacula-sdd I am not sure if it is required. 7) [root@bacula-sd init.d]# /etc/init.d/bacula-sdd start After starting Bacula SD, all devices are mounted again and tape drives (with volumes or without) are initialized in Bacula SD. *label storage=Quantum-Changer pool=LTO5-Pool slots=1-3 barcodes Devices were mounted and initliazed correctly, so no error. *unmount storage=Quantum-Changer Devices were mounted and initliazed correctly, so no error. Please let know if it is helpful. Best regards. Marcin Haba (gani) On 19 September 2016 at 16:02, Josef Ridky <jri...@redhat.com> wrote: > > Hi, I am new co-maintainer of bacula in RHEL and Fedora. > > Following issue [1] has been reported to me to solve. > > Can somebody help me, how to solve this issue? I know, that bacula version in > reported issue is really old so if it was already fixed, please send me just > link to commit/patch/forum thread etc. > > [1] https://bugzilla.redhat.com/show_bug.cgi?id=1376453 > > Thanks for your help. > > Regards > > Josef Ridky > Associate Software Engineer > Core Services Team > Red Hat Czech, s.r.o. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Bacula-devel mailing list > Bacula-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-devel -- "Greater love hath no man than this, that a man lay down his life for his friends." Jesus Christ "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus ------------------------------------------------------------------------------ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel