From owner-freebsd-current@FreeBSD.ORG Thu May 17 06:53:02 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A9D316A400 for ; Thu, 17 May 2007 06:53:02 +0000 (UTC) (envelope-from freebsd.ruomad@free.fr) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.freebsd.org (Postfix) with ESMTP id 1C09613C43E for ; Thu, 17 May 2007 06:53:02 +0000 (UTC) (envelope-from freebsd.ruomad@free.fr) Received: from [192.168.0.100] (vln78-1-82-238-160-33.fbx.proxad.net [82.238.160.33]) by smtp2-g19.free.fr (Postfix) with ESMTP id BEAAE97A08; Thu, 17 May 2007 08:53:00 +0200 (CEST) Message-ID: <464BFBCB.1030300@free.fr> From: Bruno Damour User-Agent: Thunderbird 1.5.0.10 (X11/20070309) MIME-Version: 1.0 To: pjd@FreeBSD.org References: <46458EDE.5060909@free.fr> In-Reply-To: <46458EDE.5060909@free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: zfs root is not mounted automatically X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 17 May 2007 06:53:02 -0000 X-Original-Date: Thu, 17 May 2007 08:52:59 +0200 X-List-Received-Date: Thu, 17 May 2007 06:53:02 -0000 Bruno Damour wrote: > Hello, > I have successfullty moved my root to zfs (some work, though) > following Pawel instruction. > Anyway, it still refuses to boot without asking root device from cmd > line : > > acd0: DVDR at ata0-master UDMA66 > ad10: 238475MB at ata5-master SATA150 > ad12: 305245MB at ata6-master SATA150 > pcm0: > pcm0: > WARNING: ZFS is considered to be an experimental feature in FreeBSD. > SMP: AP CPU #1 Launched! > Trying to mount root from zfs:system > > Manual root filesystem specification: > : Mount using filesystem > eg. ufs:da0s1a > ? List valid disk boot devices > Abort manual input > > mountroot> ZFS filesystem version 6 > ZFS storage pool version 6 > zfs:system > Trying to mount root from zfs:system > fuse4bsd: version 0.3.0, FUSE ABI 7.8 > > It first fails to mount my zfs:system > I get the mountroot cmd line, and if I type zfs:system, boot resumes > and completes allright. > > Any idea of how to get rid of this ? > > vil1 ~ # uname -a > FreeBSD vil1.ruomad.net 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sat May 12 > 08:10:27 CEST 2007 root@vil1.ruomad.net:/usr/obj/usr/src/sys/VIL1 > amd64 > > vil1 ~ # zpool list > NAME SIZE USED AVAIL CAP HEALTH ALTROOT > data 298G 64.3G 234G 21% ONLINE - > system 74.5G 10.3G 64.2G 13% ONLINE - > > vil1 ~ # df > Filesystem 1K-blocks Used Avail Capacity Mounted on > system 66604544 497024 66107520 1% / > devfs 1 1 0 100% /dev > /dev/ad10s2a 507630 418978 48042 90% /bootdisk > system/tmp 66110464 2944 66107520 0% /tmp > system/usr 70144768 4037248 66107520 6% /usr > system/usr/local 68888704 2781184 66107520 4% /usr/local > system/var 67045760 938240 66107520 1% /var > /dev/ad10s1 122093968 35128468 86965500 29% /mnt/win > data 307590016 67431168 240158848 22% /data > > Thanks in advance > > Bruno > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" Well, I discovered that booting in verbose mode, the root gets mounted without problem. THat seems to confirm that the problem comes from the pool not being fully up when the kernel first tries to mount it (in normal mode) I guess in verbose mode the timing gets slightly different so that the pool has time to come up. - in normal mode the message : ZFS filesystem version 6 ZFS storage pool version 6 is printed AFTER the Trying to mount root from zfs:system whereas in verbose mode I get the contrary. normal mode : WARNING: ZFS is considered to be an experimental feature in FreeBSD. SMP: AP CPU #1 Launched! Trying to mount root from zfs:system Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> ZFS filesystem version 6 ZFS storage pool version 6 verbose mode : WARNING: ZFS is considered to be an experimental feature in FreeBSD. SMP: AP CPU #1 Launched! cpu1 AP: ID: 0x01000000 VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff timer: 0x000200ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000 ioapic0: Assigning ISA IRQ 1 to local APIC 0 ioapic0: Assigning ISA IRQ 4 to local APIC 1 ioapic0: Assigning ISA IRQ 6 to local APIC 0 ioapic0: Assigning ISA IRQ 9 to local APIC 1 ioapic0: Assigning ISA IRQ 14 to local APIC 0 ioapic0: Assigning ISA IRQ 15 to local APIC 1 ioapic0: Assigning PCI IRQ 17 to local APIC 0 ioapic0: Assigning PCI IRQ 18 to local APIC 1 ioapic0: Assigning PCI IRQ 19 to local APIC 0 ioapic0: Assigning PCI IRQ 20 to local APIC 1 ioapic0: Assigning PCI IRQ 21 to local APIC 0 ioapic0: Assigning PCI IRQ 23 to local APIC 1 msi: Assigning MSI IRQ 256 to local APIC 0 msi: Assigning MSI IRQ 258 to local APIC 1 ZFS filesystem version 6 ZFS storage pool version 6 Trying to mount root from zfs:system start_init: trying /sbin/init Linux ELF exec handler installed Anyone has an idea on how to get the normal mode to work automatically (not that I cannot live with verbose dmesg, but...) Bruno