From owner-freebsd-questions@freebsd.org Sun Oct 3 22:23:43 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 160F2670803 for ; Sun, 3 Oct 2021 22:23:43 +0000 (UTC) (envelope-from lysfjord.daniel@smokepit.net) Received: from smtp-out.smokepit.net (smtp-out.smokepit.net [18.200.56.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-out.smokepit.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HMyzy1Khpz4kHn for ; Sun, 3 Oct 2021 22:23:42 +0000 (UTC) (envelope-from lysfjord.daniel@smokepit.net) Received: from [84.215.45.183] (helo=smokepit.net) by smtp-out.smokepit.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX9tO-0006Pz-U9 for freebsd-questions@freebsd.org; Sun, 03 Oct 2021 22:23:34 +0000 Received: from http01.lan.smokepit.net ([10.0.3.111] helo=webmail.smokepit.net) by smokepit.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1mX9tN-000ANi-9Y for freebsd-questions@freebsd.org; Mon, 04 Oct 2021 00:23:33 +0200 MIME-Version: 1.0 Date: Sun, 03 Oct 2021 22:23:33 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.16.0 From: "Daniel Lysfjord" Message-ID: <9066d6906ef93ef4155016792cbe3ce4@smokepit.net> Subject: Re: zfs q regarding backup strategy To: freebsd-questions@freebsd.org In-Reply-To: <59ae4222-360c-afbe-4657-0a44d0d46d81@holgerdanske.com> References: <59ae4222-360c-afbe-4657-0a44d0d46d81@holgerdanske.com> <20211001222816.a36e9acbd4e8829aed3afb68@sohara.org> <809e4f3b-9e59-eb53-5b7d-0bcf7e401cd5@holgerdanske.com> <20211002115440.85c4342a49fe6e4573c37dd0@sohara.org> <20211002205504.9d81ee94caa231ee9b008d6a@sohara.org> <69954781-9e3c-ba96-5f1e-9b4043ecf56c@holgerdanske.com> <20211003063353.7415d12917f0e514d433ae1c@sohara.org> <20211003102037.7da16f00d478fc1e8d15c443@sohara.org> X-Originating-IP: 10.0.0.200 X-Spam-Report: Action: no action Symbol: ARC_NA(0.00) Symbol: RCVD_VIA_SMTP_AUTH(0.00) Symbol: HAS_XOIP(0.00) Symbol: FROM_HAS_DN(0.00) Symbol: TO_MATCH_ENVRCPT_ALL(0.00) Symbol: BAYES_HAM(-2.92) Symbol: MIME_GOOD(-0.10) Symbol: TO_DN_NONE(0.00) Symbol: RCPT_COUNT_ONE(0.00) Symbol: RCVD_COUNT_ONE(0.00) Symbol: FROM_EQ_ENVFROM(0.00) Symbol: MIME_TRACE(0.00) Symbol: RCVD_TLS_ALL(0.00) Symbol: MID_RHS_MATCH_FROM(0.00) Message-ID: 9066d6906ef93ef4155016792cbe3ce4@smokepit.net X-Rspamd-Queue-Id: 4HMyzy1Khpz4kHn X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[smokepit.net:s=loke]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:18.200.56.156]; DKIM_TRACE(0.00)[smokepit.net:+]; DMARC_POLICY_ALLOW(-0.50)[smokepit.net,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:18.200.0.0/16, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RECEIVED_SPAMHAUS_PBL(0.00)[84.215.45.183:received] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2021 22:23:43 -0000 "David Christensen" skrev 3. oktober 2021 kl.= 21:14: > On 10/3/21 02:20, Steve O'Hara-Smith wrote: >=20 >>=20On Sun, 3 Oct 2021 01:36:51 -0700 David Christensen wrote: >>=20 >>=20The easy option is to have the archive server boot from UFS so that >> it can do things before ZFS starts up. >=20 >=20I ran into the bootpool/ zroot issue when I built a FreeBSD root-on-Z= FS USB flash drive for > maintenance purposes. I saw a few choices: >=20 >=201. Install with UFS, as you suggest. I have done this in the past and= it works. But, ZFS is a > killer feature. I want root-on-ZFS on all of my bootable devices; inclu= ding maintenance USB flash > drives. >=20 >=202. Rename bootpool and zroot on the USB flash drive. I now set a uniq= ue root pool name during > installation, but have not tried renaming bootpool. >=20 >=203. Use the FreeBSD installer USB stick rescue/ live shell. I do this = when I need to get inside an > offline FreeBSD disk. >=20 >=204. Use my Debian maintenance USB flash drive (MBR, ext4). This, plus = an external USB HDD, is how I > take/ restore/ clone OS disk images. Unfortunately, I do not see Debian= packages for GELI or UFS. I > have not tested ZFS compatability between Debian and FreeBSD. >=20 >>>=20Do you have any idea if and what hooks are available during system = boot >>> and ZFS setup? >>=20 >>=20The easiest thing is to use the rc script dependency mechanism to >> do things before zfs gets going. >=20 >=20That sounds like a possibility. >=20 >>=20KISS and UFS[1] I think. >=20 >=20+1 >=20 >=20David I run my backups from a FreeBSD server to a Debian server via SSH and zfs= send | zfs receive. As long as you have the same features enabled on bot= h sides, it works just fine.