From owner-freebsd-hackers@FreeBSD.ORG Fri May 17 08:13:00 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5018FA55 for ; Fri, 17 May 2013 08:13:00 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [188.252.31.196]) by mx1.freebsd.org (Postfix) with ESMTP id CD1FEC26 for ; Fri, 17 May 2013 08:12:59 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.6/8.14.5) with ESMTP id r4H8Aa9Z058070; Fri, 17 May 2013 10:10:36 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.6/8.14.5/Submit) with ESMTP id r4H8Aa5R058067; Fri, 17 May 2013 10:10:36 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 17 May 2013 10:10:36 +0200 (CEST) From: Wojciech Puchar To: Zaphod Beeblebrox Subject: Re: tape (sa0) on sparc64 ? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Fri, 17 May 2013 10:10:36 +0200 (CEST) Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 08:13:00 -0000 > 1: 0x26:DDS-4 variable 97000 DCLZ > 2: 0x26:DDS-4 variable 97000 DCLZ > 3: 0x26:DDS-4 variable 97000 DCLZ > --------------------------------- > Current Driver State: at rest. > --------------------------------- > File Number: 0 Record Number: 0 Residual Count 0 all fine. > > However, attached to either controller (after a reboot of the machine and a > powercycle of the drive), I get: > > [1:25:325]root@run:/home/foo> dd if=/dev/sa0 of=tape5 > dd: /dev/sa0: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.002930 secs (0 bytes/sec) > > ... which is a return code of '1' and no messages on the console... > > I have, before you ask, tried "bs=10k" and 20k ... but I believe this > command should run by itself fetching the first 512 bytes of each block --- wrong. you have to specify proper block size or multiple of it. if you don't remember block size just try. I am not sure (not used tape for a long) but requesting larger block that is available should work too. if you used dump(8) then block size is most probably 32kB. try restore(8) or tar.