From owner-freebsd-questions@freebsd.org Sun Oct 3 19:13:59 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 A3C5C66D705 for ; Sun, 3 Oct 2021 19:13:59 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HMtn20XZNz3v2L for ; Sun, 3 Oct 2021 19:13:57 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1633288420; bh=kqY6VYbXh8uRaLYCGfrrHpDRhkrvrvUe9eC/Uxs1nkc=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=GaQJBoaqnSYh3wxlO5b6IKNw9pOhC05rvP9pOHtQNi0q2yEvh0OYoQJYAuUprkjpE VyB6GyV0Kt6I/x60cQW3ygRZcuW/2vN+EvyFNNmvsAWAoOXyhVlxzxuHn9hrpjuTp4 Iie6qapxrhCFSc7RFKsi1SWZvKQywdT7zSzLXB7EYHzLdN4QQq6eO4TOeMw4rgZKa7 2jWSRExN3GTcdLMOAyjasTJ4kXFOg1s+oevhJeuGfoNvUPiMyr1gXCLwuCca1feTKh 1G1c9skcYoPDMCNrbDY2hy+WW9L3fQ6mrYXaqVwAC5oNq8P9HmONZygjdzpkUqgQTX Qey8COqlzl9jOqwE05RRrgxPpT1hK+WccOvnsUsrDMEY/C42Vt/Laphtjlw3noCp7A TLRvnhEhLqliiG0ociJ2+LXnUQzn7+iUq7uVVPcVnWcgtHuvmbCkqFr6VZRsAaHBom og7udES/ZpzLrulHm7BYZzM6j2QuzJyuNq6IB1yzMeujf9dXsAyWZIOtgDDQt6p2Bq s4pfB5dUZHpIvLddCWm2sij1ZItnjJyus12aycF9JXnGGURqsvHRYOKHv2P94nsqgZ BOomc3ZWVwPfWyDJUDLmbos2O49TuiWA+NgQGvTnj5K+/QdsPIxrEKqCDxSt0mCpaa ONgK9W+474RNieXNPBcxvH/I= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 3 Oct 2021 12:13:40 -0700 Message-ID: <59ae4222-360c-afbe-4657-0a44d0d46d81@holgerdanske.com> Date: Sun, 3 Oct 2021 12:13:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: zfs q regarding backup strategy Content-Language: en-US To: Steve O'Hara-Smith Cc: freebsd-questions@freebsd.org References: <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> From: David Christensen In-Reply-To: <20211003102037.7da16f00d478fc1e8d15c443@sohara.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HMtn20XZNz3v2L X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=GaQJBoaq; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] 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 19:13:59 -0000 On 10/3/21 02:20, Steve O'Hara-Smith wrote: > On Sun, 3 Oct 2021 01:36:51 -0700 David Christensen wrote: > The easy option is to have the archive server boot from UFS so that > it can do things before ZFS starts up. I ran into the bootpool/ zroot issue when I built a FreeBSD root-on-ZFS USB flash drive for maintenance purposes. I saw a few choices: 1. 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; including maintenance USB flash drives. 2. Rename bootpool and zroot on the USB flash drive. I now set a unique root pool name during installation, but have not tried renaming bootpool. 3. Use the FreeBSD installer USB stick rescue/ live shell. I do this when I need to get inside an offline FreeBSD disk. 4. 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. >> Do you have any idea if and what hooks are available during system boot >> and ZFS setup? > > The easiest thing is to use the rc script dependency mechanism to > do things before zfs gets going. That sounds like a possibility. > KISS and UFS[1] I think. +1 David