From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 00:16:15 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 26A6B1065740 for ; Wed, 22 Jun 2011 00:16:15 +0000 (UTC) (envelope-from freebsd@snap.net.nz) Received: from unit0.ironport.snap.net.nz (unit0.ironport.snap.net.nz [202.37.100.104]) by mx1.freebsd.org (Postfix) with ESMTP id B9DFB8FC19 for ; Wed, 22 Jun 2011 00:16:14 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEIAOczAU7KfG1Y/2dsb2JhbABUmDOOVslehisEkWiQHw X-IronPort-AV: E=Sophos;i="4.65,403,1304251200"; d="scan'208";a="61656653" Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp0.ironport.snap.net.nz with ESMTP; 22 Jun 2011 12:16:12 +1200 X-Sender-IP: 202.124.109.88 Received: from akllappt.local (88.109.124.202.static.snap.net.nz [202.124.109.88]) by rupert.snap.net.nz (Postfix) with ESMTP id B601A1FC22 for ; Wed, 22 Jun 2011 12:16:12 +1200 (NZST) Message-ID: <4E01344B.4020902@snap.net.nz> Date: Wed, 22 Jun 2011 12:16:11 +1200 From: Peter Toth User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110421 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20110621201553.GA29153@gmail.com> In-Reply-To: <20110621201553.GA29153@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: ZFS on Root 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, 22 Jun 2011 00:16:15 -0000 On 06/22/11 08:15, Chris Brennan wrote: > OK, So I got ZFS installed on this new box, I had to loose two disks due > to them being faulty, so I removed the IDE expansion card and booted > from an SD card, all went well (according to this guide -> > http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror). I adjusted the > instructions there for only one disk though and will worry about adding > the others to the zpool after the fact and the system has booted on it's > own. > > The problem is this, the system starts to boot but then fails to find > zfs:tank, I get dropped to the mountroot prompt with the following > advise: > > Trying to mount root from zfs:tank > ROOT MOUNT ERROR: > If you have invalid mount options, reboot, and first try the following > from the loader prompt: > > set vfs.root.mountfrom.options=rw > > and then remove invalid mount options from /etc/fstab. > > Loader variables: > vfs.root.mountfrom=zfs:tank > vfs.root.mountfrom.options=rw > > Manual root filesystem specifications: > : Mount using filesystem > eg: ufs:/dev/da0s1a > eg: cd9660:/dev/acd0 > This is equivalent to: mount -t cd9660 /dev/acd0 / > > ? List valid disk boot devices > Abort manual input > > mountroot> ? > > List of GEOM managed disk devices: > ufsid/47ce961fb53808acd ufsid/47ce961fb53808ac ad6s1d ad6s1 ad7 ad6 > ad5 gptit/f6af4300-9c1a-11e0-b38d-000ea68c8b0e gpt/disk0 > gpt/f6a70bb3-9c1a-11e0-b38d-000ea68c8b0e gpt/swap0 > gpt/f6a4de0c-9c1a-11e0-b8d-000ea68c8b0e ad4p3 ad4p2 ad3p1 ad4 > > > <8 lines repeat from above> > > So what did I miss? I was able to follow the instructions without fail, > the only instruction I had to do on my own was to create /tank/boot/zfs > first to copy the cpool.cache over. All the other instructions worked > with issue, the first time. This is the second time I've done this on > this box in two days, the first time I made a mistake, so I scripted the > instructions (rather crudely) to ensure I did things correctly, each > portion of the script was modified to reflected how I wanted my system > to be (mostly changing zpool as the pool name to tank. I can make the > scripts available if someone would like to look at them. Did you set the "bootfs" property on your root pool? Example: "zpool set bootfs=tank/root tank"