From owner-freebsd-questions@FreeBSD.ORG Wed May 15 06:45:02 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 343B9EA5 for ; Wed, 15 May 2013 06:45:02 +0000 (UTC) (envelope-from roland@micite.net) Received: from smtp08.online.nl (smtp08.online.nl [194.134.42.53]) by mx1.freebsd.org (Postfix) with ESMTP id BFCA0219 for ; Wed, 15 May 2013 06:45:01 +0000 (UTC) Received: from smtp08.online.nl (localhost [127.0.0.1]) by smtp08.online.nl (Postfix) with ESMTP id CFA3C66043 for ; Wed, 15 May 2013 08:44:53 +0200 (CEST) Received: from micite.net (s529d340f.adsl.online.nl [82.157.52.15]) by smtp08.online.nl (Postfix) with ESMTP for ; Wed, 15 May 2013 08:44:53 +0200 (CEST) Received: (qmail 67876 invoked by uid 98); 15 May 2013 06:32:59 -0000 Received: from 82.157.52.15 (roland@82.157.52.15) by lutetium.micite.net (envelope-from , uid 82) with qmail-scanner-2.01 (spamassassin: 3.3.2. Clear:RC:0(82.157.52.15):SA:0(4.8/5.0):. Processed in 2.820076 secs); 15 May 2013 06:32:59 -0000 X-Spam-Status: No, score=4.8 required=5.0 X-Spam-Level: ++++ Received: from unknown (HELO ?192.168.1.68?) (roland@82.157.52.15) by 192.168.1.64 with CAMELLIA256-SHA encrypted SMTP; 15 May 2013 06:32:56 -0000 Message-ID: <51932EE1.3010601@micite.net> Date: Wed, 15 May 2013 08:44:49 +0200 From: Roland van Laar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: ZFS mirror install /mnt is empty References: <5190058D.2030705@micite.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Online-Scanned: by Cloudmark authority (on smtp08.online.nl) 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: Wed, 15 May 2013 06:45:02 -0000 On 13-05-13 07:58, Trond Endrestøl wrote: > 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/ Thank you for that link. This worked (better). I'm getting into the 'mountroot>' shell during the boot. Oh well, I'm getting better at this. The ZFS guides on the wiki leave you with a empty root zfs filesystem after the installation. After I know a bit more about ZFS and why the FreeBSD wiki is wrong on ZFS installation I hope to edit them. Thank you all for your answers, Regards, Roland van Laar