From owner-freebsd-questions@freebsd.org Sat Jan 4 05:53:53 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 B1DE91E5F70 for ; Sat, 4 Jan 2020 05:53:53 +0000 (UTC) (envelope-from thor@irk.ru) Received: from mail.irk.ru (relay2.dsi.ru [195.206.40.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qWDG4vKFz3LQ4 for ; Sat, 4 Jan 2020 05:53:49 +0000 (UTC) (envelope-from thor@irk.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=irk.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject; bh=3+iIBVtafkGZ0ji9YQ5qGcpOtbbN1at1B9GdB6qpqbQ=; b=cGWUyEwktXS2NrBCWcHoWsLMIL JGszAb+EeueFv1PtHB2j+tvO2TT+0NztdHeDg+twh+/xkX+dyXMX1mqD8wV0BMviGNRGsYkTdbprm J/MQJ+UnHXsyQnJArKVRhFbg7ZV/HHs7VPK9MlA2kyqFP7hYg4Dt6Ng+a4yHkqF+EY8g=; Received: from [194.176.114.54] (helo=[192.168.1.130]) by mail.irk.ru with esmtpa (Exim 4.86 (FreeBSD)) (envelope-from ) id 1inc9z-00080t-2y for freebsd-questions@freebsd.org; Sat, 04 Jan 2020 13:39:39 +0800 Subject: Re: usb tape drive issue To: freebsd-questions@freebsd.org References: <202001031348.aa02716@cri450.crinc.com> From: thor Message-ID: <5d0e3225-ab26-857e-8c0f-0cad0aa9029b@irk.ru> Date: Sat, 4 Jan 2020 13:53:44 +0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <202001031348.aa02716@cri450.crinc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47qWDG4vKFz3LQ4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=irk.ru header.s=dkim header.b=cGWUyEwk; dmarc=pass (policy=none) header.from=irk.ru; spf=pass (mx1.freebsd.org: domain of thor@irk.ru designates 195.206.40.175 as permitted sender) smtp.mailfrom=thor@irk.ru X-Spamd-Result: default: False [-3.36 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[irk.ru:s=dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.36)[ip: (-9.00), ipnet: 195.206.32.0/19(4.00), asn: 8345(3.20), country: RU(0.01)]; DKIM_TRACE(0.00)[irk.ru:+]; DMARC_POLICY_ALLOW(-0.50)[irk.ru,none]; RCVD_IN_DNSWL_NONE(0.00)[175.40.206.195.list.dnswl.org : 127.0.10.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8345, ipnet:195.206.32.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 04 Jan 2020 05:53:53 -0000 Hello! Well, it's quite possible that the problem is with the block size which could be unsupported. The second problem could be the block size set by mt command or physical limit which is incompatible with cpio requirement. Use "mt rblim" and "mt blocksize NNNN". There are different reports about cpio, some tell that they use only 512 bytes while tar uses 10240 and dd uses any size. You could simulate the problem using dd with different block sizes. Then, while I believe that USB is NOT a professional interface I think it's not an USB problem. Have you analyzed the error messages, what are the errors? I think that SCSI LVD nears end of life. So unless you already have it it would be quite useless. I'd recommend instead a used LTO-4 drive or, if you have enough money, any newer level one, with SAS or FC interface. I had no problems with them. You should look for a model with a Single Character Display (IBM). For SAS I've tried HP P-400 and DELL PERC-6/i, PERC is preferred but be warned that they both do NOT support HDDs bigger than 2 terabytes. I have ServeRaid M5015 but have not tried it. For FC interface I recommend Qlogic controllers. Emulex controllers are strongly discouraged. You also need a cable (Double orange cable with gray LC connectors. Yellow cable with blue connectors is NOT OK!!!) If the system hangups during boot it could be necessary to disconnect the FC cable before boot and reconnect it after boot or power down the drive during boot. The LTO drives are to be tuned to fixed or variable block sizes according to your needs, and they use logical blocks so you don't lose too much when you use outdated programs writing too short blocks. LTO drives consume up to 50W of power and require good air flow for cooling!!! Be warned that data rate is higher than the one of HDD of similar age. So maybe it's better to make an archive to the file on separate HDD and then write it separately. You also need a cleaning cartridge. On 01/04/20 03:48, 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? > > Thanks all, > Wayne Anschutz > Computer Resources, Inc. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >