From nobody Thu May 27 10:00:32 2021 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EFFA5D78E7C for ; Thu, 27 May 2021 10:00:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrNc86RrWz4qBx; Thu, 27 May 2021 10:00:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id ACE9837707; Thu, 27 May 2021 10:00:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:6c2c:1c3f:e0bb:f333]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E82ED56CD0; Thu, 27 May 2021 12:00:38 +0200 (CEST) From: Dimitry Andric Message-Id: <9C587D2D-F923-4F37-A49A-9513F5BE2B8F@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_E6C0A5C4-C430-497F-9CA4-CDCB08075FCF"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: simple question regarding moving zfs filesystems Date: Thu, 27 May 2021 12:00:32 +0200 In-Reply-To: Cc: freebsd-fs@freebsd.org To: tech-lists References: X-Mailer: Apple Mail (2.3654.100.0.2.22) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_E6C0A5C4-C430-497F-9CA4-CDCB08075FCF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 May 2021, at 07:47, tech-lists wrote: >=20 > Is it the case that, if I want to transfer filesystems from one pool = to > another, that the descendant filesystems/vols will also be = transferred? >=20 > lets say there is one zpool called "data" and another called "new" >=20 > zfs list shows: >=20 > NAME USED AVAIL REFER MOUNTPOINT > data/pkg 32.2K 5.88T 32.2K /usr/local/etc/pkg > data/poudriere 22.9G 5.88T 31.4K /poudriere > data/poudriere-bulk 164G 5.88T 164G /usr/local/poudriere > data/poudriere/jails 22.9G 5.88T 37.4K /poudriere/jails > data/vm1 256G 5.88T 256G - >=20 > if I do zfs snapshot data@snapshot1 and then: >=20 > zfs send data@snapshot1 | zfs receive new >=20 > will what's in data and data/pkg data/poudriere etc appear under new ? > will characteristics like compression remain the same? > On data compression=3Dlz4 on new it's zstd. I think you can use "zfs send -R" to achieve what you want: -R, --replicate Generate a replication stream package, which will = replicate the specified filesystem, and all descendent file = systems, up to the named snapshot. When received, all properties, snapshots, descendent file systems, and clones are = preserved. If the -i or -I flags are used in conjunction with the = -R flag, an incremental replication stream is generated. = The current values of properties, and current snapshot and = file system names are set when the stream is received. If = the -F flag is specified when this stream is received, = snapshots and file systems that do not exist on the sending side are destroyed. -Dimitry --Apple-Mail=_E6C0A5C4-C430-497F-9CA4-CDCB08075FCF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYK9twAAKCRCwXqMKLiCW o+L7AJ9exZr1las7TXzJ44QhwqHclTH4XwCfWLFCAkUDjI4226UxQ8tCdOcePyg= =NqwE -----END PGP SIGNATURE----- --Apple-Mail=_E6C0A5C4-C430-497F-9CA4-CDCB08075FCF--