From owner-freebsd-questions@FreeBSD.ORG Mon Aug 6 11:02:38 2007 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 A4BB216A419 for ; Mon, 6 Aug 2007 11:02:38 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA3213C478 for ; Mon, 6 Aug 2007 11:02:38 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id BB281DF2E0; Mon, 6 Aug 2007 13:01:17 +0200 (CEST) Date: Mon, 6 Aug 2007 13:05:18 +0200 From: cpghost To: Victor Sudakov Message-ID: <20070806110518.GA8074@epia-2.farid-hajji.net> References: <20070724115401.GA1355@admin.sibptus.tomsk.ru> <20070806025614.GA21368@admin.sibptus.tomsk.ru> <20070806071857.GA23813@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070806071857.GA23813@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org Subject: Re: dump -L X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 11:02:38 -0000 On Mon, Aug 06, 2007 at 02:18:57PM +0700, Victor Sudakov wrote: > > > > I always use "dump -L" to dump a live filesystem. > > > > However, when I restore the dump, I sometimes get messages like > > > > "foo.txt (inode 12345) not found on tape" or > > > > "expected next file 12345, got 23456" > > > > > > > > I thought this should _never_ happen when dumping a snapshot. > > > > > > > > What is it? > > > > > > Does nobody know the answer, or am I the only one experiencing the > > > problem? > > > > I don't know the answer, but I get essentially the > > same behaviour. I have never seen any data loss, > > I gave an example below. The file "wins.dat" was not dumped. It is > indeed missing from the tape. > > If this is not a data loss, what is it then? > > [root@big ~] restore -b64 -rN > ./spool/samba.lock/wins.dat: (inode 2829098) not found on tape > expected next file 267, got 4 > expected next file 2828988, got 2828987 Uh-oh :-(. I have no idea how the code works, but just a wild guess: what happens when a file is being created and a snapshot taken at the same time? Isn't there a tiny window between inode creation and directory update? Or is file creation an atomic operation w.r.t. snapshots and dump? > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > sip:sudakov@sibptus.tomsk.ru Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/