From owner-freebsd-questions@FreeBSD.ORG Wed Jan 6 20:37:18 2010 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 913141065672 for ; Wed, 6 Jan 2010 20:37:18 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 0A2AC8FC14 for ; Wed, 6 Jan 2010 20:37:17 +0000 (UTC) Received: by fxm27 with SMTP id 27so3118778fxm.3 for ; Wed, 06 Jan 2010 12:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=tgNydnzii9PN7DXdT2Q03Wn0F9USvyyfjyDWSQgfGU4=; b=t8dnvYD251LXsDOmtOW0gqWNNrgnBs2NTSwd7a/BZtQvoRoKbBkvoRgWnihbx3uzcA b8WXa3ig9KKSyF5075/7niaODPwVZ3WxQq6NiGiAWqHquIo14ctpyX/R2nxpY76H9szq sJko4aw8uDKOkMAyTMX8nNJz7xdwwZN+jOHPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=X9hzvW4UHb/7FvsYwzd2riQ4Po2/QLGqPR0ShQqnFGkn17Bdnk91vThZZee91P/1H4 jVBVFZsgRyWwuRKs9J4dP7VetIyQEQKqkEcVAjxmuA6juuY0RyTEkCYSLYyZefjAeEWU gWogxf4jZzDTRkzCAKvh7eTT9xDom+1cRosM4= MIME-Version: 1.0 Received: by 10.239.193.140 with SMTP id j12mr1033122hbi.70.1262810230156; Wed, 06 Jan 2010 12:37:10 -0800 (PST) In-Reply-To: <15FCFBD0-9B68-421B-A99C-1038BAD61362@gmail.com> References: <15FCFBD0-9B68-421B-A99C-1038BAD61362@gmail.com> Date: Wed, 6 Jan 2010 20:37:10 +0000 Message-ID: From: krad To: Anselm Strauss Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Booting from ZFS raidz 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: Wed, 06 Jan 2010 20:37:18 -0000 2010/1/6 Anselm Strauss > Hi, > > I'm experimenting with a ZFS only system and booting from it in VirtualBox. > Thanks to various mails and forum posts from the net I have a working > scenario with booting from a ZFS mirror. However, I can't get the thing to > work with raidz with the exactly same setup, except that the pool is now > raidz instead of mirror and there is one more disk. I feel sure I have all > the stuff with partitioning, boot loader installation, etc. right. I tested > this with version 8.0-RELEASE on 64bit. > > Now, before I go into detailed explaining, is raidz really supported? I > always get the following error after it says "FreeBSD/i386 bootstrap loader, > Revision 1.1": > > ZFS: i/o error - all block copies unavailable > ZFS: can't read MOS object directory > (repeats a lot) > Can't find root filesystem - giving up > can't load 'kernel' > > I think the "MOS" message comes from zfs_mount_root() in > /usr/src/sys/boot/zfs/zfsimpl.c. I asume that is the point when /boot/loader > has been loaded and now wants to load the kernel into memory. After that > error I'm in the loader prompt. When I try to load any file I always get the > same error as above. > > Anyone any ideas? > > Thanks, > Anselm_______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Opensolaris doesnt support booting off raidz yet so id be surprised if you managed to, as i doubt all the relevent code is in the loader, and robust enough yet. I have seen a few hacks mentioned in places that might get it to work, bit these are unsupported and might flake out at any time. Also why do you need a raidz for the os? It implys you might be mixing data on the pool as well. This isnt best practice, and you are best off having a separate pool for os and data. If you have 3+ drives, gpt it into 3 or 4 chunks dependent on whether you want swap on a zvol. Have and x way mirror for the os and then the last and biggest gpt slice use for your raidz data. Better still have the os and data on separate spindles