From owner-freebsd-stable@FreeBSD.ORG Sat Jan 16 00:48:19 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E63C1065670 for ; Sat, 16 Jan 2010 00:48:18 +0000 (UTC) (envelope-from romain.garbage@gmail.com) Received: from mail-iw0-f177.google.com (mail-iw0-f177.google.com [209.85.223.177]) by mx1.freebsd.org (Postfix) with ESMTP id 36C7A8FC08 for ; Sat, 16 Jan 2010 00:48:18 +0000 (UTC) Received: by iwn7 with SMTP id 7so938850iwn.7 for ; Fri, 15 Jan 2010 16:48:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=g0uybyGBkEWuN600XbeVbTiGhKmjgNx6aLwPF9VmChA=; b=OmNFSpAsFNQhgp9pUSV+cmtwDmbo7LUJCID+OREQ2/i3p22RpJNR6UNlE2lmvaqmTD DXXTO/ONxpKKVbxBIvQw1GolVAn6u8UIJWMZg7TLjuw8IO1avidCEwIPPmEoDbuMKKNO 4yjgL3bWZrEUfzZn7/x3BmP5eVYyugOC+0ZBw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KWBXDYGCB2h46EeSKn19LhWcEFpI/b8s9M/YVrYvLn4utQ1ocNGfwW0oAXvcJe8ehD Pn8G49XNaB6auQr6tKzVQZ/CEzojWUBFjxi0qOi1c06ln2EMvJdIQvwl+poDGm88qpFP GrYQrYWg2BaFYwFynPmp+RRB6Ak7ge2kXs1Lk= MIME-Version: 1.0 Received: by 10.231.167.65 with SMTP id p1mr870711iby.20.1263602892547; Fri, 15 Jan 2010 16:48:12 -0800 (PST) In-Reply-To: <20100116015529.2fb2ca91@limbo.lan> References: <7ab0356e1001151213y5536d4cdi1d1759ce28ad546a@mail.gmail.com> <20100116015529.2fb2ca91@limbo.lan> Date: Sat, 16 Jan 2010 01:48:12 +0100 Message-ID: <7ab0356e1001151648p483734b6k58dc7067efd12273@mail.gmail.com> From: Romain Garbage To: Volodymyr Kostyrko Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org Subject: Re: AHCI and ZFS: root mount error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2010 00:48:19 -0000 2010/1/16, Volodymyr Kostyrko : > On Fri, 15 Jan 2010 21:13:39 +0100 > Romain Garbage wrote: > >> After setting ahci_load="YES" in /boot/loader.conf, I get a root mount >> error. >> ahci seems to attach to disk correctly (I get ada0 messages with no error) >> >> Without ahci_load="YES", system boots fine, with ata module attaching to >> disk. >> >> I have a full zfs system, set up following wiki instructions: >> http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition >> (MBR scheme, ZFS in a FreeBSD slice, together with a swap partition) >> >> I'm using a GENERIC kernel, RELENG_8 branch. > > I have faced some problems that looks exactly like you say. I haven't > investigated thoroughly after some quick-hack-repairs machine runs > flawlessly. > > 1. I have moved to RELENG_8 from RELENG_8_0. I don't think this is it but > zfsloader support was what I was looking for. > > 2. I reinitialised zfs partitions again with a boot code. But this time I > used bs=512 dd option. > > 3. I recreated zpool.cache and replaced it on my pool. > > Actually I don't know which one helped me, but my bet is for the third step > and maybe for second. A weird thing: I just built and installed a new kernel (RELENG_8, source csuped a few hours ago), just adding "device ahci" to the config file. I get the same error, with driver attaching correctly. Now, adding ahci_load="NO" to /boot/loader.conf and booting the new custom kernel, it just boots fine, ahci attaching to the device, and zfs root gets mounted. dmesg | grep ada ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO size 8192bytes)cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich2 bus 0 scbus2 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO size 8192bytes) ada1: Command Queueing enabled ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO size 8192bytes)cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich2 bus 0 scbus2 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO size 8192bytes) ada1: Command Queueing enabled ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) I didn't do anything else, just the line in loader.conf, and the system just works fine. Romain