From nobody Fri Sep 23 12:43:13 2022 X-Original-To: questions@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 4MYsJR1r69z4cwXx for ; Fri, 23 Sep 2022 12:43:19 +0000 (UTC) (envelope-from SRS0=BMP7=Z2=perdition.city=julien@bebif.be) Received: from orval.bbpf.belspo.be (orval.bbpf.belspo.be [193.191.208.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4MYsJP6G4Dz40kr for ; Fri, 23 Sep 2022 12:43:17 +0000 (UTC) (envelope-from SRS0=BMP7=Z2=perdition.city=julien@bebif.be) Received: from x1 (unknown [10.209.1.149]) by orval.bbpf.belspo.be (Postfix) with ESMTPSA id 59A371D9D8; Fri, 23 Sep 2022 14:43:16 +0200 (CEST) Date: Fri, 23 Sep 2022 14:43:13 +0200 From: Julien Cigar To: parv/FreeBSD , David Christensen , questions@freebsd.org Subject: Re: zfs replication tool Message-ID: <20220923124313.jkkbfsgvntrrjeqt@x1> Mail-Followup-To: parv/FreeBSD , David Christensen , questions@freebsd.org References: <20220920132503.8bfd124b9697d90e474086b3@sohara.org> <20220920125154.n7lcqr3xzhsrylzr@x1> <20220920142314.df043149e82d63cbd289a92e@sohara.org> <4cf58433-a13b-9b35-fc3e-8fad6b2ac93d@sentex.net> <20220920141006.n6x6mxpafy3zqpk3@x1> <20220923080305.alrgrrnxljtweo3i@x1> <498d478e-7fe7-1840-6263-930b498c5bbf@holgerdanske.com> <20220923112417.bipcilmkothsvvxr@x1> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qlhz2hkcwn5dagfc" Content-Disposition: inline In-Reply-To: <20220923112417.bipcilmkothsvvxr@x1> X-Rspamd-Queue-Id: 4MYsJP6G4Dz40kr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of "SRS0=BMP7=Z2=perdition.city=julien@bebif.be" designates 193.191.208.90 as permitted sender) smtp.mailfrom="SRS0=BMP7=Z2=perdition.city=julien@bebif.be" X-Spamd-Result: default: False [-4.44 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_LONG(-0.94)[-0.941]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[julien@perdition.city,SRS0=BMP7=Z2=perdition.city=julien@bebif.be]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[julien@perdition.city,SRS0=BMP7=Z2=perdition.city=julien@bebif.be]; ASN(0.00)[asn:2611, ipnet:193.191.192.0/19, country:BE]; FREEMAIL_TO(0.00)[gmail.com,holgerdanske.com,freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[perdition.city]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_DN_SOME(0.00)[]; TAGGED_RCPT(0.00)[freebsd]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --qlhz2hkcwn5dagfc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 23, 2022 at 01:24:17PM +0200, Julien Cigar wrote: > On Thu, Sep 22, 2022 at 11:51:30PM -1000, parv/FreeBSD wrote: > > On Thu, Sep 22, 2022 at 10:58 PM David Christensen wrote: > > ... > >=20 > > > I wrote homebrew scripts to automate ZFS replication and I saw that > > > error message many times in the past. The solution was to add the '-= F' > > > option to the 'zfs receive' commands. Is there a way to do this with > > > zrepl? > > > > >=20 > > That "-F" option, for "zfs-recv(8)", will remove existing file system > > (on the receiver side). For the option to work, existing snapshots would > > need to be destroyed first. > >=20 > > That is useful if one wants to re-set up backup file system & snapshots. > > Else, what is even the point of incremental snapshot back ups. >=20 > it looks like there is no way to specify a -F on the receive side with > zrepl.. my problem looks like https://github.com/zrepl/zrepl/issues/408 > issue. setting mountpoint=3Dnone on the target dataset fixed the issue.=20 Apparently mounting a dataset, even as read-only, somewhat "alters" it=20 and incremental snapshot replication fails afterwards. So I'm setting mountpoint=3Dnone and switched to clones and promotes >=20 > >=20 > >=20 > > - parv > >=20 > > -- >=20 > --=20 > Julien Cigar > PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 >=20 > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. --=20 Julien Cigar PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --qlhz2hkcwn5dagfc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnF27CBNtOraRNmgqCLYqJMpBHmkFAmMtqd4ACgkQCLYqJMpB HmlCtg//Qfm3SO3F7+x2YzXuQnYp+YxZ8tTQFQ0JjmGXcPNtx/n7SAT+5RFAPMbV L7CB8wx4UKVkx98326h30hwjJ87htRzKkLxexb8NyajZ5UOvJOVvHHVycIQNiDYX aYjO6Hy3IgAXusCi9dG6mp0oQQNBJomcru7X6YEO3CzBv6zjFhIXMVOdymPU54dj R1T+fxcL8X91J2ZOfzkfX6IrBN7uuUWANgccNoKUNys7+LSGflJi6Sx0S8S4sYBQ Nca1//24q98Vxtg/565hLZMh7iE8BeoREx9tLrUYNmNYtS8sG0xlq12sUem1q0+f NNvdiDjigl+94cIt9s8hWRS7x2QKHJfLr0NR8PnTUaXab1wI6xWWzGmFOBDtXTRU iH3N23707HF0H2OEkqyYLpmx7CF+N0HFKtYQ2AwZ6tNOJ94/BGUiVBnSwieozO0J SbZJgRVuASf+WQZXhjADmLsm40/F7Y0yJKrX1T8+tW8wOt8r0BvGMLeH2bZsfpT/ ZG14ixgBp3WUFwoAX6sqxA+ypouU8i5jVZXeuudlnYpkJhVQXSGs8rLfL/0+yKTb jLgBC+wOkbrEbtsQxDGDQf2ThdiWAFtKvHE2lBnKGlcyGvf4aF2hAdoeY7zP4CVQ Vr7moN+utX0HDWMOFE12p97Kst1y/DVXXXXwZO+NNV9jmTDW5+o= =2FXy -----END PGP SIGNATURE----- --qlhz2hkcwn5dagfc--