From owner-freebsd-geom@FreeBSD.ORG Wed Feb 25 23:09:09 2009 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 B4389106564A for ; Wed, 25 Feb 2009 23:09:09 +0000 (UTC) (envelope-from listat@apz.fi) Received: from basestar1.apz.fi (basestar1.apz.fi [62.237.4.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3BF448FC18 for ; Wed, 25 Feb 2009 23:09:09 +0000 (UTC) (envelope-from listat@apz.fi) Received: from localhost (localhost [127.0.0.1]) by basestar1.apz.fi (Postfix) with ESMTP id 21FC3272C2A for ; Thu, 26 Feb 2009 00:53:40 +0200 (EET) X-Virus-Scanned: by amavisd-new at basestar1. Got none of those nasty buggers! Received: from basestar1.apz.fi ([127.0.0.1]) by localhost (basestar1.apz.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2qo8Z80IozB for ; Thu, 26 Feb 2009 00:53:34 +0200 (EET) Received: from [214.1.1.1] (dsl-kvlbrasgw2-fe19df00-212.dhcp.inet.fi [80.223.25.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by basestar1.apz.fi (Postfix) with ESMTPSA id 48F71272C27 for ; Thu, 26 Feb 2009 00:53:34 +0200 (EET) Message-ID: <49A5CBEC.4000905@apz.fi> Date: Thu, 26 Feb 2009 00:53:32 +0200 From: =?ISO-8859-1?Q?Ari_Sovij=E4rvi?= User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: GEOM_ELI with device crypto makes root unmountable 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, 25 Feb 2009 23:09:10 -0000 Hi all! I have a Sparc64 FreeBSD 7.1 system running on Fire V100 with root on a Gmirror device. I recently read about GELI and decided to encrypt one of the partitions on that machine. My kernel config is basically generic with quota being the only added option. The system worked perfectly fine, until I recompiled the kernel with the following options added (as instructed by the handbook): device crypto options GEOM_ELI With those 2 options, the system completely skips detecting almost all of the hardware (including the HDD controller) and then fails as it can't find root. Apparently something is very wrong, but I can't figure out what's the cause. Any ideas? Here's the dmesg up to the point where it can't find the root partition: Sun Fire V100 (UltraSPARC-IIe 548MHz), No Keyboard OpenBoot 4.0, 1024 MB memory installed, Serial #54159000. Ethernet address 0:3:ba:3a:00:00, Host ID: 833a0000. Executing last command: boot /pci@1f,0/ide@d/disk@0,0:a Boot device: /pci@1f,0/ide@d/disk@0,0:a File and args: >> FreeBSD/sparc64 boot block Boot path: /pci@1f,0/ide@d/disk@0,0:a Boot loader: /boot/loader Consoles: Open Firmware console Booting with sun4u support. FreeBSD/sparc64 bootstrap loader, Revision 1.0 (root@basestar2, Fri Jan 30 22:41:13 EET 2009) bootpath="/pci@1f,0/ide@d/disk@0,0:a" Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x491f48+0x60328 syms=[0x8+0x5f8c8+0x8+0x53869] /boot/kernel/geom_mirror.ko text=0x36440 data=0x5c8+0x18 syms=[0x8+0x1548+0x8+0x1005] | Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... jumping to kernel entry at 0xc0060000. Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE-p3 #2: Wed Feb 25 22:05:18 EET 2009 root@basestar2:/usr/obj/usr/src/sys/RAINFALL Timecounter "tick" frequency 548000000 Hz quality 1000 real memory = 1073741824 (1024 MB) avail memory = 1035673600 (987 MB) cpu0: Sun Microsystems UltraSparc-IIe Processor (548.00 MHz CPU) kbd0 at kbdmux0 nexus0: cryptosoft1: mem 0x1fe00000000-0x1fe0000ffff,0x1fe01000000-0x1fe010 cryptosoft0: on nexus0 nexus0: type unknown (no driver attached) Timecounters tick every 1.000 msec Trying to mount root from ufs:/dev/mirror/raid0a Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> ufs:/dev/mirror/raid0a Trying to mount root from ufs:/dev/mirror/raid0a Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> panic: Root mount failed, startup aborted. -- Ari Sovijärvi