Date: Thu, 27 May 2021 12:00:32 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: tech-lists <tech-lists@zyxst.net> Cc: freebsd-fs@freebsd.org Subject: Re: simple question regarding moving zfs filesystems Message-ID: <9C587D2D-F923-4F37-A49A-9513F5BE2B8F@FreeBSD.org> In-Reply-To: <YK8yjavE7ex4KBuN@ceres.zyxst.net> References: <YK8yjavE7ex4KBuN@ceres.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <tech-lists@zyxst.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9C587D2D-F923-4F37-A49A-9513F5BE2B8F>