From owner-freebsd-stable@FreeBSD.ORG Thu May 17 19:10:05 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 D12CC106564A for ; Thu, 17 May 2012 19:10:05 +0000 (UTC) (envelope-from mdoughty@b12.cl) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7C2828FC08 for ; Thu, 17 May 2012 19:10:05 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2665106vbm.13 for ; Thu, 17 May 2012 12:10:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=1Vp+BF/pdjxNws+XVeRHrV+NBnJ91/IpKP8oYLPTK9Q=; b=R5k5kXJD9eycash00q8qumiOdTuO8Rokabq4uZzyKsfIIJepTbZpXdhOGAxMH9DMQy bzToqDwf82ZUfBqLDAOkUDStXPL3KefN1Xwp0FGGrVN7rRK9uuJ9fUoROf8CEmFGmQcE IGhJX0U6qeMLeRg/DGzGSp+fybUHGARxRFPAEIwx+oHx6Cj/IyP9a35XTj6L8PiDC4qc 9Oar3ETo+SdzwcKaZ7ARRySjCtylOdhHJ1MEobIsSnAcMIGiaDc18Iu7vVAroOqIHPQb LazFwTrYuuNhRdkWyWtAVR+yWxdfHSd3HEqiUHXLaUVAEyBc8isJXvMJLRBjPimuA2Cx BPNA== MIME-Version: 1.0 Received: by 10.220.153.8 with SMTP id i8mr5432129vcw.73.1337281803509; Thu, 17 May 2012 12:10:03 -0700 (PDT) Received: by 10.220.178.1 with HTTP; Thu, 17 May 2012 12:10:03 -0700 (PDT) In-Reply-To: <4FB5482C.2080708@unsane.co.uk> References: <4FB5482C.2080708@unsane.co.uk> Date: Thu, 17 May 2012 15:10:03 -0400 Message-ID: From: Matthew Doughty To: Vincent Hoffman X-Gm-Message-State: ALoCoQkVnwVWBBjOu6QJ35mkvjagW2iLWqhzhbnrT4WSoCxRQDZAQKzzULrBmprHfKT4RftVzFVm Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 19:10:05 -0000 Thanks Vince, I'll give it a go. Regards, Matthew On 17 May 2012 14:49, Vincent Hoffman wrote: > 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 > >> " > >> > > > > > > -- * Matthew Doughty * * *Director Comercial Cel: +56 (9) 82366003 Fijo: +56 (2) 9484196 www.b12.cl