Date: Thu, 17 May 2007 06:53:02 -0000 From: Bruno Damour <freebsd.ruomad@free.fr> To: pjd@FreeBSD.org Cc: freebsd-current@FreeBSD.org Subject: Re: zfs root is not mounted automatically Message-ID: <464BFBCB.1030300@free.fr> In-Reply-To: <46458EDE.5060909@free.fr> References: <46458EDE.5060909@free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <DVDRW IDE 16X/VER A091> at ata0-master UDMA66 > ad10: 238475MB <Seagate ST3250624AS 3.AAE> at ata5-master SATA150 > ad12: 305245MB <External Disk 0 RGL10364> at ata6-master SATA150 > pcm0: <HDA Codec: Realtek ALC882> > pcm0: <HDA Driver Revision: 20070505_0044> > 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: > <fstype>:<device> Mount <device> using filesystem <fstype> > eg. ufs:da0s1a > ? List valid disk boot devices > <empty line> 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: <fstype>:<device> Mount <device> using filesystem <fstype> eg. ufs:da0s1a ? List valid disk boot devices <empty line> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?464BFBCB.1030300>