9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: nigel@9fs.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] aux/timesync -f fails
Date: Fri, 10 May 2002 11:42:20 +0100	[thread overview]
Message-ID: <96123ea1cf6651c29daecc1b03d574ea@9fs.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

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.

[-- Attachment #2: Type: message/rfc822, Size: 3336 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 131 bytes --]

i suspect timesync needs to use amount.
try changing /sys/src/cmd/aux/timesync.c:270
		if(amount(fd, "/n/boot", MREPL, "") < 0)

[-- Attachment #2.1.2: Type: message/rfc822, Size: 1658 bytes --]

To: 9fans@cse.psu.edu
Subject: [9fans] aux/timesync -f fails
Date: Fri, 10 May 2002 09:07:02 +0100
Message-ID: <5ffc0b4acd166eade239527d23481286@9fs.org>

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?

             reply	other threads:[~2002-05-10 10:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-10 10:42 nigel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-10  9:59 forsyth
2002-05-10  8:07 nigel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96123ea1cf6651c29daecc1b03d574ea@9fs.org \
    --to=nigel@9fs.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).