Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2017 11:31:31 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: beadm activate, cp: /tmp/BE-.../boot/zfs/zpool.cache: No such file or directory
Message-ID:  <42d96984-e1dc-9bc1-41b4-f4bf39da4566@freebsd.org>
In-Reply-To: <3c198c78-46fc-9c2c-041e-5efee251ece8@gmail.com>
References:  <3c198c78-46fc-9c2c-041e-5efee251ece8@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--P9BXATPpLcAVCNJN6in1hXtAhuuRex0jX
Content-Type: multipart/mixed; boundary="UKBmHN8Nm1PJbPw2i9oWPAVcOm3lhGnIw";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-current@freebsd.org
Message-ID: <42d96984-e1dc-9bc1-41b4-f4bf39da4566@freebsd.org>
Subject: Re: beadm activate, cp: /tmp/BE-.../boot/zfs/zpool.cache: No such
 file or directory
References: <3c198c78-46fc-9c2c-041e-5efee251ece8@gmail.com>
In-Reply-To: <3c198c78-46fc-9c2c-041e-5efee251ece8@gmail.com>

--UKBmHN8Nm1PJbPw2i9oWPAVcOm3lhGnIw
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2017-07-11 10:18, Graham Perrin wrote:
> UEFI, booted from GELI-encrypted ZFS.
>=20
> Whenever I attempt to activate a boot environment, activation fails.
> Instead, the environment is mounted.
>=20
> I tried both beadm and (below) beadm-devel.
>=20
> Thoughts? Is this, maybe, a known issue when booting r320599 from
> encrypted ZFS?
>=20
> Also: at boot time, the list of boot environments is empty. I might
> workaround,
>=20
> lszfs poolname/ROOT
> set vfs.root.mountfrom=3Dzfs:poolname/ROOT/bename
>=20
> Thanks
>=20
> ----
>=20
> # date ; uptime ; uname -a
> Tue Jul 11 09:15:42 BST 2017
>  9:15AM  up 9 mins, 3 users, load averages: 0.26, 0.33, 0.19
> FreeBSD momh167-gjp4-hpelitebook8570p-freebsd 12.0-CURRENT FreeBSD
> 12.0-CURRENT #0 r320599: Mon Jul  3 15:34:15 UTC 2017
> root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> # pkg info beadm
> beadm-1.2.7_2
> Name           : beadm
> Version        : 1.2.7_2
> Installed on   : Mon Jul 10 21:44:13 2017 BST
> Origin         : sysutils/beadm
> Architecture   : FreeBSD:12:amd64
> Prefix         : /usr/local
> Categories     : sysutils
> Licenses       : BSD2CLAUSE
> Maintainer     : bdrewery@FreeBSD.org
> WWW            : https://github.com/vermaden/beadm/
> Comment        : Solaris-like utility to manage Boot Environments on ZF=
S
> Annotations    :
>         repo_type      : binary
>         repository     : FreeBSD
> Flat size      : 30.6KiB
> Description    :
> beadm is an Illumos/Solaris-like utility for FreeBSD to manage
> Boot Environments on ZFS filesystems.
>=20
> WWW: https://github.com/vermaden/beadm/
> # pkg install beadm-devel
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date.
> Updating area51 repository catalogue...
> area51 repository is up to date.
> Updating poudriere repository catalogue...
> poudriere repository is up to date.
> Updating trueos-base repository catalogue...
> trueos-base repository is up to date.
> All repositories are up to date.
> Checking integrity... done (2 conflicting)
>   - beadm-devel-1.2.99.20150924 [poudriere] conflicts with beadm-1.2.7_=
2
> [installed] on /usr/local/sbin/beadm
>   - beadm-devel-1.2.99.20150924 [FreeBSD] conflicts with beadm-1.2.7_2
> [installed] on /usr/local/sbin/beadm
> Checking integrity... done (0 conflicting)
> The following 2 package(s) will be affected (of 0 checked):
>=20
> Installed packages to be REMOVED:
>         beadm-1.2.7_2
>=20
> New packages to be INSTALLED:
>         beadm-devel: 1.2.99.20150924 [poudriere]
>=20
> Number of packages to be removed: 1
> Number of packages to be installed: 1
>=20
> Proceed with this action? [y/N]: y
> [1/2] Deinstalling beadm-1.2.7_2...
> [1/2] Deleting files for beadm-1.2.7_2: 100%
> [2/2] Installing beadm-devel-1.2.99.20150924...
> [2/2] Extracting beadm-devel-1.2.99.20150924: 100%
> # beadm create 2017-07-11-09
> Created successfully
> # beadm activate 2017-07-11-09
> cp: /tmp/BE-2017-07-11-09.H0k1WFYJ/boot/zfs/zpool.cache: No such file o=
r
> directory
> # beadm list
> BE            Active Mountpoint                      Space Created
> default       NR     /                                8.3G 2017-07-07 1=
0:50
> 2017-07-11-09 -      /tmp/BE-2017-07-11-09.H0k1WFYJ   8.0K 2017-07-11 0=
9:16
> # gpart show
> =3D>       40  976773088  ada0  GPT  (466G)
>          40     409600     1  efi  (200M)
>      409640       2008        - free -  (1.0M)
>      411648    4194304     2  freebsd-zfs  (2.0G)
>     4605952   33554432     3  freebsd-swap  (16G)
>    38160384  938612736     4  freebsd-zfs  (448G)
>   976773120          8        - free -  (4.0K)
>=20
> # mount
> hpelitebook8570p/ROOT/default on / (zfs, local, noatime, nfsv4acls)
> devfs on /dev (devfs, local, multilabel)
> procfs on /proc (procfs, local)
> bootpool on /bootpool (zfs, local, nfsv4acls)
> hpelitebook8570p on /hpelitebook8570p (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere on /hpelitebook8570p/poudriere (zfs, local,
> noatime, nfsv4acls)
> hpelitebook8570p/poudriere/jails on /hpelitebook8570p/poudriere/jails
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/ports on /hpelitebook8570p/poudriere/ports
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
> hpelitebook8570p/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)=

> hpelitebook8570p/usr/home/grahamperrin on /usr/home/grahamperrin (zfs,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data on /usr/local/poudriere/data (zfs,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/.m on /usr/local/poudriere/data/.m (zfs=
,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/cache on /usr/local/poudriere/data/cach=
e
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/logs on /usr/local/poudriere/data/logs
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/packages on
> /usr/local/poudriere/data/packages (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/wrkdirs on
> /usr/local/poudriere/data/wrkdirs (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/jails/current on
> /usr/local/poudriere/jails/current (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/ports/freebsd-ports-kde on
> /usr/local/poudriere/ports/freebsd-ports-kde (zfs, local, noatime,
> nfsv4acls)
> hpelitebook8570p/usr/ports on /usr/ports (zfs, local, noatime, nosuid,
> nfsv4acls)
> hpelitebook8570p/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/var/VirtualBox on /var/VirtualBox (zfs, local, noatime=
,
> nfsv4acls)
> hpelitebook8570p/var/audit on /var/audit (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/crash on /var/crash (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/log on /var/log (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/mail on /var/mail (zfs, local, nfsv4acls)
> hpelitebook8570p/var/tmp on /var/tmp (zfs, local, noatime, nosuid,
> nfsv4acls)
> linprocfs on /compat/linux/proc (linprocfs, local)
> tmpfs on /compat/linux/dev/shm (tmpfs, local)
> fdescfs on /dev/fd (fdescfs)
> hpelitebook8570p/ROOT/2017-07-11-09 on /tmp/BE-2017-07-11-09.H0k1WFYJ
> (zfs, local, noatime, nfsv4acls)
> # zfs list
> NAME                                                 USED  AVAIL REFER =

> MOUNTPOINT
> bootpool                                             135M  1.73G 133M=20
> /bootpool
> hpelitebook8570p                                    78.2G   352G 88K=20
> /hpelitebook8570p
> hpelitebook8570p/ROOT                               8.27G   352G 88K  n=
one
> hpelitebook8570p/ROOT/2017-07-11-09                    8K   352G 8.27G =

> /tmp/BE-2017-07-11-09.H0k1WFYJ
> hpelitebook8570p/ROOT/default                       8.27G   352G 8.27G =
 /
> hpelitebook8570p/poudriere                          3.62G   352G 88K=20
> /hpelitebook8570p/poudriere
> hpelitebook8570p/poudriere/data                      732M   352G 96K=20
> /usr/local/poudriere/data
> hpelitebook8570p/poudriere/data/.m                    88K   352G 88K=20
> /usr/local/poudriere/data/.m
> hpelitebook8570p/poudriere/data/cache               12.6M   352G 12.6M =

> /usr/local/poudriere/data/cache
> hpelitebook8570p/poudriere/data/logs                42.8M   352G 42.8M =

> /usr/local/poudriere/data/logs
> hpelitebook8570p/poudriere/data/packages             676M   352G 676M=20
> /usr/local/poudriere/data/packages
> hpelitebook8570p/poudriere/data/wrkdirs               88K   352G 88K=20
> /usr/local/poudriere/data/wrkdirs
> hpelitebook8570p/poudriere/jails                     949M   352G 88K=20
> /hpelitebook8570p/poudriere/jails
> hpelitebook8570p/poudriere/jails/current             948M   352G 948M=20
> /usr/local/poudriere/jails/current
> hpelitebook8570p/poudriere/ports                    1.98G   352G 88K=20
> /hpelitebook8570p/poudriere/ports
> hpelitebook8570p/poudriere/ports/freebsd-ports-kde  1.98G   352G 1.98G =

> /usr/local/poudriere/ports/freebsd-ports-kde
> hpelitebook8570p/tmp                                15.9M   352G 15.9M =

> /tmp
> hpelitebook8570p/usr                                66.2G   352G 88K  /=
usr
> hpelitebook8570p/usr/home                           64.3G   352G 547M=20
> /usr/home
> hpelitebook8570p/usr/home/grahamperrin              63.7G   352G 58.2G =

> /usr/home/grahamperrin
> hpelitebook8570p/usr/ports                          1.34G   352G 1.34G =

> /usr/ports
> hpelitebook8570p/usr/src                             638M   352G 638M=20
> /usr/src
> hpelitebook8570p/var                                1.25M   352G 88K  /=
var
> hpelitebook8570p/var/VirtualBox                       88K   352G 88K=20
> /var/VirtualBox
> hpelitebook8570p/var/audit                            88K   352G 88K=20
> /var/audit
> hpelitebook8570p/var/crash                            88K   352G 88K=20
> /var/crash
> hpelitebook8570p/var/log                             684K   352G 684K=20
> /var/log
> hpelitebook8570p/var/mail                            152K   352G 152K=20
> /var/mail
> hpelitebook8570p/var/tmp                              88K   352G 88K=20
> /var/tmp
> #
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"


Boot environments with a bootpool do not work. Support for GELI with
UEFI is coming soon. This will allow you to move /boot into the GELI
encrypted pool, and get rid of the bootpool, and properly use boot
environments.

--=20
Allan Jude


--UKBmHN8Nm1PJbPw2i9oWPAVcOm3lhGnIw--

--P9BXATPpLcAVCNJN6in1hXtAhuuRex0jX
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)

iQIcBAEBAgAGBQJZZO9WAAoJEBmVNT4SmAt+M9QQANOKJqsy/whsMUZaKnr/GoWy
xldu//rdAYf/+Kc2J5wUU6EoEeQ33bcdLy4Q9NUA6gGhXgP+LhS6gKPzD0AC+ghN
/ieqUx0Zj6bJ5THz7r7UroimOlZ/byHsljPxFYJ5r1bovFjimh0px4eHz+60qYSz
lrkozygTB5bAr9YyzUo6NyloZvevf8uQZdLQyyUg4vyXgv1Sa9lznB5WaSMzxA6O
KLt3bqt0X1kss7c5qek94Xp/RovL+ZEfGmElNVWuA3E+7K3N/zL9wc2XWrZmrWAG
mZEs8I3xI+NRphYTH9XmT0yyLEzCnPfAgo4obZlODDzO5rT/HbZobizmFV/JwCNa
AvaxEgmnPyDQgniZadbdtAD5/d2sAp+a9Wxo5iC4QQhx4sOMHw2UPWpSnuUASJ/1
owBE8tu0HuIembX6t7hEnhd9Nhm6ZFrYbA/qyxqGHTVE1zkWP4e1FclBIu/TTlZr
ZMU6x2bhvrEQT73GL9fTLrs9PsuxHJmCuXRtcVRGRRq22UeBZQVui7uV4V5Aa9Et
Z4wtTAK7uqKnWAd/aAW+l4tMr17KJKzfGsACuicVr7TQy7ayHZ9hsImalLgLt96f
NKJi85rfUBmW/VPkUKQ7rhfy9HzTyUO3VB5I52xieK501PpqxtQVGK4wmXcVkV9D
Lipeg+qt5Z+DKdoiYVHD
=pGGL
-----END PGP SIGNATURE-----

--P9BXATPpLcAVCNJN6in1hXtAhuuRex0jX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42d96984-e1dc-9bc1-41b4-f4bf39da4566>