From owner-freebsd-questions@freebsd.org Fri Jan 19 04:05:54 2018 Return-Path: Delivered-To: freebsd-questions@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 626AAEC0103 for ; Fri, 19 Jan 2018 04:05:54 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 741A96FE74 for ; Fri, 19 Jan 2018 04:05:52 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39916061; Fri, 19 Jan 2018 10:01:01 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.15.2/8.15.2) with ESMTP id w0J45mLs046580; Fri, 19 Jan 2018 11:05:50 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.15.2/8.15.2/Submit) id w0J45jYP046576; Fri, 19 Jan 2018 11:05:45 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 19 Jan 2018 11:05:45 +0700 From: Victor Sudakov To: Trond Endrest?l Cc: FreeBSD questions Subject: Re: Dualboot and ZFS Message-ID: <20180119040545.GA44997@admin.sibptus.transneft.ru> References: <20180115125241.GB60956@admin.sibptus.transneft.ru> <20180115144747.GA65526@admin.sibptus.transneft.ru> <20180115151526.GA66342@admin.sibptus.transneft.ru> <20180116034929.GB89443@admin.sibptus.transneft.ru> <20180118051423.GA94227@admin.sibptus.transneft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 04:05:54 -0000 Trond Endrest?l wrote: [dd] > > The key is to place some of the bootcode in the boot block of the > disklabel and the remainder in the boot block of the zpool. OK, I'm experimenting in bhyve anyway, so I can put all that bootblock hassle for later. bhyve does not use the bootblocks anyway. There is another issue that I don't understand. After creating the root zpool like the howtos (and you) recommend, I get a bootable system, but for some reason all the children datasets of the BE are not mounted after boot. Like this: root@test1:~ # mount zroot3/ROOT/default on / (zfs, local, nfsv4acls) devfs on /dev (devfs, local, multilabel) root@test1:~ # root@test1:~ # zfs list -o name,used,avail,refer,mountpoint,canmount,mounted NAME USED AVAIL REFER MOUNTPOINT CANMOUNT MOUNTED zroot3 1.05G 6.64G 23K /zroot3 on no zroot3/ROOT 1.05G 6.64G 23K none on no zroot3/ROOT/default 1.05G 6.64G 1.05G / on yes zroot3/tmp 24K 6.64G 24K /tmp on no zroot3/usr 92K 6.64G 23K /usr off no zroot3/usr/home 23K 6.64G 23K /usr/home on no zroot3/usr/ports 23K 6.64G 23K /usr/ports on no zroot3/usr/src 23K 6.64G 23K /usr/src on no zroot3/var 266K 6.64G 23K /var off no zroot3/var/audit 23K 6.64G 23K /var/audit on no zroot3/var/crash 23.5K 6.64G 23.5K /var/crash on no zroot3/var/log 150K 6.64G 150K /var/log on no zroot3/var/mail 23K 6.64G 23K /var/mail on no zroot3/var/tmp 24K 6.64G 24K /var/tmp on no root@test1:~ # What have I forgotten when creating the pools? This is how I did it: http://termbin.com/awuy Based on https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition I can mount all those datasets manually though: root@test1:~ # zfs mount zroot3/var/mail root@test1:~ # mount zroot3/ROOT/default on / (zfs, local, nfsv4acls) devfs on /dev (devfs, local, multilabel) zroot3/var/mail on /var/mail (zfs, local, nfsv4acls) root@test1:~ # But for some reason it's not happening on boot. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859