From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96123ea1cf6651c29daecc1b03d574ea@9fs.org> To: 9fans@cse.psu.edu Subject: Re: [9fans] aux/timesync -f fails From: nigel@9fs.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-tmapypxzwwcbwifjlqvosbkumr" Date: Fri, 10 May 2002 11:42:20 +0100 Topicbox-Message-UUID: 8e92b510-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-tmapypxzwwcbwifjlqvosbkumr Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Yes, that does it. Another nice fix would be to have an option to set the stratum when an RTC is used. At the moment it it is set to 0 (unsynchronized) which is quite understandable, unless you have a different local mechanism to set the RTC, so that it is actually trustworthy. This is the case for my network, where I use a Rugby receiver to get the time. I have added the following: case 'S': a = ARGF(); if(a == nil) sysfatal("bad stratum specified"); stratum = strtoll(a, 0, 0); break; The details of the Rugby receiver code are in http://www.9fs.org/dist/arc. So I run aux/timesync -s /net -r -S1 on the cpu server use the ipsntp stuff on the fileserver, and aux/timesync -n on the terminals. aux/timesync -f would be fine too, which CHF's fix. Yes, I know this is less accurate that using an Internet time server, but it's more fun. --upas-tmapypxzwwcbwifjlqvosbkumr Content-Type: message/rfc822 Content-Disposition: inline Received: from 9fs.org ([192.168.100.103]) by 9fs.org; Fri May 10 11:06:17 BST 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by 9fs.org; Fri May 10 11:06:17 BST 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id A0D8B199DD; Fri, 10 May 2002 06:06:08 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from lavoro.home.cs.york.ac.uk (public1-york1-5-cust17.leed.broadband.ntl.com [80.0.45.17]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 9194D199EC for <9fans@cse.psu.edu>; Fri, 10 May 2002 06:05:43 -0400 (EDT) Message-ID: <3f4f30cb9edfd67f111b6a028020be01@caldo.demon.co.uk> To: 9fans@cse.psu.edu Subject: Re: [9fans] aux/timesync -f fails From: forsyth@caldo.demon.co.uk MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-hoomykotfrfyxfgfzmhypnthgn" Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 10 May 2002 10:59:46 +0100 This is a multi-part message in MIME format. --upas-hoomykotfrfyxfgfzmhypnthgn Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit i suspect timesync needs to use amount. try changing /sys/src/cmd/aux/timesync.c:270 if(amount(fd, "/n/boot", MREPL, "") < 0) --upas-hoomykotfrfyxfgfzmhypnthgn Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from punt-1.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 1021018114:10:22375:96; Fri, 10 May 2002 08:08:34 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-1.mail.demon.net id aa1109137; 10 May 2002 8:08 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.23.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 243C519A17; Fri, 10 May 2002 04:08:10 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from nigel.9fs.org (cotswold.demon.co.uk [194.222.75.186]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 410CA19A00 for <9fans@cse.psu.edu>; Fri, 10 May 2002 04:07:01 -0400 (EDT) Message-ID: <5ffc0b4acd166eade239527d23481286@9fs.org> To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] aux/timesync -f fails Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 10 May 2002 09:07:02 +0100 My old arrangement of synchronising the fileserver (with sntp) and then setting the clock of the terminals from the fileserver root seems not to work any more. term% aux/timesync -f term% aux/timesync: mounting /srv/boot: attach -- unknown user or failed authentication The file server prints something including the words SUCK EGGS. Anyone care to enlighten me? --upas-hoomykotfrfyxfgfzmhypnthgn-- --upas-tmapypxzwwcbwifjlqvosbkumr--