> -----Original Message----- > From: Michael Galloway [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 18, 2007 10:06 AM > To: Robin Blanchard > Cc: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger > > On Tue, Dec 18, 2007 at 09:15:09AM -0500, Robin Blanchard wrote: > > > [EMAIL PROTECTED] ~]# /usr/local/bacula-2.2.6/sbin/btape -v -c > > > /usr/local/bacula-2.2.6/etc/bacula-sd.conf /dev/nst0 > > > Tape block granularity is 1024 bytes. > > > btape: butil.c:285 Using device: "/dev/nst0" for writing. > > > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive > 0" > > > command. > > > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", > result > > > is Slot 1. > > > 18-Dec 08:54 btape JobId 0: 3301 Issuing autochanger "loaded? drive > 0" > > > command. > > > 18-Dec 08:54 btape JobId 0: 3302 Autochanger "loaded? drive 0", > result > > > is Slot 1. > > > btape: btape.c:368 open device "LTO3-1" (/dev/nst0): OK > > > *test > > > > > > === Write, rewind, and re-read test === > > > > > > I'm going to write 1000 records and an EOF > > > then write 1000 records and an EOF, then rewind, > > > and re-read the data to verify that it is correct. > > > > > > This is an *essential* feature ... > > > > > > 18-Dec 08:55 btape JobId 0: Error: block.c:569 Write error at 0:1 > on > > > device "LTO3-1" (/dev/nst0). ERR=Input/output error. > > > 18-Dec 08:56 btape JobId 0: Error: Backspace record at EOT failed. > > > ERR=Input/output error > > > btape: btape.c:823 Error writing block to device. > > > > > > Hmmm.... > > > > # mt -f /dev/st0 rewind > > > > # tar cvf /dev/st0 /root/ > > tar: Removing leading `/' from member names > > /root/ > > /root/.my.cnf > > /root/anaconda-ks.cfg > > /root/.rnd > > /root/.cshrc > > /root/.tcshrc > > /root/scripts/ > > /root/scripts/bootstrap2.sh > > tar: /dev/st0: Cannot write: Input/output error > > tar: Error is not recoverable: exiting now > > > > # tail /var/log/messages > > Dec 18 09:13:23 lewis kernel: st0: Current: sense key: Aborted > Command > > Dec 18 09:13:23 lewis kernel: Add. Sense: Data phase error > > > > i suggest loading a different tape and retrying the tar. make sure that > tar > can write and read correctly. i went through something similar with my > new > spectra T50 and it ended up i needed to modify the scsi bios in my scsi > controller. > > if tar can write/read correctly, then procede to btape test without the > autochanger > part, if that works correctly integrate the changer. > > -- Michael
Thanks for the tip. Looks indeed like something underlyingly SCSI here (see below). Any suggestions as to what to look for in the adaptec controller bios ? [EMAIL PROTECTED] ~]# mtx -f /dev/sg2 load 20 [EMAIL PROTECTED] ~]# mtx -f /dev/sg2 status Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 20 Loaded):VolumeTag = B00033L3 Storage Element 1:Full :VolumeTag=B00023L3 Storage Element 2:Full :VolumeTag=B00039L3 Storage Element 3:Full :VolumeTag=B00029L3 Storage Element 4:Full :VolumeTag=B00025L3 Storage Element 5:Full :VolumeTag=B00028L3 Storage Element 6:Full :VolumeTag=B00022L3 Storage Element 7:Full :VolumeTag=B00026L3 Storage Element 8:Full :VolumeTag=B00031L3 Storage Element 9:Full :VolumeTag=B00030L3 Storage Element 10:Full :VolumeTag=B00037L3 Storage Element 11:Full :VolumeTag=B00034L3 Storage Element 12:Full :VolumeTag=B00035L3 Storage Element 13:Full :VolumeTag=B00036L3 Storage Element 14:Full :VolumeTag=B00038L3 Storage Element 15:Full :VolumeTag=B00032L3 Storage Element 16:Full :VolumeTag=B00024L3 Storage Element 17:Full :VolumeTag=B00021L3 Storage Element 18:Full :VolumeTag=B00020L3 Storage Element 19:Full :VolumeTag=B00027L3 Storage Element 20:Empty [EMAIL PROTECTED] ~]# mt -f /dev/nst0 rewind [EMAIL PROTECTED] ~]# mt -f /dev/nst0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x44 (no translation). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN [EMAIL PROTECTED] ~]# tar cvf /dev/nst0 /root/ tar: Removing leading `/' from member names /root/ /root/.my.cnf /root/anaconda-ks.cfg /root/.rnd /root/.cshrc /root/.tcshrc /root/scripts/ /root/scripts/bootstrap2.sh tar: /dev/nst0: Cannot write: Input/output error tar: Error is not recoverable: exiting now ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users