> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bacula-users- > [EMAIL PROTECTED] On Behalf Of Robin Blanchard > Sent: Tuesday, December 18, 2007 9:00 AM > To: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] FW: new to bacula; help w/autochanger > > > > [a lot of old stuff snipped] > > > > > > I think you are now asking for help with the above messages, but > you > > > haven't explicitly asked. > > > > > > When running btape, be sure bacula-sd is not running. That is your > > > firstcheck. > > > > The second check would be the permissions. If the SD runs as user > > bacula, make sure that user can write to /dev/nst0. Running a test as > > root is more likely to succeed :-) > > > > Progress ! Thanks for the tips thus far. What next ? It does sort of > look like a permissions issue (despite all of this being performed as > uid 0): > > # ps ax |fgrep -i acula > 16835 pts/0 S+ 0:00 fgrep -i acula > > # whoami > root > > # ls -ald {/dev/sg2,/dev/st0,/dev/nst0} > crw-rw---- 1 root disk 9, 128 Dec 17 11:13 /dev/nst0 > crw-rw---- 1 root disk 21, 2 Dec 17 11:13 /dev/sg2 > crw-rw---- 1 root disk 9, 0 Dec 17 11:13 /dev/st0 > > # mtx -f /dev/sg2 load 1 > > # mtx -f /dev/sg2 status > Storage Changer /dev/sg2:1 Drives, 20 Slots ( 0 Import/Export ) > Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = > B00023L3 > Storage Element 1:Empty > 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:Full :VolumeTag=B00033L3 > > > # 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] ~]# /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 ------------------------------------------------------------------------- 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