From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 11 07:50:06 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1381065672 for ; Sun, 11 Jul 2010 07:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C422F8FC16 for ; Sun, 11 Jul 2010 07:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6B7o2cd047802 for ; Sun, 11 Jul 2010 07:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6B7o2LC047801; Sun, 11 Jul 2010 07:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 11 Jul 2010 07:50:02 GMT Resent-Message-Id: <201007110750.o6B7o2LC047801@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Reed L O'Brien" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48CBC106566C for ; Sun, 11 Jul 2010 07:45:06 +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 377348FC13 for ; Sun, 11 Jul 2010 07:45:06 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6B7j5Vj057449 for ; Sun, 11 Jul 2010 07:45:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o6B7j56h057448; Sun, 11 Jul 2010 07:45:05 GMT (envelope-from nobody) Message-Id: <201007110745.o6B7j56h057448@www.freebsd.org> Date: Sun, 11 Jul 2010 07:45:05 GMT From: "Reed L O'Brien" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/148493: 8.0-RELEASE #0 won't boot if it can't mount smbfs entries in fstab X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2010 07:50:06 -0000 >Number: 148493 >Category: misc >Synopsis: 8.0-RELEASE #0 won't boot if it can't mount smbfs entries in fstab >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 11 07:50:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Reed L O'Brien >Release: 8.0-RELEASE #0 >Organization: Koansys, LLC >Environment: FreeBSD babahoya.retroconference.org 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Machine went down due to a very extended power outage. It was running fine, but after reboot it wouldn't come up at all. It dropped back to single user mode. The actual cause was a firewall rule blocking wins resolution when trying to mount /etc/fstab during init. I don't know if this qualifies as a bug, but it seems rather silly that the system can't boot after mounting all the local filesystems. I understand that if init exits nonzero from mount it can't tell if it was / or an smbfs mount that failed. So, maybe the non-essential mount points should go in a /usr/local/fstab or something. I wanted to report it though as I am sure someone else has been or will be bitten by this. it was especially painful as the machine runs headless...Your call. If you need me to follow up on anything let me know. >How-To-Repeat: mount a win2kx server share in /etc/fstab and then enable pf without creating a rule to allow smb/cifs traffic. Wait until there is a 6 hours power outage. The machine functions fine until it reboots. Then init exits non zero from trying to mount the entries in fstab. Logged error: Jul 8 14:48:53 babahoya kernel: netsmb_dev: loaded Jul 8 14:49:22 babahoya init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Console error was something close to: smbfs: can't get server address: syserr = Operation timed out >Fix: Easy enough just add the correct rules to allow smb/cifs traffic in the firewall; pf in this case. >Release-Note: >Audit-Trail: >Unformatted: