From owner-freebsd-fs@FreeBSD.ORG Wed Jan 22 18:10:42 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8595A13 for ; Wed, 22 Jan 2014 18:10:42 +0000 (UTC) Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7FF58132A for ; Wed, 22 Jan 2014 18:10:42 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id wn1so830616obc.6 for ; Wed, 22 Jan 2014 10:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=i/g8zd5ENSc0KbAM32FKjfFg9LOuOZHVCzR3X6HIZdQ=; b=mPsBADU4hYFyOoZX/qTtVLsWWcYWowYjpy0etSOrO9fVSQli48GwFB7L8/CpfV0DHr gVTtqNM01PagGSR+D8NvHh8UpKq8Y+ZMEWkN8byKzGuwVvI+Ti4NPn0qLpkxpSpUj1CK Rg/S9rsFYVBEWYFm8v0Y2WKG2g9Hr7VSrP/YJBNBESXE0PUpPhjY3GpcR4DxCzf/dPw7 e9DkR5iBuwnDQg34TCAgT0ADmErOjRd1hnDcrWOlaEpL43EwsX90tAi9tXFjivwTOcU0 Nw5vpMVAqCW7NVebq5AJnbKzxvI4v8Xi6mT34jP+o/QUYUAlVCDB7+eyg4hrCI0alhAc Mx/w== MIME-Version: 1.0 X-Received: by 10.182.223.114 with SMTP id qt18mr2486975obc.61.1390414241838; Wed, 22 Jan 2014 10:10:41 -0800 (PST) Received: by 10.76.132.9 with HTTP; Wed, 22 Jan 2014 10:10:41 -0800 (PST) In-Reply-To: <20140122165514.GA8110@pcjas.obspm.fr> References: <20140122165514.GA8110@pcjas.obspm.fr> Date: Wed, 22 Jan 2014 10:10:41 -0800 Message-ID: Subject: Re: zfs send/recv with lz4 From: Freddie Cash To: Albert Shih Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 18:10:42 -0000 On Wed, Jan 22, 2014 at 8:55 AM, Albert Shih wrote: > Hi all, > > I've two servers with ZFS, the first (who got the data actually) don't ha= ve > lz4 enable (FreeBSD 9.0 now FreeBSD 9.1) and the new one is under > FreeBSD-10. > > So I would like to enable lz4 for the new server. The problem is I would > like to have (for the futur) the possibility to make zfs send/recv from t= he > old one (still in production) on the new one. So I should at the beginnin= g > do the zfs send/recv. But how can I say the recv got lz4 ? > > If I create a new zfs partition with lz4 activated I need to se rsync and > for that I can't in the futur use zfs send/recv (but maybe I'm wrong abou= t > that). =E2=80=8B > Unless you are using -R for a replication stream, then the properties of the sending dataset are not part of the send stream, and the properties of the receiving dataset take effect. IOW, create the dataset on the receiving system, set the properties you want (like lz4 compression). Then send the stream from the other box into that filesystem. Also, if you set the properties in the parent dataset on the receiving side, then they'll be inherited automatically in the newly created dataset via the recv process. Works without issues here. Have lzjb set on the sending side, and lz4 on the receiving side. No dedupe on the sender, dedupe on the receiver. --=20 Freddie Cash fjwcash@gmail.com