From owner-freebsd-current@freebsd.org Wed Mar 15 06:17:43 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D00A0D0B534 for ; Wed, 15 Mar 2017 06:17:43 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CB301BDB for ; Wed, 15 Mar 2017 06:17:42 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIzGn-1cm6RK1k9h-002USD for ; Wed, 15 Mar 2017 07:17:35 +0100 Date: Wed, 15 Mar 2017 07:17:24 +0100 From: "O. Hartmann" To: freebsd-current Subject: ntpd dies nightly on a server with jails Message-ID: <20170315071724.78bb0bdc@freyja.zeit4.iv.bundesimmobilien.de> Organization: Walstatt X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:KghQvvcOKtnh41DEbtxKqRUJfHv9EbwyZxocyahTXRvL9F3uGdF AfmPozY1s4NKpixJ3/dr54P8/oL/x8fZ61zVBrgWV1sbbYkFi4U2aJu/Blp9kDvH2whID5J UmLH2VGVF7G3ERpOc23YFR4sz+MnOhURXAkJWr4a/ZDOmA3dGaFKOQudeobb7Sy+cXqdu9n xOtAMRPye+UqBI41wfo1A== X-UI-Out-Filterresults: notjunk:1;V01:K0:WkWzMRb//fQ=:joVEigS/d3DzhCsHzSZt1k ym4j3dmRRHus1SaxgDFoOPxYOq0E0wQ/mQpIsxkjMl08EvGWD10UdRvCieQAT8h9yjKPAv3fG 8Xgx0+BYDW8r+4u67tMEiw5DAfcoo/pYdEpM1W9+oXvWhFB7Dnh5ch2kqeCpi5+JnYGAdfrBk hzEznkJyKlMRaipOou78cTHn5IsSKLkYiPJPPqcoBdhaPhiCryF0yRTJheUYhoSaZbhc4QdE0 yIRce0FDDScxoB+BlRso4wbzPy+5p7LMjVZ5cioT1xLeVtno1YAU0nds580xFp6C96UEauvPd dpHkbMog9S12Lslr/9AXgL95TyJRnQgWjAlFUsktkixroVZkWLWBo8bD14Q1AMy6Hceo9wQ3u Xg1eUnD1gTaz2QgNDV56ZkclU1JF5pYydmwW1gdW67UvCLcn793hQJItuPK2khG7ylv86voVI d6e0w3BLsVfKny0NGL5iDVFEuAUdt8emHw/zK/MWcSHq0OrOr1niRRHZs7GkOC8OGu8x0rSQ9 HwLwX2EDh7QC1X2MSfqoVTeFtZXmP0D5c+R4hT3mA5eI8d6rxa33t9e4TYXFe/OUusqCTAXfy dSuJLKMGUEecjV6UZ2K8U9ABh7HnO8s/aP8ULoJtJjpMa22PFBaoPQw051HCGMqTW8gmVw4pu A2lhQ0fuxQBq1hcLpktAduzKQJhNyaDdK9CEY0e/guxvQXIIaTW79e9pDVdjO0yVRYSMrUvpf gwzd+Lacx7dodb7oSug6XXxc6bKjD/oisSDFuw7HqAyAs0WzAlY9GPdX+0HSeNiLcvVuL9HVF bcGL1d7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 06:17:43 -0000 Running a host with several jails on recent CURRENT (12.0-CURRENT #8 r315187: Sun Mar 12 11:22:38 CET 2017 amd64) makes me trouble on a daily basis. The box is an older two-socket Fujitsu server equipted with two four-core Intel(R) Xeon(R) CPU L5420 @ 2.50GHz. The box has several jails, each jail does NOT run service ntpd. Each jail has its dedicated loopback, lo1 throughout lo5 (for the moment) with dedicated IP: 127.0.1.1 - 127.0.5.1 (if this matter, I believe not). The host itself has two main NICs, broadcom based. bcm0 is dedicated to the host, bcm1 is shared amongst the jails: each jail has an IP bound to bcm1 via whihc the jails communicate with the network. I try to capture log informations via syslog, but FreeBSD's ntpd seems to be very, very sparse with such informations, coverging to null - I can't see anything suiatble in the logs why NTPD dies almost every night leaving the system with a wild reset of time. Sometimes it is a gain of 6 hours, sometimes it is only half an hour. I leave the box at 16:00 local time usually and take care again at ~ 7 o'clock in the morning local time. When the clock is floating that wild, in all cases ntpd isn't running any more. I try to restart with options -g and -G to adjust the time quickly at the beginning, which works fine. Apart from possible misconfigurations of the jails (I'm quite new to jails and their pitfalls), I was wondering what causes ntpd to die. i can't determine exactly the time of its death, so it might be related to diurnal/periodic processes (I use only the most vanilla configurations on periodic, except for checking ZFS's scrubbing enabled). I'ven't had the chance to check whether the hardware is completely all right, but from a superficial point of view there is no issue with high gain of the internal clock or other hardware issues. If there are known issues with jails (the problem occurs since I use those), advice is appreciated. Thanks in advance, O. Hartmann