From owner-freebsd-questions@FreeBSD.ORG Wed Mar 6 02:56:15 2013 Return-Path: Delivered-To: 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 74D1B5E1 for ; Wed, 6 Mar 2013 02:56:15 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail05.adl6.internode.on.net (unknown [IPv6:2001:44b8:8060:ff02:300:1:6:5]) by mx1.freebsd.org (Postfix) with ESMTP id 07463BE0 for ; Wed, 6 Mar 2013 02:56:14 +0000 (UTC) Received: from ppp247-71.static.internode.on.net (HELO leader.local) ([203.122.247.71]) by ipmail05.adl6.internode.on.net with ESMTP; 06 Mar 2013 13:26:09 +1030 Message-ID: <5136B047.3000700@ShaneWare.Biz> Date: Wed, 06 Mar 2013 13:26:07 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Doug Poland Subject: Re: Booting from an aribrary disk in ZFS RAIDZ on 8.x References: <20130305184446.GA81297@polands.org> In-Reply-To: <20130305184446.GA81297@polands.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Wed, 06 Mar 2013 02:56:15 -0000 On 06/03/2013 05:14, Doug Poland wrote: > Hello, > > I'm running ZFS filesystem ver 3, storage pool ver 14, on 8-STABLE > amd64. The kernel build is rather dated from around Feb 2010. You probably want to update that sometime. > I have 6 disks in a RAIDZ configuration. All disks were sliced > the same with gpart (da(n)p1,p2,p3) with bootcode written to index 1, > swap on index 2 and freebsd-zfs on index 3. > > Given this configuration, I should be able to boot from any of the 6 > disks in the RAIDZ. If this is a true statement, how do I make that > happen from the loader prompt? You don't boot from an individual disk you boot from a zpool - all disks are linked together making one zpool "disk". > At the loader prompt when I type show, I get the following relevant > variables: > > currdev="zfs0" > loaddev="disk1a:" > vfs.root.mountfrom="zfs:rpool" zfs:rpool is the "disk" you boot from. I'm guessing that you ask as your machine isn't booting. You probably need to boot from a cd and do adjustments. You have zfs_load=yes in /boot/loader.conf ? You have vfs.root.mountfrom="zfs:rpool" in /boot/loader.conf ? You have zfs_enable=yes in /etc/rc.conf ? You have zpool set bootfs=rpool rpool or similar? I think it has been resolved recently but you used to have to copy the zpool.cache into /boot Did you set the mountpoint when installing and not change it back? I had issues with setting up with a mountpoint / and changing it to legacy. Setting the mountpoint as you want before setup then use altroot to mount it for install is the way to go. If you search wiki.freebsd.org for zfs you can find several examples that may provide hints to what you missed.