Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2015 14:26:35 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD Boot Environments
Message-ID:  <555CD1DB.6010807@freebsd.org>
In-Reply-To: <20150520181006.GB21070@zxy.spb.ru>
References:  <20150520181006.GB21070@zxy.spb.ru>

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

On 2015-05-20 14:10, Slawa Olhovchenkov wrote:
> I am try to use Boot Environments and have some misundertanding.
> As I see beadm manage only zroot/ROOT. But base upgrade touch not only
> /{boot,etc,bin,lib,libexec,rescue,sbin} but also /usr and from time to
> time /var. And don't touch (at most) /root.
>=20
> What correct way to use Boot Environments?
> Rename zfs datasets as:
>=20
> From			To
> zroot/usr		zroot/ROOT/default/usr
> zroot/usr/home		zroot/home
>=20
> create
>=20
> zroot/root
>=20
> leave (rename after moving zroot/usr)
>=20
> zroot/usr/ports
> zroot/usr/src
> zroot/usr/local
>=20
> Or somehow else?
>=20
> How prepare upgrades for such install?
>=20
> Create model setup, witch similar enviroment
> zfs snap modelroot@N
> do install{world,kernel} DESTDIR=3D/modelroot
> do mergemaster -I -U -D /modelroot
> zfs send -i N-1 modelroot@N | ssh host zfs recv zroot/ROOT/new
>=20
> Or somehow else?
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o=
rg"
>=20

The typical way (done by bsdinstall) is that your zroot/usr dataset, is
set 'canmount=3Doff', and only exists for you to create child datasets.

Any files written to /usr/bin etc, actually end up going to the
ROOT/default dataset

you can tell by looking at 'zfs list' and your zroot/usr is only like
200kb, instead of 100s of megabytes. It also won't be listed in the
output of 'mount'.

--=20
Allan Jude


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJVXNHeAAoJEJrBFpNRJZKfdXUQALG33X3/DS/xVGAH4ntPQ+Ix
JT9F4pE6XoaZthUXQo1K7lB5WNZSg6g62ThP/4BquIOh9EsZDoIFBLa2w77qu1rw
gwYl7bU78moloacZpAEm9HI/y6kUvXOruP+bFGRjC9pTihx78VditqqBs/6nIaSs
IXSGjvzj/nKbERunZdn8eeWU36fFvker1wvrNdPfD2dLGxw8i1/hZjGXfIRicZCV
iW3OZSeXRPAkh+YMKc8bvB8E1Z1IGQmfU9iR3AxzgMELyAc1hD8YlssTfqzFghCN
639IN808W0LytvR32HQ3bL+i9kSMlTtRha3ynqpWwXgepQ+Tl7gLVAKmy2yAHV2q
1MdtnW+KQ95+4zf6raKCfieXUG8osbiq0rrbEK1RYZBjknxRN0nRy2D4/Woh+Jr1
OPzeP+3M+vk/VNme4eg2nb11SodVtXODqEzsJ9HKZFEQC5cA45dbUEMkjxhVcStm
0z1IZ4SRMu5hk4iYv6hrZT1f+e9htOvie8UsozCeTRi+XpuP1P9RFRd+RNfPh1Go
aiGMpUo3/FgQNGlpujjKG2DFaj3ua95oOWp3CMh2BalrvPeJgk3G1FfcUjAuShHC
rtpyRYGZ0jo4bswJOxUW6doaoobJZXa1KoyDDJ7CgSW76unmdJtDXK3sVA0rtA3w
ZTPQvKdQQw60D2FU4rNr
=QYzu
-----END PGP SIGNATURE-----

--ld62L0qTxpmwaObsH9DEgvsAtQIVlBn4k--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?555CD1DB.6010807>