Re: [CFT] Patch to bsdinstall to support root-on-ZFS and GELI

From: Allan Jude <freebsd_at_allanjude.com>
Date: Thu, 10 Oct 2013 13:54:33 -0400
On 2013-10-10 13:21, Warren Block wrote:
> [off-list reply]
>
> I have not tested the new version yet.  Is there any chance it
> supports setting up a gmirror?
>
> Something I've been meaning to discuss with Devin is the concept of
> presets.  The user would be able to choose from a list of presets:
>
>   Filesystem Layout
>   -----------------
>   Merged / filesystem
>   Split /, /var, /tmp, /usr filesystems
>
> then
>
>   Filesystem Type
>   ---------------
>   UFS
>   ZFS
>
> then
>
>   Disk Layout
>   -----------
>   Plain disk
>   Mirror
>   RAID
>
> Those choices might change depending on earlier ones, like if they had
> chosen ZFS earlier they would get a choice of Mirror, RAID-Z1,
> RAID-Z2, and so on.
>
> All this would build up a configuration, and at the end the user can
> edit it (filesystem sizes, for instance), then pick Go and walk away.

All of the UFS stuff is in C, so is read-only for me.

It is something I'd like to do, but it is really iffy if that can be
done in time for 10.0

In general, gmirror support could be added to the ZFS section (renamed
to something else). So in our current 'zfs' menu, would become the 'new
partition manager' menu. Add an extra option for ZFS or UFS, and then
the vdev menu would context switch between zfs vdevs and ufs options
like gmirror and gstripe or something

Adding an extra option for / or / /var /tmp /usr is not a bad idea
either, maybe even for ZFS, offering a simpler set of datasets that
might be some people's preference (especially if I can't do the
following in time:)

In a future revision of the zfsboot stuff, I'd like to offer a dialog
where users can actually adjust the ZFS datasets. provide a menu listing
the created dataset, with option to add more, and when you select a
dataset, you can adjust its options or delete it (some really scary
validation needs to happen here so you can't delete /usr if you have
/usr/local)

If the UFS stuff took the form of the current ZFS stuff (give me the
entire disk, and i'll run with it), it would be fairly easy to
implement, and could probably be done between 10.0-BETA1 and 10.0-BETA2

The more powerful features of the current partedit code, where it
actually shows what is on your disk already, and allows you to just
adjust it, and in general manage dual booting etc, that is a lot more
complicated.


-- 
Allan Jude
Received on Thu Oct 10 2013 - 15:54:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC