From owner-freebsd-geom@FreeBSD.ORG Wed Nov 5 22:00:23 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 B3D96106567B for ; Wed, 5 Nov 2008 22:00:23 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id 6B9318FC12 for ; Wed, 5 Nov 2008 22:00:23 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost ([127.0.0.1] helo=edge.pp.kiev.ua) by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1KxqQE-000NFG-Po; Thu, 06 Nov 2008 00:00:18 +0200 Message-ID: <49121772.1040501@icyb.net.ua> Date: Thu, 06 Nov 2008 00:00:18 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081005) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Marius_N=FCnnerich?= References: <4911C3E9.405@icyb.net.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 22:00:23 -0000 on 05/11/2008 18:55 Marius Nünnerich said the following: > 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. I believe that disklabels are correct even for gpart, but this is not proven. Anyway I'll do more tests tomorrow. P.S. I kind of hoped for an advice on ZFS side of things. -- Andriy Gapon