Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2007 13:05:18 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Victor Sudakov <sudakov@sibptus.tomsk.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dump -L
Message-ID:  <20070806110518.GA8074@epia-2.farid-hajji.net>
In-Reply-To: <20070806071857.GA23813@admin.sibptus.tomsk.ru>
References:  <20070724115401.GA1355@admin.sibptus.tomsk.ru> <20070806025614.GA21368@admin.sibptus.tomsk.ru> <d7195cff0708052322x256816f8r1b4d5b1a30ac269f@mail.gmail.com> <20070806071857.GA23813@admin.sibptus.tomsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070806110518.GA8074>