From owner-freebsd-geom@FreeBSD.ORG Wed Nov 5 16:55:12 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73A731065680 for ; Wed, 5 Nov 2008 16:55:12 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 53E9D8FC1C for ; Wed, 5 Nov 2008 16:55:12 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by wa-out-1112.google.com with SMTP id m34so44078wag.27 for ; Wed, 05 Nov 2008 08:55:11 -0800 (PST) Received: by 10.114.127.1 with SMTP id z1mr786474wac.10.1225904111805; Wed, 05 Nov 2008 08:55:11 -0800 (PST) Received: by 10.114.38.10 with HTTP; Wed, 5 Nov 2008 08:55:11 -0800 (PST) Message-ID: Date: Wed, 5 Nov 2008 17:55:11 +0100 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" To: "Andriy Gapon" In-Reply-To: <4911C3E9.405@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4911C3E9.405@icyb.net.ua> Cc: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: zfs: affected by geom_(mbr|bsd) => geom_part_(mbr|bsd) ? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 16:55:12 -0000 On Wed, Nov 5, 2008 at 5:03 PM, Andriy Gapon wrote: > > Using GENERIC amd64 7-BETA2 system (installed from "official" ISO) I > partitioned my disk for ZFS root file system more or less as described here: > https://ish.com.au/solutions/articles/freebsdzfs > > Big difference is that I created a separate slice to contain a partition > for ZFS pool, so that ZFS pool is ad4s2d (and UFS2 boot is ad4s1a). > > Everything was fine, ZFS root was mounted as expected. > > Then I built a custom kernel with nooptions for GEOM_(BSD|MBR) and > options for GEOM_PART_(BSD|MBR). When I tried to boot this kernel it > couldn't mount ZFS root and I simply rebooted my machine when I stuck at > mountroot prompt (I couldn't enter UFS2 root because of unrelated > keyboard problem). > The boot was verbose and I didn't see any peculiar GEOM or GEOM_PART > messages (errors, warnings). > > I'll try to debug this further by booting into UFS root and running > gpart, but I'd like to ask for an advice upfront. > > Can something like this be rationally expected? > Is there a way to make ZFS see its pool again (when booted into UFS root)? Afaict geom_part is a little bit more concerned about the correctness of the partition tables. I think it's possible that you have a bug in your tables which doesn't matter for geom_mbr or geom_bsd but for geom_part.