Bacula 2.2.6 on RHEL5 (2.6.18-53.1.4.el5xen) # cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: 3ware Model: Logical Disk 0 Rev: 1.2 Type: Direct-Access ANSI SCSI revision: ffffffff Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: 3ware Model: Logical Disk 0 Rev: 1.2 Type: Direct-Access ANSI SCSI revision: ffffffff Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: QUALSTAR Model: RLS-8204-20 Rev: 006D Type: Medium Changer ANSI SCSI revision: 02 Host: scsi2 Channel: 00 Id: 01 Lun: 00 Vendor: IBM Model: ULTRIUM-TD3 Rev: 73P5 Type: Sequential-Access ANSI SCSI revision: 03
Snippet from bacula-sd.conf: >>> Autochanger { Name = Autochanger Device = Drive-1 #Device = Drive-2 Changer Command = "/usr/local/bacula-2.2.6/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg0 } Device { Name = Drive-1 # Drive Index = 0 Media Type = DLT-8000 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'" } >>> # ./btape -c ../etc/bacula-sd.conf /dev/nst0 Tape block granularity is 1024 bytes. btape: butil.c:285 Using device: "/dev/nst0" for writing. 17-Dec 11:45 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command. 17-Dec 11:45 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 1. Results=mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=0 (Unknown?!) mtx: Request Sense: Sense Key=No Sense mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 00 mtx: Request Sense: Additional Sense Qualifier = 00 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no READ ELEMENT STATUS Command Failed 17-Dec 11:45 btape: Fatal Error at device.c:296 because: dev open failed: dev.c:433 Unable to open device "Drive-1" (/dev/nst0): ERR=Input/output error 17-Dec 11:45 btape JobId 0: Fatal error: butil.c:194 Cannot open "Drive-1" (/dev/nst0) ---------------------------------------- Robin P. Blanchard Systems Administrator Information Technology Outreach Services Carl Vinson Institute of Government The University of Georgia fon 706.542.6295 // fax 706.542.6535 ---------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users