Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Oct 2021 12:13:32 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        Steve O'Hara-Smith <steve@sohara.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: zfs q regarding backup strategy
Message-ID:  <59ae4222-360c-afbe-4657-0a44d0d46d81@holgerdanske.com>
In-Reply-To: <20211003102037.7da16f00d478fc1e8d15c443@sohara.org>
References:  <YVZM1HnPuwIUQpah@ceres.zyxst.net> <ba54a415-da45-e662-73fe-65702c4131e2@holgerdanske.com> <YVcXsF5NFq2abE%2B7@ceres.zyxst.net> <20211001222816.a36e9acbd4e8829aed3afb68@sohara.org> <809e4f3b-9e59-eb53-5b7d-0bcf7e401cd5@holgerdanske.com> <20211002115440.85c4342a49fe6e4573c37dd0@sohara.org> <daf9ba49-82a3-670c-f59c-745e0c315f18@holgerdanske.com> <20211002205504.9d81ee94caa231ee9b008d6a@sohara.org> <69954781-9e3c-ba96-5f1e-9b4043ecf56c@holgerdanske.com> <20211003063353.7415d12917f0e514d433ae1c@sohara.org> <f5bd4ea5-1bcd-9dc7-6898-9c6f236679ae@holgerdanske.com> <20211003102037.7da16f00d478fc1e8d15c443@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59ae4222-360c-afbe-4657-0a44d0d46d81>