Date: Thu, 17 May 2012 19:49:16 +0100 From: Vincent Hoffman <vince@unsane.co.uk> To: Matthew Doughty <mdoughty@b12.cl> Cc: freebsd-stable@freebsd.org, nickolasbug@gmail.com Subject: Re: ntpd couldn't resolve host name on system boot Message-ID: <4FB5482C.2080708@unsane.co.uk> In-Reply-To: <CA%2BnXktWp=iLk2039oOO5hsD5yLVwzB0L46QWkYZDx8iEBeWBQw@mail.gmail.com> References: <CA%2BnXktXsXshKgk15SVmWWvjd2HCnBnu1NEnmLsxDssaexFb0Jg@mail.gmail.com> <CAMgYTKvKSBm2ErLZe=XaLAK76HA7UaupHVuanOmkWFeERQH8mQ@mail.gmail.com> <CA%2BnXktWp=iLk2039oOO5hsD5yLVwzB0L46QWkYZDx8iEBeWBQw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, <nickolasbug@gmail.com> 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 <mdoughty@b12.cl>: >>> 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 >> " >> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FB5482C.2080708>