From owner-freebsd-questions@FreeBSD.ORG Sat Jul 29 15:20:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAD8D16A4DD for ; Sat, 29 Jul 2006 15:20:12 +0000 (UTC) (envelope-from xj2106@columbia.edu) Received: from serrano.cc.columbia.edu (serrano.cc.columbia.edu [128.59.29.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E76843D46 for ; Sat, 29 Jul 2006 15:20:12 +0000 (GMT) (envelope-from xj2106@columbia.edu) Received: from photon.homelinux.org (dyn-carl-201-40.dyn.columbia.edu [160.39.201.40]) (user=xj2106 mech=PLAIN bits=0) by serrano.cc.columbia.edu (8.13.7/8.13.6) with ESMTP id k6TFKARm007128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Jul 2006 11:20:11 -0400 (EDT) To: freebsd-questions@freebsd.org References: <44r7046026.fsf@be-well.ilk.org> From: Xiao-Yong Jin Mail-Followup-To: freebsd-questions@freebsd.org Date: Sat, 29 Jul 2006 11:20:10 -0400 In-Reply-To: <44r7046026.fsf@be-well.ilk.org> (Lowell Gilbert's message of "Sat, 29 Jul 2006 08:57:21 -0400") Message-ID: <87ac6sbfpx.fsf@photon.homelinux.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.48 on 128.59.29.6 Subject: Re: ntpd on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2006 15:20:12 -0000 Lowell Gilbert writes: > Freminlins writes: > >> Hello, >> >> After a power outaga (Level 3 at Goswell Road, London), all our FreeBSD >> machines came up OK. >> >> Nearly all of them had a problem though with ntpd. I'm guessing that most of >> these machines booted before the the ntp servers came up. What happens is >> that the machine runs two copies of ntpd: >> >> root 337 0.0 0.3 2964 1772 ?? Ss Sun04PM >> 0:24.75/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid >> root 427 0.0 0.3 2964 1788 ?? S Sun04PM >> 0:00.76/usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid >> >> ... and they never sync. The only way to fix this is to kill both ntpds, >> then restart ntpd. >> >> Is there a tidy way round this? It's not much fun logging into 40+ machines >> and killing a restarting a key process. I have no idea why two ntpds are >> running in the first place. The machines that are correct have an identical >> config. > > For what it's worth, I spent a while looking at it, and I can't see > anything that would cause this. Ending up with *no* ntpd running, I > can imaging from various failures, but not two. I suspect I would > need another clue to look in the right place. Once I tried ntpd on my laptop. The problem is if it couldn't connect to the server when it starts, it will never sync. I found out that it may be the problem within ntpd itself, so I stopped using that. I can't see why you have two copies of ntpd running. But if these client machines booted before the ntp servers, it's never going to sync. -- Xiao-Yong