SCSI tape data loss

Dan Langille dan at langille.org
Mon Aug 25 09:13:22 PDT 2003


On 25 Aug 2003 at 6:17, Michael L. Squires wrote:

> I ran "tapetest.c" under 5.1-RELEASE (without pthread under 5.1-RELEASE,
> first part with pthread under 5.1-RELEASE, second part (scan) under
> 5.1-RELEASE-p2).

I don't understand what the above means or how it relates to the 
results below.  Could you elaborate please?  Thanks.

> 216012 blocks written/read without pthreads
> 217073 blocks written/read with pthreads (same!)
> 
> Hardware is SuperMicro P6DGH, dual PIII/850, onboard AIC7896, DLT4000 tape
> drive, Seagate ST423451W 23GB HD.
> 
> --------------------------results----------------------------------------------
> 
> dmesg:
> 
> FreeBSD 5.1-RELEASE #1: Sat Aug 23 14:56:45 EST 2003
>     root at mikes.siralan.org:/usr/obj/usr/src/sys/MIKES
> CPU: Intel Pentium III (851.93-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
> 
> ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe400-0xe4ff mem 0xffafe000-0xffafefff irq 10 at device 14.0 on pci0
> aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
> ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe800-0xe8ff mem 0xffaff000-0xffafffff irq 10 at device 14.1 on pci0
> aic7896/97: Ultra2 Wide Channel B, SCSI Id=7, 32/253 SCBs
> 
> sa0 at ahc1 bus 0 target 4 lun 0
> sa0: <Quantum DLT4000 CD43> Removable Sequential Access SCSI-2 device 
> sa0: 10.000MB/s transfers (10.000MHz, offset 15)
> 
> output from tapetest.c (edited)
> 
> weof_dev
> Wrote EOF to /dev/sa0
> Write failed.  Last block written=216012. stat=0 ERR=Unknown error: 0
> 
> *rewind
> Rewound /dev/sa0
> *scan
> Starting scan at file 0
> 216012 blocks of 64512 bytes in file 0
> End of File mark.
> End of File mark.
> End of tape
> Total files=1, blocks=216012, bytes = 1050464256
> 
> ioctl MTWEOF error on /dev/sa0. ERR=Input/output error.
> Bad status from weof -1. ERR=Input/output error
> Write failed.  Last block written=217073. stat=-1 ERR=No space left on device
> 
> *rewind
> Rewound /dev/sa0
> *scan
> Starting scan at file 0
> Bad status from read -1. ERR=Input/output error
> 217073 blocks of 64512 bytes in file 0
> *
> 
> 


-- 
Dan Langille : http://www.langille.org/



More information about the freebsd-scsi mailing list