From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 8 11:11:57 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D398B1065695 for ; Mon, 8 Aug 2011 11:11:57 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 8D9158FC2A for ; Mon, 8 Aug 2011 11:11:57 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1QqNkR-000NNN-Vw; Mon, 08 Aug 2011 14:11:56 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Andriy Gapon In-reply-to: <4E3FBB9A.5090305@FreeBSD.org> References: <4E3FBB9A.5090305@FreeBSD.org> Comments: In-reply-to Andriy Gapon message dated "Mon, 08 Aug 2011 13:34:02 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 08 Aug 2011 14:11:55 +0300 From: Daniel Braniss Message-ID: Cc: hackers@FreeBSD.org Subject: Re: root on zfs almot working for me but ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 11:11:57 -0000 > on 08/08/2011 09:56 Daniel Braniss said the following: > > Hi, > > I managed to get boot to load the kernel, but the kernel can't find > > the root: > > ... > > Trying to mount root from zfs:z/root > > 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:z/root > > vfs.root.mountfrom.options=rw > > > > and > > mountroot> ? > > > > List of GEOM managed disk devices: > > gptid/81e19453-94ff-11e0-afed-6cf049b01360 gpt/disk3 > > gptid/81d516e2-94ff-11e0-afed-6cf049b01360 gpt/swap3 > > gptid/81cbc503-94ff-11e0-afed-6cf049b01360 gptid/81b4a09a-94ff-11e0-afed-6cf049 > > b01360 gpt/disk2 gptid/81a8c76e-94ff-11e0-afed-6cf049b01360 gpt/swap2 > > gptid/81a13b80-94ff-11e0-afed-6cf049b01360 gptid/818c5da7-94ff-11e0-afed-6cf049 > > b01360 gpt/disk1 gptid/818199a3-94ff-11e0-afed-6cf049b01360 gpt/swap1 > > gptid/817a78d3-94ff-11e0-afed-6cf049b01360 ada3p3 ada3p2 ada3p1 ada2p3 ada2p2 > > ada2p1 ada1p3 ada1p2 ada1p1 gptid/81652d6f-94ff-11e0-afed-6cf049b01360 > > gpt/disk0 gptid/815afb70-94ff-11e0-afed-6cf049b01360 gpt/swap0 > > gptid/81543d17-94ff-11e0-afed-6cf049b01360 ada3 ada2 ada1 ada0p3 ada0p2 ada0p1 > > ada0 cd0 > > > > but I don't see any zfs, > > > > any help/ideas? > > > Is /boot/zfs/zpool.cache present and up-to-date? > ah, this was where my guts were pointing, so some more 'history': The installation was done via diskless/PXE, and no amount of magic I tried changed the location of the cache, since /boot/zfs is read-only, so I finally booted from a usb and copied the cache, to z/root/boot/zfs is there some way to dump/check/edit it? thanks, danny > -- > Andriy Gapon