From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 09:32:14 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7D04106564A for ; Fri, 22 Apr 2011 09:32:14 +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 425BF8FC19 for ; Fri, 22 Apr 2011 09:32:12 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.4/8.14.4) with ESMTP id p3M9W84F097704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Apr 2011 11:32:08 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.4/8.14.4/Submit) with ESMTP id p3M9W7vA097701; Fri, 22 Apr 2011 11:32:08 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 22 Apr 2011 11:32:02 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: wolfgang@riegler.homeip.net Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: =?ISO-8859-1?Q?Fagskolen_i_Gj=F8vik?= OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-800059435-1303464728=:2015" X-Spam-Status: No, score=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on mail.fig.ol.no Cc: FreeBSD questions Subject: Re: Cannot boot from ZFS raidz1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 09:32:14 -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-800059435-1303464728=:2015 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu Apr 21 10:52:49 UTC 2011, Wolfgang Riegler wrote: > I have used this setup guide > (http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1) line by line > with the 8.2-RELEASE DVD for amd64 to install a VirtualBox guest for > testing. > The only difference to the setup guide: I use a SAS controler, so > devicename is da0, da1, da2 instead of ad0, etc. I tried it with a > SATA controler as well, but no differences. > > After reboot, I get the following error from the loader: > ZFS: i/o error - all block copies unavailable > ZFS: can't read MOS object directory > Can't find root filesystem - giving up > ZFS: unexpected object set type 0 > ZFS: unexpected object set type 0 > > FreeBSD/x86 boot > Default: zroot:/boot/kernel/kernel > boot: > ZFS: unexpected object set type 0 > > FreeBSD/x86 boot > Default: zroot:/boot/kernel/kernel > boot: I managed to delete your message before I got a chance to send a reply to the list. Against better judgement I'm going to send this reply to the list, knowing that I might create a new thread with the same subject as your OP. A VirtualBox guest will only see one hard drive at the BIOS level during boot. Thus, you should recreate your system using mirrored drives for booting the OS. Once the OS has gained control over the system, ZFS is able to see all the attached disks. Maybe it's not so bad to separate the OS and your data, with the OS stored on a couple of mirrored disks and your precious data stored on three disks in raidz1 formation. This recipe is a good starting point for setting up the OS: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror I prefer using the remaining disk space for the freebsd-zfs partitions and not limiting them to only 60 GiB. HTH, Trond. - -- - ---------------------------------------------------------------------- Trond Endrestøl | Trond.Endrestol@fagskolen.gjovik.no ACM, NAS, NUUG, SAGE, USENIX | FreeBSD 8.2-STABLE & Alpine 2.00 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk2xSxcACgkQbYWZalUoElve+wCfefbLOdr3xY7YyzbiuMfn4SVT cYIAn1tpdOh921kjkThYVwq83sGYHwEG =N8Ei -----END PGP SIGNATURE----- --2055831798-800059435-1303464728=:2015--