Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Feb 2015 07:40:39 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD ZFS with Boot Environments (Was: 10.1-RELEASE: bsdinstall on zfs: /var and /usr on zroot/ROOT/default)
Message-ID:  <54D86477.8000709@FreeBSD.org>
In-Reply-To: <4483B8DB-D7C6-4337-A264-8125003CB7BD@gromit.dlib.vt.edu>
References:  <20150208113656.GE3395@lan.sigsys.de> <alpine.BSF.2.00.1502082341020.83088@gw-old.x-art.ru> <20150208232623.GA5255@lan.sigsys.de> <54D7F529.4030103@quip.cz> <4483B8DB-D7C6-4337-A264-8125003CB7BD@gromit.dlib.vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--MAXgoPoswROTg5LaWNriioB3kNilukK73
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 08/02/2015 23:59, Paul Mather wrote:
> See, also, the sysutils/beadm port for how to create and use boot
> environments under FreeBSD.

beadm is great.  I keep meaning to contribute a 'beadm chroot BOOTENV'
verb, which would mount the BE, mount a devfs filesystem inside it and
chroot to the BE -- and then undo all that once you exit from the BE.
Some day...

> I don't know if the bsdinstall ZFS partitioning option is compatible
> with sysutils/beadm boot environments, but, from what I've seen in
> this thread, it looks like it is.

I find the bsdinstall layout is /close/ to what I like to use for a
setup with Boot Environments, but needs some tweaking.

   * Use /home as a separate ZFS directly rather than symlinking from
     /usr/home  (It's not clear to me why this isn't the default.
     Everything treats home directories as '/home/username' and with
     ZFS there's no need to make .../home a child of /usr because of
     partitioning or space usage considerations.)

   * Create an overlay /var (ie. with canmount=3Dno) to act as a mount
     point for /var/log, /var/tmp, /var/crash *outside* the boot
     environments.

   * Ditto with /usr or /usr/local for some special use directory
     heirarchies under /usr -- eg. /usr/local/pgsql for Postgresql
     servers.

Otherwise the BE consists of all of /, /usr and /var.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--MAXgoPoswROTg5LaWNriioB3kNilukK73
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)

iQJ8BAEBCgBmBQJU2GSDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATvA4P/iMwzGc50A5crhu9WfHVBMMF
PMHqIM4VS4nMOYs8WY0qWXRiIzc2Rc53Tq2wVk6rK2jASdm6/WrLIN/E/ICjILmY
+OMaexrYczWd4cTqYIOjrSfN1Fo84dVzq/WzkOmkTusRukRHp5sW7lDpjr6Zavek
nosn3QSDrexGQb0tylFkgH1GS78rTv1SvOf7SaXW5HRsMFYEXf1uqxw5nuJqYbkl
k1YvPpjYUeBvtqPhBUmzsoq5fzEgGvwj9O+iL8hly2QuJP8bc0eHqH1U01VfEaJG
VUgxc3JqgHKTACf1k0NqyvUqApo5jQTlwBv37rIReVq3MLyl1L12vbOokidcaO0A
yz/NtYImiwgMP6iYAY5Naom811ODP0z88MfdNRzdB8z0AVRQS0N2WWw8TuUbAaa8
u9WsoAN97iihaiHxP+01bO2YdVuTzMS340LiIeVaz4GwBJkWtJGw5huAGJfQNP7f
0EGPwNyo+OzKyUmzq/iZSyLGAaWugTnMTkvHHv7+/sOKpN29liavLaZHsOAA8pmq
3qGQJMDYLs5s4N5Bh65npHGI/noO4KSrBndy1AUsi15SLEJmp1jKhprNoIL+8+7w
YphHTNIgVluwhOExdYDBqaQaqDNMMsYc4Mx35OIeDb6kT/50IR9cw2ODxPXkqn9Z
JZbGLbVaVsnY0mYEUBid
=FfFz
-----END PGP SIGNATURE-----

--MAXgoPoswROTg5LaWNriioB3kNilukK73--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54D86477.8000709>