From owner-freebsd-current@freebsd.org Sun May 22 18:41:16 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3645B45586 for ; Sun, 22 May 2016 18:41:16 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E4DA1037 for ; Sun, 22 May 2016 18:41:16 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by mail-qk0-x22e.google.com with SMTP id x7so95508493qkd.3 for ; Sun, 22 May 2016 11:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Bj01SxfiAsKCH/SKOjf3jkoIdTSiikBzCbsz6dyCe40=; b=CMzws3ijdnTwh2F/aLT54iYxQKul38uoldMiRrmo5B0v4LIdhNsiZmdWs+bR7wA8me tXk1Ib5j9ot42ysqIJEj9cD2Q9dLfkiJxghkagKcc6olXTYK8/rvLNKb96M/4OggTcGb bjwJTI26rsLOh5oc8gx3ctZS1wJTfhnMBiL7AC7/E+65wqBMY2D7gz7h36mJ+ABYKA14 JOfj6u94V6xI/jDma5tzqQbMbcyqe31KqrGYW3FUMjFMOp4bn58XJaiFMw8Ud7IGh8T1 +zfXenfMisLymZFrcZ5gHfOPK1L7A7rLOWvbmruWfzQZUyLvfbGa1dyxvV9FoNKc+Oi6 JMVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Bj01SxfiAsKCH/SKOjf3jkoIdTSiikBzCbsz6dyCe40=; b=R6wDKDLiDhcdUylIfhyVKsGVPiQ5Ls4nNCT8rzaA7dCXjjvedVC1oKPqFQDm2mqag+ VbwCq7G5FVQJXz3s4QYT3sFk4tMwsPJhYx3p9r0IZBVNy+fZ5rQNX0ctT4fZE5/c/wio dQEaWOzOuYikG4nxUYETDf1m7ea4CZ70k4fEioI+QoAzZUsb+IwMujteMgvtx06IoUf/ EF6LAuDwK5/Ygcct7FmhNXXBIkahb0OMc/IssdglvHKxoM3zCaw3fmde9/Mob+V186Ja PvWZWslz7HRsJxbWrOV9v6+8FQLWORElVz/zlTMRya8rlBBst0HrU3zciaraAvt3s5o3 U5bw== X-Gm-Message-State: ALyK8tLcZQ9Vx5gQaomL0YIzOGFX4Xoe1nJcLY0yrRgwRuD1q92hoBzIaCaCVzH+OsxJQA== X-Received: by 10.55.191.7 with SMTP id p7mr1782328qkf.54.1463942475715; Sun, 22 May 2016 11:41:15 -0700 (PDT) Received: from gmail.com (c-98-216-247-110.hsd1.ma.comcast.net. [98.216.247.110]) by smtp.gmail.com with ESMTPSA id i9sm1450168qte.17.2016.05.22.11.41.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 May 2016 11:41:15 -0700 (PDT) Date: Sun, 22 May 2016 14:41:13 -0400 From: Randy Westlund To: freebsd-current@freebsd.org Subject: ZFS on root, beadm, and the /boot symlink Message-ID: <20160522184113.GU19887@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FfX2iGK5t5ehHnsE" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2016 18:41:17 -0000 --FfX2iGK5t5ehHnsE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable My system was installed from 10.1 or 10.2 with root on ZFS and geli, but now it tracks current. It is not an EFI system. I'm trying to get boot environments to work, but the /boot symlink is throwing me off. I have two pools from the installer's layout; a small bootpool and zroot. The bootpool mounts at /bootpool and /boot is a symlink to it. > randy@mako /> zfs get mountpoint bootpool > NAME PROPERTY VALUE SOURCE > bootpool mountpoint /bootpool local >=20 > randy@mako /> ls -al /boot > lrwxr-xr-x 1 root wheel 13 Aug 12 2015 /boot -> bootpool/boot When I try to activate a boot environment, I get this error: > root@mako:/ # beadm activate r300358 > cp: /tmp/BE-r300358.FS6Xo6ot/boot/zfs/zpool.cache: No such file or direct= ory Because the new boot environment has a symlink to an empty directory: > randy@mako /> ls -al /tmp/BE-r300358.FS6Xo6ot/boot > lrwxr-xr-x 1 root wheel 13 Aug 12 2015 /tmp/BE-r300358.FS6Xo6ot/boot = -> bootpool/boot >=20 > randy@mako /> ls -al /tmp/BE-r300358.FS6Xo6ot/bootpool > total 9 > drwxr-xr-x 2 root wheel 2 Aug 18 2015 . > drwxr-xr-x 21 root wheel 29 May 21 16:23 .. Mergemaster complains about the /boot symlink as well. I'm not sure what the cachefile does or why it's there. It has a recent modification time, but neither pool seems to reference it. > randy@mako /> zpool get cachefile zroot > NAME PROPERTY VALUE SOURCE > zroot cachefile - default > randy@mako /> zpool get cachefile bootpool > NAME PROPERTY VALUE SOURCE > bootpool cachefile - default > randy@mako /> ls -al /boot/zfs/zpool.cache > -rw-r--r-- 1 root wheel 2512 May 21 16:23 /boot/zfs/zpool.cache What's the proper way to handle the /boot symlink with beadm? Randy --FfX2iGK5t5ehHnsE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXQf1JAAoJEGaweXjzNsmpOfwIAKggHVy1Y+JpRh4KN5Aaxert gSHmVXL1KeEa6/MfEXoaRrcjrc2L6qWtm8QY2q0Lzw/u3oOVY6B9srKzCMr+KJog cBNG89wGFplTVdHT78Ol/EAt716v9rBKmS/XtdTyhSt6Exr95UF9KaKRtHOX1kCn +5LmC9Pkiz0IgzB9qooEVX8HueyvHRCDd/1v+LRjsUcxRNb+KVE4YGONwTUoQ26u F588oB9ra/U1I7if5hReVHoI4KBGWXfXDOpA+27ng/TbkMEsffJ2D3Ap9i7F2rbm SWOb6XXlFx9v9dKlthvdmefE42t6POvSlNyohtxZcOSpJ3dJsIDspUZpLq3oXrc= =C75j -----END PGP SIGNATURE----- --FfX2iGK5t5ehHnsE--