Closer... I may have something described or labeled wrong? Thank goodness for RCS. Been trying al sorts of things but this is the closest I get (configs at bottom)
Label command failed for Volume 000039L6. Sending label command for Volume "000053L6" Slot 15 ... 3307 Issuing autochanger "unload slot 19, drive 0" command. 3995 Bad autochanger "unload slot 19, drive 0": ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...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: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 256 to 4114 Failed Label command failed for Volume 000053L6. Sending label command for Volume "000023L6" Slot 18 ... 3307 Issuing autochanger "unload slot 19, drive 0" command. 3995 Bad autochanger "unload slot 19, drive 0": ERR=Child exited with code 1 Results=Unloading drive 0 into Storage Element 19...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: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 256 to 4114 Failed Label command failed for Volume 000023L6. Sending label command for Volume "000059L6" Slot 19 ... 3910 Unable to open device ""Drive1" (/dev/nst1)": ERR=dev.c:513 Unable to open device "Drive1" (/dev/nst1): ERR=No medium found Robert Threet http://yesistilluseperl.blogspot.com/ ---------- Original Message ---------- From: "RAT" <rober...@netzero.net> To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Labeling tapes Date: Wed, 3 Sep 2014 16:30:32 GMT Hello Bacula Users! I am trying to get Bacula running. I have it working using disk. I just need it to use my tape drive. I am using Linux CentOS 7 (on Dell 720) and a Dell DL4000 tape library. P.S. Note the "Alert Command" setting (as I always get those 50/50 chances wrong). ERROR: 03-Sep 11:21 bacula-sd JobId 13: Job DL4000.2014-09-03_11.21.39_05 is waiting. Cannot find any appendable volumes. Please use the "label" command to create a new Volume for: Storage: "Drive1" (/dev/nst0) Pool: Default Media type: LTO-6-Drive CONFIG: [bacula-dir.conf] # Definition of DDS tape storage device Storage { Name = DL4000 # Do not use "localhost" here Address = [my FQDN here - RAT] # N.B. Use a fully qualified name here SDPort = 9103 Password = "[it's a secret]" # password for Storage daemon Device = Drive1 # must be same as Device in Storage daemon Device = Drive2 # must be same as Device in Storage daemon Device = Drive3 # must be same as Device in Storage daemon Device = Drive4 # must be same as Device in Storage daemon Media Type = LTO-6-Drive # must be same MediaType in Storage daemon Autochanger = yes # enable for autochanger device } [bacula-sd.conf] # My Attempt to add the Dell DL4000 # Autochanger { Name = DL4000 Device = Drive1 Device = Drive2 Device = Drive3 Device = Drive4 Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg5 } Device { Name = Drive1 # Drive Index = 0 Media Type = LTO-6-Drive Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes # # # # Enable the Alert command only if you have the mtx package loaded # # Note, apparently on some systems, tapeinfo resets the SCSI controller # # thus if you turn this on, make sure it does not reset your SCSI # # controller. I have never had any problems, and smartctl does # # not seem to cause such problems. # # # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" # If you have smartctl, enable this, it has more info than tapeinfo Alert Command = "sh -c 'smartctl -H -l error %c'" } (similar X4 for the rest of drives) Robert Threet http://yesistilluseperl.blogspot.com/ ____________________________________________________________ Apple's new iPhone? Look closely. Because as you might guess, Apple is hiding something… http://thirdpartyoffers.netzero.net/TGL3231/54074283939e742822c7est03duc ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users