Page 1 of 1

ntp service

Posted: Fri Mar 13, 2009 2:14 pm
by rgmhtt
Amahi should be the ntp source for the local network.

Let the one system go out and find the time, then have all the clients look to it.

I think ntp can be controlled on the client with a dhcp option.


And whatabout SMB timeservices?

NET TIME \\hda set yes?

I think that takes an option set in the smb.conf file?

Re: ntp service

Posted: Fri Mar 13, 2009 2:38 pm
by cpg
good idea. one less thing to get traffic out.
i did a quick test adding

Code: Select all

option ntp-servers 192.168.1.10;
to my dhcpd conf file, released and renewed my lease and it did not work.

it's easy work:

- patch hdactl
- patch the installer to set it up as a service
- monitor it to make sure it does not go down

good idea about samba. i was not aware of that!

more later ...

(incidentally, we have some changes for the way we use monit to make it way more flexible and easier to add these, dosable individually, etc. ...)

Re: ntp service

Posted: Fri Mar 13, 2009 2:59 pm
by rgmhtt
Three are a few steps on setting up hda to be an ntp server. I have a few systems here set up as servers, so I have notes on what to do. I am shutting down for now, and will post them later during the weekend.

Re: ntp service

Posted: Mon Mar 16, 2009 6:11 am
by rgmhtt
Here is what you need to do to setup Amahi to be an ntp server to systems on its network.

First are changes to /etc/ntp.conf:

You have to remove restrictions for systems on the local net:

# Hosts on local network are less restricted.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

Note this is the only change which is install specific.

And you have to enable the fake servers. Uncomment out them as follows:

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10

Next there is an addtion to /etc/sysconfig/ntpd:

# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=yes

Now restart ntpd and you are a ntpd server for your network.


Finally there is making net time work as shown at: http://oreilly.com/catalog/samba/chapte ... 08_01.html

8.1.1.1 time server

If your Samba server has an accurate clock, or if it's a client of one of the Unix network time servers, you can instruct it to advertise itself as an SMB time server by setting the time server option as follows:

[global]
time service = yes

The client will still have to request the correct time with the following DOS command, substituting the Samba server name in at the appropriate point:

C:\NET TIME \\server /YES /SET

Re: ntp service

Posted: Mon Mar 16, 2009 6:15 am
by rgmhtt
;)

oops, I see that you already have /etc/samba/smb.conf setup for time services....

Re: ntp service

Posted: Mon Mar 16, 2009 6:17 am
by moredruid
shweet...
I'm going to try this ASAP :)