I think I have solved the issue, or at least for Bacula seeing it as an autochanger. The fix seems to have been adding the following to the bacula-sd.conf file in the Device directive:
AutoChanger = yes; I now need to figure out how to get it to see the tape labels. I have it running a update slots scan But I do not think it is loading the tape names into the system... Automatically selected Storage: File1 Connecting to Storage daemon File1 at localhost:9103 ... 3306 Issuing autochanger "slots" command. Device "LTO5" has 32 slots. Connecting to Storage daemon File1 at localhost:9103 ... 3306 Issuing autochanger "list" command. Connecting to Storage daemon File1 at localhost:9103 ... 3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" because: Could not unserialize Volume label: ERR=label.c:873 Expecting Volume Label, got FI=0 Stream=0 len=64412 No VolName for Slot=1 InChanger set to zero. Connecting to Storage daemon File1 at localhost:9103 ... 3307 Issuing autochanger "unload slot 1, drive 0" command. 3995 Bad autochanger "unload slot 1, drive 0": ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Illegal Request mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 53 mtx: Request Sense: Additional Sense Qualifier = 03 mtx: Request Sense: Field in Error = 00 mtx: Request Sense: BPV=yes mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=yes mtx: Request Sense: Field Pointer = 00 00 MOVE MEDIUM from Element Address 1 to 1001 Failed No VolName for Slot=2 InChanger set to zero. Connecting to Storage daemon File1 at localhost:9103 ... 3307 Issuing autochanger "unload slot 1, drive 0" command. 3304 Issuing autochanger "load slot 3, drive 0" command. 3305 Autochanger "load slot 3, drive 0", status is OK. 3001 Volume=Vol00-03 Slot=3 Catalog record for Volume "Vol00-03" updated to reference slot 3. Connecting to Storage daemon File1 at localhost:9103 ... 3307 Issuing autochanger "unload slot 3, drive 0" command. 3304 Issuing autochanger "load slot 4, drive 0" command. 3305 Autochanger "load slot 4, drive 0", status is OK. 3001 Volume=Vol00-04 Slot=4 Catalog record for Volume "Vol00-04" updated to reference slot 4. ----- Original Message ----- > From: "Robert Minvielle" <robe...@louisiana.edu> > To: "William Muriithi" <will...@perasotech.com> > Cc: bacula-users@lists.sourceforge.net > Sent: Thursday, May 9, 2019 7:25:58 AM > Subject: Re: [Bacula-users] Autochanger not working? > > Just a small update, my labels that I performed seemed not to work. I labeled > all > of the tapes two days ago, but now I get this (I have verified that tape 1 is > in > the drive, which I labeled Vol00-01): > > Connecting to Director localhost:9101 > 1000 OK: 1 cmixhyperv03-dir Version: 7.0.5 (28 July 2014) > Enter a period to cancel a command. > *status > Status available for: > 1: Director > 2: Storage > 3: Client > 4: Scheduled > 5: All > Select daemon type for status (1-5): 2 > Automatically selected Storage: File1 > Connecting to Storage daemon File1 at localhost:9103 > > cmixhyperv03-sd Version: 7.0.5 (28 July 2014) x86_64-pc-linux-gnu ubuntu > 16.04 > Daemon started 09-May-19 07:23. Jobs: run=0, running=0. > Heap: heap=135,168 smbytes=213,200 max_bytes=343,348 bufs=68 max_bufs=72 > Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0 > > Running Jobs: > No Jobs running. > ==== > > Jobs waiting to reserve a drive: > ==== > > Terminated Jobs: > ==== > > Device status: > Autochanger "LTO5" with devices: > "Drive-1" (/dev/nst0) > > Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently mounted. > Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512 > Positioned at File=0 Block=0 > == > ==== > > Used Volume status: > ==== > > ==== > > *label > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > Automatically selected Storage: File1 > Enter new Volume name: Vol00-01 > Media record for new Volume "Vol00-01" already exists. > Enter new Volume name: > Volume name must be at least one character long. > > > Any ideas? > > > ----- Original Message ----- > > From: "Robert Minvielle" <robe...@louisiana.edu> > > To: "William Muriithi" <will...@perasotech.com> > > Cc: bacula-users@lists.sourceforge.net > > Sent: Thursday, May 9, 2019 7:18:57 AM > > Subject: Re: [Bacula-users] Autochanger not working? > > > > Still trying to figure this out... Am I reading this wrong, or it is > > telling > > me that > > it can not find the volume on the tape, or the volume in the config file? > > > > Does anyone have a bacula-dir and bacula-sd they would like to share with a > > single > > tape drive that works? I have a feeling I am misconfiguring something. > > > > Thank you. > > > > ----- Original Message ----- > > > From: "Robert Minvielle" <robe...@louisiana.edu> > > > To: "William Muriithi" <will...@perasotech.com> > > > Cc: bacula-users@lists.sourceforge.net > > > Sent: Tuesday, May 7, 2019 3:31:16 PM > > > Subject: Re: [Bacula-users] Autochanger not working? > > > > > > I labeled the tapes in bconsole, it said it worked (I ejected them and > > > mounted > > > them with mtx). However, I still get: > > > > > > > > > *mount > > > Automatically selected Storage: File1 > > > 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted. > > > If this is not a blank tape, try unmounting and remounting the Volume. > > > *unmount > > > Automatically selected Storage: File1 > > > 3002 Device ""Drive-1" (/dev/nst0)" unmounted. > > > *mount > > > Automatically selected Storage: File1 > > > 3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" > > > because: > > > Could not unserialize Volume label: ERR=label.c:873 Expecting Volume > > > Label, > > > got FI=0 Stream=0 len=64412 > > > > > > 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted. > > > If this is not a blank tape, try unmounting and remounting the Volume. > > > > > > And it still does not see the tapes. Am I using the wrong device?? > > > > > > > > > > > > ----- Original Message ----- > > > > From: "William Muriithi" <will...@perasotech.com> > > > > To: "Robert Minvielle" <robe...@louisiana.edu>, > > > > bacula-users@lists.sourceforge.net > > > > Sent: Tuesday, May 7, 2019 2:36:51 PM > > > > Subject: Re: Autochanger not working? > > > > > > > > Hi Robert, > > > > > > > > =========== > > > > > > > > Autochanger { > > > > Name = LTO5 > > > > Device = Drive-1 > > > > Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" > > > > Changer Device = /dev/sg3 > > > > } > > > > ======== > > > > Be aware that /dev/sg3 can change when the system is rebooted. > > > > > > > > =============== > > > > Device { > > > > Name = Drive-1 > > > > Drive Index = 0 > > > > Device Type = Tape > > > > Media Type = LTO-5 > > > > Archive Device = /dev/nst0 > > > > Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" > > > > Label Media = yes; # lets Bacula label unlabeled > > > > media > > > > Random Access = Yes; > > > > Automatic Mount = yes; # when device opened, read it > > > > Removable Media = yes; > > > > Always Open = yes; > > > > Maximum Concurrent Jobs = 5 > > > > } > > > > ========== > > > > > > > > Don't have "Drive Index = 0", think its only needed when your tape > > > > devices > > > > have multiple drives/head > > > > Use "Random Access = no" since you are using the tapes > > > > > > > > ============ > > > > Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently > > > > mounted. > > > > Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512 > > > > Positioned at File=0 Block=0 > > > > ====================== > > > > You may not have labelled the tapes, so bacula didn't attempt loading > > > > them. > > > > > > > > Try manually attempting to load them from bconsole and see what > > > > happens. > > > > > > > > Sorry for the formatting, using a horrible mail client called outlook, > > > > hence > > > > the mess > > > > > > > > Regards, > > > > William > > > > > > > > > _______________________________________________ > > > 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 > > > > > _______________________________________________ > 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