From owner-freebsd-current Tue Mar 31 09:35:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA00320 for freebsd-current-outgoing; Tue, 31 Mar 1998 09:35:01 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fddi.Simon-Shapiro.ORG [206.190.148.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA29883 for <"freebsd-current@freebsd.org"@hub.freebsd.org>; Tue, 31 Mar 1998 09:33:55 -0800 (PST) (envelope-from shimon@simon-shapiro.org) Received: (qmail 16394 invoked from network); 31 Mar 1998 17:42:23 -0000 Received: from localhost.simon-shapiro.org (HELO sendero-fxp0.simon-shapiro.org) (@127.0.0.1) by localhost.simon-shapiro.org with SMTP; 31 Mar 1998 17:42:23 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-032398 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199803310918.BAA17386@hub.freebsd.org> Date: Tue, 31 Mar 1998 09:42:23 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: "Jon E. Mitchiner" Subject: RE: CONTINUED problems: Restore/Dump broken? Cc: FreeBSD <"freebsd-current@freebsd.org"@hub.freebsd.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 31-Mar-98 Jon E. Mitchiner wrote: >> I have a suspicion that 'restore' is broken somehow as I have a new tape >> drive in our web server machine (SONY SDT-7000) and backups work without > any >> problems. The problem occurs when we try to restore files as we lost a > file >> today, and bang, restore wouldn't work at all. Below is a list of the >> commands I did to test restore on a new clean tape to make sure it's not >> something else: ... > I have tested the tape drive in two other machines (NT & Linux) and it > works > fine. Yes, I have verified that the termination is correctly installed > and > working. > > At this point, it seems "dump" works, but "restore" does not work in > 3.0-CURRENT and I have been unable to resolve or fix the problem. > > Does anyone have any clues or suggestions that they could make to resolve > the tape drive problems I'm having? Yes. I posted a note about it. Restore is not broken, neither is dump, nor your tape drive. Dump dumps in multiples of 1024 bytes. With 3.-0-current, the only blocking factor that works is 512 bytes, which is very, very slow. I have found no way to convince dump to go to that size (short of changing the source). The problem is that YOU WILL HAVE NO INDICATION that dump writes garbage to the tape. So will dd, tar, cpio. My suggestion is you restore on a 2.2, old 3.0, linux, whatever and then do: cd /where/the/restor/is;find . | cpio -H newc -ov -C 512 -O /dev/tape_name This will be readable on 3.0-current. Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message