From owner-freebsd-questions@freebsd.org Fri Jan 3 22:46:30 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32FB81F2BD6 for ; Fri, 3 Jan 2020 22:46:30 +0000 (UTC) (envelope-from wayne@crinc.com) Received: from crinc.com (crinc.com [72.242.50.225]) by mx1.freebsd.org (Postfix) with SMTP id 47qKl90Hf8z4Sch for ; Fri, 3 Jan 2020 22:46:28 +0000 (UTC) (envelope-from wayne@crinc.com) From: Wayne Anschutz X-Mailer: SCO OpenServer 6.0.0 Mail To: freebsd-questions@freebsd.org, pete@nomadlogic.org Subject: Re: usb tape drive issue Date: Fri, 3 Jan 2020 16:46:28 -0600 (CST) Message-ID: <202001031646.aa04689@cri450.crinc.com> X-Rspamd-Queue-Id: 47qKl90Hf8z4Sch X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of wayne@crinc.com has no SPF policy when checking 72.242.50.225) smtp.mailfrom=wayne@crinc.com X-Spamd-Result: default: False [4.17 / 15.00]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[crinc.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.80)[0.805,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(1.00)[0.997,0]; R_SPF_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7029, ipnet:72.242.0.0/16, country:US]; IP_SCORE(0.47)[asn: 7029(2.40), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 22:46:30 -0000 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 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: 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 , freebsd-questions@freebsd.org From: Pete Wright 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