From owner-freebsd-stable@FreeBSD.ORG Wed Oct 20 12:44:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63635106566B for ; Wed, 20 Oct 2010 12:44:41 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id DE7A68FC16 for ; Wed, 20 Oct 2010 12:44:40 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.3/8.14.3) with ESMTP id o9KCiYHY041424; Wed, 20 Oct 2010 14:44:35 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.3/8.14.3/Submit) id o9KCiYUw041423; Wed, 20 Oct 2010 14:44:34 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Wed, 20 Oct 2010 14:44:34 +0200 From: Ruben de Groot To: Dan Langille Message-ID: <20101020124434.GA41365@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Dan Langille , freebsd-stable@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Wed, 20 Oct 2010 14:44:39 +0200 (CEST) Cc: freebsd-stable@freebsd.org Subject: Re: 'zfs send -i': destination has been modified X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 12:44:41 -0000 On Wed, Oct 20, 2010 at 08:32:33AM -0400, Dan Langille typed: > I am trying to do a 'zfs send -i' and failing. > > This is my simple proof of concept test: > > Create the data > # zfs create storage/a > # touch /storage/a/1 > # touch /storage/a/2 > # touch /storage/a/3 > > Snapshot > # zfs snapshot storage/a@2010.10.19 > > send > # zfs send storage/a@2010.10.19 | zfs receive -v storage/compressed/a > receiving full stream of storage/a@2010.10.19 into > storage/compressed/a@2010.10.19 > received 252KB stream in 2 seconds (126KB/sec) > # > > > > Create one more file and snapshot that > > # touch /storage/a/4 > # zfs snapshot storage/a@2010.10.20 > > > send it > > # zfs send -i storage/a@2010.10.19 storage/a@2010.10.20 | zfs receive -v > storage/compressed/a > receiving incremental stream of storage/a@2010.10.20 into > storage/compressed/a@2010.10.20 > received 250KB stream in 3 seconds (83.4KB/sec) > > What do we have? > > # find /storage/compressed/a > /storage/compressed/a > /storage/compressed/a/1 > /storage/compressed/a/2 > /storage/compressed/a/3 > /storage/compressed/a/4 > > > Of note: > > * FreeBSD 8.1-STABLE > * ZFS filesystem version 4. > * ZFS pool version 15. > * zfs send is on compression off > * zfs receive has compression on > > What I actually want to do and what fails: > > > # zfs snapshot storage/bacula@2010.10.19 > > # zfs send storage/bacula@2010.10.19 | zfs receive -v > storage/compressed/bacula > receiving full stream of storage/bacula@2010.10.19 into > storage/compressed/bacula@2010.10.19 > received 4.38TB stream in 42490 seconds (108MB/sec) > > # zfs snapshot storage/bacula@2010.10.20 > > # zfs send -i storage/bacula@2010.10.19 storage/bacula@2010.10.20 | zfs > receive -v storage/compressed/bacula > receiving incremental stream of storage/bacula@2010.10.20 into > storage/compressed/bacula@2010.10.20 > cannot receive incremental stream: destination storage/compressed/bacula > has been modified > since most recent snapshot > warning: cannot send 'storage/bacula@2010.10.20': Broken pipe > > I have no idea why this fails. Clues please? > > To my knowledge, the destination has not been written to. Has any read operation been done on the destination (ie: updated atime) ? Ruben