Date: Fri, 3 Jan 2020 16:46:28 -0600 (CST) From: Wayne Anschutz <wayne@crinc.com> To: freebsd-questions@freebsd.org, pete@nomadlogic.org Subject: Re: usb tape drive issue Message-ID: <202001031646.aa04689@cri450.crinc.com>
next in thread | raw e-mail | index | archive | help
Pete, I'll give you what I can. Write commands tested from the /etc directory find . -depth | cpio -ocB -O /dev/sa0 tar cvf /dev/sa0 * find . | cpio -ocB | dd bs=5120 of=/dev/sa0 usbconfig pertinent line ugen0.3 <Hewlett Packard DAT160 USB Tape> at usbus0, cfg=0, md=HOST spd=HIGH(480Mbps) pwr=on (2ma) It's interesting to note the tape was sold to me as Quantum and it does have a Quantum face plate which is identical to another drive I have which is HP. I do not have the model and I'm not on site now. >From dmesg a sampling of the errors and a device report. a0:umass-sim0:0:0:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 02 00 (sa0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (sa0:umass-sim0:0:0:0): Error 5, Retries exhausted (sa0:umass-sim0:0:0:0): READ POSITION. CDB: 34 06 00 00 00 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: SCSI Status Error (sa0:umass-sim0:0:0:0): SCSI status: Check Condition (sa0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,2 (SCSI bus reset occu rred) (sa0:umass-sim0:0:0:0): Retrying command (per sense data) (sa0:umass-sim0:0:0:0): failed to write terminating filemark(s) (sa0:umass-sim0:0:0:0): REWIND. CDB: 01 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (sa0:umass-sim0:0:0:0): Retrying command (sa0:umass-sim0:0:0:0): REWIND. CDB: 01 00 00 00 00 00 (sa0:umass-sim0:0:0:0): CAM status: SCSI Status Error (sa0:umass-sim0:0:0:0): SCSI status: Check Condition (sa0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,2 (SCSI bus reset occu rred) (sa0:umass-sim0:0:0:0): Retrying command (per sense data)a0 at umass-sim0 bus 0 scbus9 target 0 lun 0 sa0: <QUANTUM DAT DAT160-000 WU8A> Removable Sequential Access SCSI-3 device sa0: Serial Number 4855313296425633 sa0: 40.000MB/s transfers Pete, I hope that helps - I have to decide soon if this can fixed or if different tape interface would work? Wayne -------------------original message------------ Subject: Re: usb tape drive issue To: Wayne Anschutz <wayne@crinc.com>, freebsd-questions@freebsd.org From: Pete Wright <pete@nomadlogic.org> Date: Fri, 3 Jan 2020 13:59:50 -0800 On 1/3/20 11:48 AM, Wayne Anschutz wrote: > Folks, > > I'm new at this bsd OS, but did get an xinuos open server 10 operating > which is BSD. I've managed to get everything working with some trial and > error picking the correct ports for necessary libraries. The BSD os is > stable version 11.3. > > The problem popped up when I tried to make a backup tape using a usb dat160 > internal drive. After testing a lot I found that the drive would read > tar and dd formats correctly. It did only a flawed read on cpio tapes. It > always failed on any write with CAM errors and scsi errors. Research on > the web proved that this is not an uncommon problem with usb storage > devices. I am not interested in being a freeBSD test bed! I need a stable > OS for my customers. > > My first question - would updateing to stable 12.1 solve this? If so what > are the updateing pit falls? Would switching to a dat160 scsi lvd drive > solve the problem? I think the best next step would be if you could provide additional debugging information.B for example: - what is the model number of the tape drive in question?B also, what does the output of "usbconfig" look like when the device is attached? - can you share an example of the errors when you are running cpio? also relevant messages from "dmesg" would be helpful here as well. - also if you can share the cpio commands you are running that would be helpful as well. Cheers, -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001031646.aa04689>