From nobody@FreeBSD.org  Mon Mar 24 07:59:48 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id ADD2C1065671
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2008 07:59:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id AB1498FC39
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2008 07:59:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2O7xdsS080860
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2008 07:59:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2O7xd8i080859;
	Mon, 24 Mar 2008 07:59:39 GMT
	(envelope-from nobody)
Message-Id: <200803240759.m2O7xd8i080859@www.freebsd.org>
Date: Mon, 24 Mar 2008 07:59:39 GMT
From: Nicolas  Blais <nicblais@clkroot.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mounting at boot with ZFS causes a halt in booting
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122036
>Category:       conf
>Synopsis:       [rc.d]: Mounting at boot with ZFS causes a halt in booting
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-rc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 24 08:00:07 UTC 2008
>Closed-Date:    Sun May 17 05:10:03 UTC 2009
>Last-Modified:  Sun May 17 05:10:03 UTC 2009
>Originator:     Nicolas  Blais
>Release:        7.0-STABLE
>Organization:
>Environment:
FreeBSD clk01.clkroot.net 7.0-STABLE FreeBSD 7.0-STABLE #33: Sun Mar 23 01:36:25 EDT 2008     root@clk01.clkroot.net:/usr/obj/usr/src/sys/CLK01  amd64
>Description:
Here's the thing (sorry if wrong category):

Except for / (root), all my mount points are ZFS. I have zfs_enable="YES"
in my /etc/rc.conf to mount my volumes correctly at boot. Unfortunately,
in my /etc/fstab I have an entry that relates to a ZFS filesystem.

During boot, it seems that the OS is trying to mount the entry in my fstab,
but /etc/rc.d/zfs hasn't loaded or isn't finished yet and therefore causes
the boot to stop.

Here's the entry in /etc/fstab that causes the boot to halt:
/tank/public/ftp       /home/sam/ftp   nullfs  rw              0       0

And here's the boot dmesg with the error:

Starting file system checks:
/dev/mirror/gm0a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm0a: clean, 318448 free (968 frags, 39685 blocks, 0.2% fragmentation)
Setting hostuuid: 209b7d70-eb81-11db-b35a-0030488ca160.
Setting hostid: 0x60036df4.
Mounting local file systems:
mount:
/home/sam: No such file or directory

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Mar 24 11:00:00 UTC 2008 
Responsible-Changed-Why:  
I think this is due to starting up the zfs scripts and doing mounts. 
Can the -RC group look at this please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122036 

From: Norikatsu Shigemura <nork@FreeBSD.org>
To: Nicolas  Blais <nicblais@clkroot.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/122036: Mounting at boot with ZFS causes a halt in booting
Date: Mon, 24 Mar 2008 22:53:10 +0900

 Hi Nicolas.
 
 On Mon, 24 Mar 2008 07:59:39 GMT
 Nicolas  Blais <nicblais@clkroot.net> wrote:
 > During boot, it seems that the OS is trying to mount the entry in my
 > fstab, but /etc/rc.d/zfs hasn't loaded or isn't finished yet and
 > therefore causes the boot to stop.
 > Here's the entry in /etc/fstab that causes the boot to halt:
 > /tank/public/ftp       /home/sam/ftp   nullfs  rw              0       0
 
 	Maybe, you should set 'late' to mount potion like following.
 
 > /tank/public/ftp       /home/sam/ftp   nullfs  rw,late         0       0

From: "Nicolas Blais" <nicblais@clkroot.net>
To: "Norikatsu Shigemura" <nork@FreeBSD.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/122036: Mounting at boot with ZFS causes a halt in booting
Date: Mon, 24 Mar 2008 23:34:18 -0400 (Eastern Daylight Time)

 > Hi Nicolas.
 >
 > On Mon, 24 Mar 2008 07:59:39 GMT
 > Nicolas  Blais <nicblais@clkroot.net> wrote:
 >> During boot, it seems that the OS is trying to mount the entry in my
 >> fstab, but /etc/rc.d/zfs hasn't loaded or isn't finished yet and
 >> therefore causes the boot to stop.
 >> Here's the entry in /etc/fstab that causes the boot to halt:
 >> /tank/public/ftp       /home/sam/ftp   nullfs  rw              0       0
 >
 > 	Maybe, you should set 'late' to mount potion like following.
 >
 >> /tank/public/ftp       /home/sam/ftp   nullfs  rw,late         0       0
 >
 
 That worked, thanks!
 "man fstab" doesn't say anything about that option, which is important for
 people using ZFS...
 
 Thanks again,
 Nicolas
 
State-Changed-From-To: open->closed 
State-Changed-By: kmacy 
State-Changed-When: Sun May 17 05:09:41 UTC 2009 
State-Changed-Why:  

solution was provided 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122036 
>Unformatted:
