From owner-freebsd-questions@FreeBSD.ORG Mon May 13 05:58:41 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1AB0092A for ; Mon, 13 May 2013 05:58:41 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id 99B0380A for ; Mon, 13 May 2013 05:58:40 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id r4D5wZaX014960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 May 2013 07:58:36 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id r4D5wZwd014957; Mon, 13 May 2013 07:58:35 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Mon, 13 May 2013 07:58:35 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Roland van Laar Subject: Re: ZFS mirror install /mnt is empty In-Reply-To: <5190058D.2030705@micite.net> Message-ID: References: <5190058D.2030705@micite.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-948406826-1368424715=:72982" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 05:58:41 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-948406826-1368424715=:72982 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Sun, 12 May 2013 23:11+0200, Roland van Laar wrote: > Hello, > > I followed these[1] step up to the Finishing touches. > I'm using a 9.1 Release. > > After the install I go into the shell and /mnt is empty. > The mount command shows that the zfs partitions are mounted. > When I reboot the system it can't find the bootloader. > > What can I do to fix this? > > Thanks, > > Roland van Laar > > [1] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE Looking through the wiki notes I would do a couple of things in a different way. Since you're running 9.1-RELEASE you should take into account the need for the /boot/zfs/zpool.cache file until 9.2-RELEASE exist or you switch to the latest 9-STABLE. Create your zpool using a command like this one: zpool create -o cachefile=/tmp/zpool.cache -m /tmp/zroot zroot /dev/gpt/disk0 Copy the /tmp/zpool.cache file to /tmp/zroot/boot/zfs/zpool.cache, or in your case to /mnt/boot/zfs/zpool.cache after extracting the base and kernel stuff. In the wiki section Finishing touches, perform step 4 before step 3. The final command missing in step 3 should be zfs unmount -a once more. Avoid step 5 at all cost! Maybe this recipe is easier to follow, it sure works for 9.0-RELEASE and 9.1-RELEASE, I only hope you're happy typing long commands, and yes, command line editing is available in the shell: https://ximalas.info/2011/10/17/zfs-root-fs-on-freebsd-9-0/ Due to advances in hard drive technology, for the worse I'm afraid, i.e. 4K disk blocks, I wouldn't bother enabling compression on any ZFS file systems. I might change my blog posts to reflect this stop gap. If you do happen to have 4K drives, you might want to check out this blog post: https://ximalas.info/2012/01/11/new-server-and-first-attempt-at-running-freebsdamd64-with-zfs-for-all-storage/ -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ --2055831798-948406826-1368424715=:72982--