From owner-freebsd-current Thu Nov 28 15:30:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFF0037B401 for ; Thu, 28 Nov 2002 15:30:26 -0800 (PST) Received: from hun.org (hun.org [216.190.27.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DC3A43EC2 for ; Thu, 28 Nov 2002 15:30:26 -0800 (PST) (envelope-from attila@hun.org) Received: by hun.org (Postfix, from userid 1001) id BF7A757459; Thu, 28 Nov 2002 23:30:25 +0000 (GMT) Date: Thu, 28 Nov 2002 23:30:25 +0000 (GMT) Message-Id: <20021128233025.gkyY5725@hun.org> From: Daniel Flickinger X-Mailer: AttilaMail with XEmacs & Postfix on FreeBSD 5.0-CURRENT X-Ballistic: N 37.218497 W 113.614979 X-Address: 31 N 700 E, St George UT 84770-3028 X-Squawk: (435) 680-0750 X-No-Archive: yes X-Tags: Sanity is the Playground for the Unimaginative In-Reply-To: <3DE66E2E.7050201@tcoip.com.br> References: <3DE667DF.9060200@tcoip.com.br> To: Daniel C.Sobral Cc: FreeBSD-CURRENT Subject: Re: Problem with ntpdate Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="text" Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If, as you state, the time is off two hours due to Windows, ntpd has a time correction limitation of 1000 secs which can be overridden one time only by specifying the -g option; the man page for ntpdate does not say, and there is no -g option equivalent. check the source for the limitation. However, your log report shows that neithr nptdate nor ntpd are connecting to the network with the obvious result. Suggest maybe you list your possible time servers in ntpd's NetInfo data. A second possibility is that ntpdate is trying to make a conection before the network line is up and live --this is particularly true with ppp dial ups and non-static ADSL lines. In that case, use the /etc/ppp.linkup file to call the final network setup, ntpdate, etc. Sent: Thu, 28 Nov 2002 17:27:42 -0200 by Daniel C. Sobral | More information: | | ntpdate_flags="-s -b clock.tcoip.com.br": | | Nov 28 15:13:31 dcs ntpdate[259]: no server suitable for synchronization | found | | ntpdate_flags="-s -b 200.220.255.229": | | Nov 28 15:15:38 dcs ntpdate[259]: no server suitable for synchronization | found | Nov 28 15:15:39 dcs ntpd[377]: ntpd 4.1.1b-a Thu Nov 28 11:09:29 BRST | 2002 (1) | Nov 28 15:15:39 dcs ntpd[377]: kernel time discipline status 2040 | Nov 28 15:15:50 dcs ntpd[377]: sendto(200.220.255.229): No route to host | | That is, the extra time taken NOT resolving clock.tcoip.com.br was, | apparently, enough for something in the IP stack to go up. | | This looks, after all, like a more serious bug than I first assumed. | | Daniel C. Sobral wrote: | | > I found out that ntpdate just doesn't seem to be working at all during | > boot. Ntpd dies because of the time differential (windows changes the | > time two hours because of the TZ). No message from ntpdate (I'll next | > try to divert it to syslog). | > | > Running *after* boot, by typing /etc/rc.d/ntpdate start, works fine. | > | > I tried no ntpdate_flags, ntpdate_flags="-b server.name", and | > ntpdate_flags="server.name". | > | > Suggestions? | > | | | -- | Daniel C. Sobral (8-DCS) | Gerencia de Operacoes | Divisao de Comunicacao de Dados | Coordenacao de Seguranca | TCO | Fones: 55-61-313-7654/Cel: 55-61-9618-0904 | E-mail: Daniel.Capo@tco.net.br | Daniel.Sobral@tcoip.com.br | dcs@tcoip.com.br | | Outros: | dcs@newsguy.com | dcs@freebsd.org | capo@notorious.bsdconspiracy.net | | Dying is a very dull, dreary affair. My advice to you is to have | nothing whatever to do with it. | -- W. Somerset Maughm, his last words | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message