From owner-freebsd-questions@FreeBSD.ORG Tue Mar 5 18:44:50 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 13E9F295 for ; Tue, 5 Mar 2013 18:44:50 +0000 (UTC) (envelope-from djp@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id A790171B for ; Tue, 5 Mar 2013 18:44:49 +0000 (UTC) X-Authority-Analysis: v=2.0 cv=adbjbGUt c=1 sm=0 a=IvncpQWizqU0KxmTkcmfsA==:17 a=05_IqN7r2KIA:10 a=XYJHFtupD_QA:10 a=UrS-UqH4pV4A:10 a=PmjUu4vlE_IA:10 a=kj9zAlcOel0A:10 a=bqq2Vc5EAAAA:8 a=9Yd2fpeulKwA:10 a=6I5d2MoRAAAA:8 a=zDYdU3WZ8MiOKdjsAW0A:9 a=CjuIK1q_8ugA:10 a=bD0ntpZo4aIA:10 a=gWmOFBW1Y4AA:10 a=IvncpQWizqU0KxmTkcmfsA==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 67.52.213.147 Received: from [67.52.213.147] ([67.52.213.147:63469] helo=haran.polands.org) by hrndva-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id ED/07-27807-02D36315; Tue, 05 Mar 2013 18:44:49 +0000 Received: from ararat.polands.org (ararat.polands.org [172.16.1.20]) by haran.polands.org (8.14.4/8.14.4) with ESMTP id r25Iim8R095182 for ; Tue, 5 Mar 2013 12:44:48 -0600 (CST) (envelope-from djp@polands.org) Received: from ararat.polands.org (localhost [127.0.0.1]) by ararat.polands.org (8.14.4/8.14.4) with ESMTP id r25IimaV081694 for ; Tue, 5 Mar 2013 12:44:48 -0600 (CST) (envelope-from djp@ararat.polands.org) Received: (from djp@localhost) by ararat.polands.org (8.14.4/8.14.4/Submit) id r25IimVQ081693 for questions@freebsd.org; Tue, 5 Mar 2013 12:44:48 -0600 (CST) (envelope-from djp) Date: Tue, 5 Mar 2013 12:44:48 -0600 From: Doug Poland To: questions@freebsd.org Subject: Booting from an aribrary disk in ZFS RAIDZ on 8.x Message-ID: <20130305184446.GA81297@polands.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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: Tue, 05 Mar 2013 18:44:50 -0000 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. 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? At the loader prompt when I type show, I get the following relevant variables: currdev="zfs0" loaddev="disk1a:" vfs.root.mountfrom="zfs:rpool" A peek at man loader(1) shows me two interesting variables: root_disk_unit rootdev If disk0 is the legacy floppy device, presumably disk1a: maps to da0. What variable do I set to signify boot from what I know as: da0p1 == gpt/boot0 da0p2 == gpt/swap0 da0p3 == gpt/disk0 ... snip ... da5p1 == gpt/boot5 da5p2 == gpt/swap5 da5p3 == gpt/disk5 Thanks very much in advance. BTW, is it bad form to cross-post to forums.freebsd.org? -- Regards, Doug