From owner-freebsd-stable@FreeBSD.ORG Thu May 17 18:49:26 2012 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 2582A106566C for ; Thu, 17 May 2012 18:49:26 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 902A38FC0A for ; Thu, 17 May 2012 18:49:25 +0000 (UTC) Received: from vincemacbook.unsane.co.uk (vincemacbook.unsane.co.uk [10.10.10.20]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q4HInGpa035479 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 17 May 2012 19:49:18 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4FB5482C.2080708@unsane.co.uk> Date: Thu, 17 May 2012 19:49:16 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Matthew Doughty References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, nickolasbug@gmail.com Subject: Re: ntpd couldn't resolve host name on system boot 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: Thu, 17 May 2012 18:49:26 -0000 On 17/05/2012 17:13, Matthew Doughty wrote: > Hi, thanks for your quick reply. > > Please could you explain how to do that? Or if you know a post that > explains.... Its not that obvious but... man 5 rc.conf and have a look at the netwait_* variable options (particularly netwait_enable) Basically they pause the boot up process until a network connection is available, (a user defined IP is pingable) they should be added to your /etc/rc.conf. The default values are jhary@ostracod $ grep netwait /etc/defaults/rc.conf netwait_enable="NO" # Enable rc.d/netwait (or NO) #netwait_ip="" # IP addresses to be pinged by netwait. netwait_timeout="60" # Total number of seconds to perform pings. #netwait_if="" # Interface name to watch link state on. netwait_if_timeout="30" # Total number of seconds to monitor link state. Vince > > Thanks, > Matthew > > On 17 May 2012 11:42, wrote: > >> Matthew, >> >> netwait script is already implemented: >> http://lists.freebsd.org/pipermail/svn-src-head/2011-June/028593.html >> >> So, you shuld just add netwit_* entries in your rc.conf file. >> >> 2012/5/17 Matthew Doughty : >>> Dear Jerermy, >>> >>> Whilst searching for a solution to a problem, I found your post: >>> >> http://lists.freebsd.org/pipermail/freebsd-stable/2011-October/064350.html >>> Please could you explain how I can implement the netwait script to solve >>> the problem? I'm new to freenas/BSD but am willing to try working from >> the >>> Cmd line. >>> >>> Best regards, >>> >>> Matthew >>> >>> >>> PS: Here are the messages >>> >>> May 14 13:32:59 freenas kernel: SMP: AP CPU #1 Launched! >>> >>> May 14 13:32:59 freenas kernel: GEOM: da0s1: geometry does not match >> label >>> (16h,63s != 255h,63s). >>> >>> May 14 13:32:59 freenas kernel: GEOM: da0s2: geometry does not match >> label >>> (16h,63s != 255h,63s). >>> >>> May 14 13:32:59 freenas kernel: Trying to mount root from >>> ufs:/dev/ufs/FreeNASs2a >>> >>> May 14 13:32:59 freenas kernel: WARNING: /data was not properly >> dismounted >>> May 14 13:32:59 freenas kernel: ZFS filesystem version 4 >>> >>> May 14 13:32:59 freenas kernel: ZFS storage pool version 15 >>> >>> May 14 13:33:00 freenas ntpd[1512]: ntpd 4.2.4p5-a (1) >>> >>> May 14 13:33:00 freenas root: /etc/rc: WARNING: failed precmd routine for >>> vmware_guestd >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: host name not found: >>> 0.freebsd.pool.ntp.org >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: couldn't resolve ` >>> 0.freebsd.pool.ntp.org', giving up on it >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: host name not found: >>> 1.freebsd.pool.ntp.org >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: couldn't resolve ` >>> 1.freebsd.pool.ntp.org', giving up on it >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: host name not found: >>> 2.freebsd.pool.ntp.org >>> >>> May 14 13:33:02 freenas ntpd_initres[1526]: couldn't resolve ` >>> 2.freebsd.pool.ntp.org', giving up on it >>> _______________________________________________ >>> freebsd-stable@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org >> " >> > >