From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 16:22:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D6C7106564A for ; Sun, 23 Oct 2011 16:22:47 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 1175F8FC08 for ; Sun, 23 Oct 2011 16:22:46 +0000 (UTC) Received: from [88.217.0.84] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RI0os-0003KU-ME; Sun, 23 Oct 2011 18:22:44 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id p9NGMhhL003886; Sun, 23 Oct 2011 18:22:44 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id p9NGMhiG003885; Sun, 23 Oct 2011 18:22:43 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 23 Oct 2011 18:22:42 +0200 From: Matthias Apitz To: Victor Sudakov , freebsd-questions@freebsd.org Message-ID: <20111023162242.GA3823@tinyCurrent> References: <20111021110600.GA19417@admin.sibptus.tomsk.ru> <20111022053315.GA30712@admin.sibptus.tomsk.ru> <20111023161312.GA46735@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20111023161312.GA46735@admin.sibptus.tomsk.ru> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 88.217.0.84 Cc: Subject: Re: strange behavior of restore(8) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 16:22:47 -0000 El día Sunday, October 23, 2011 a las 11:13:13PM +0700, Victor Sudakov escribió: > Victor Sudakov wrote: > > > > > > > > I am trying to restore a UFS2 zero level dump sized about 51G. > > > > restore has created 6105 directories and no files at all, and now is > > > > waiting forever in the runnable state. Side note: I have already restored UFS level zero dumps of 130G, even into FreeBSD in a VM, without any kind of problem. Don't know UFS2, though. > > > > > > I don't have any specific advice here, but if it were me I think my > > > next troubleshooting step would be to attach truss to the restore > > > process after it gets "stuck," to try to see exactly what it's doing. > > > That may give you a clue as to why it's taking so long and whether > > > it's actually making any progress. > > > > It's doing something like that. I should have piped the output > > through uniq not to clutter the list, but on second thought, I decided > > not to: > > > > # truss -p 18568 > > lseek(4,0x0,SEEK_CUR) = 25395100 (0x1837f9c) > > lseek(4,0x0,SEEK_CUR) = 25395100 (0x1837f9c) > > lseek(4,0x0,SEEK_CUR) = 25395100 (0x1837f9c) > > lseek(4,0x0,SEEK_CUR) = 25395100 (0x1837f9c) Asuming 4 is the fd of the restore device, i.e. the DUMP, this seek does nothing: moves to offset of 0 bytes from the current position. Are you sure that the device (tape?) is fine? HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ 200†-20††: 10 años de guerra en Afghanistan. ¡Basta ya! 200†-20††: 10 years war in Afghanistan. Stop it now! 200†-20††: 10 Jahre Krieg in Afghanistan. Schluss jetzt endlich!