Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Finnish
  • Search

ntp ongelma

Keskustelua Gentoo Linuxista suomeksi. Tervetuloa!

Moderator: Chiitoo

Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
Hartza
n00b
n00b
User avatar
Posts: 26
Joined: Sat May 22, 2004 9:45 am
Location: Finland

ntp ongelma

  • Quote

Post by Hartza » Sat Oct 16, 2004 2:23 pm

Miksi /etc/ntp.conf tyhjenee koneen käynnistyksessä?
Kun laitan /etc/ntp.conf koneen käynnistyksen jälkeen kuntoon ja ajan komennon
/etc/init.d/ntpd restart
toimii taas jonkun aikaa, kunnes tökkää.

/var/log/ntp.log

Code: Select all

15 Oct 17:02:31 ntpd[7657]: synchronized to LOCAL(0), stratum=5
15 Oct 17:06:53 ntpd[7657]: synchronized to LOCAL(0), stratum=5
15 Oct 17:06:55 ntpd[7657]: sendto(194.137.39.67): Operation not permitted
15 Oct 17:07:51 ntpd[7657]: synchronized to 130.233.224.2, stratum=3
15 Oct 17:07:51 ntpd[7657]: time correction of 86434 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.
ntpq -p

Code: Select all

ntpq: read: Connection refused
/etc/ntp.conf

Code: Select all

restrict default noquery nomodify
restrict 127.0.0.1
restrict 192.168.0.0 mask 255.255.255.0
fudge 127.127.1.0 stratum 3
server 127.127.1.0
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log

server  tick.keso.fi
server  tock.keso.fi
server  ns2.clinet.fi
server  ns1.eunet.fi
server  ntp1.funet.fi
server  ns3.inet.fi
server  naula.kpo.fi
server  time1.mikes.fi
server  time2.mikes.fi
server  lokero.hut.fi
Top
jaska
Bodhisattva
Bodhisattva
Posts: 725
Joined: Fri Jun 06, 2003 7:26 am
Location: Finland

  • Quote

Post by jaska » Sun Oct 17, 2004 1:12 am

Minulla on ollut sama ongelma, ja ratkaisua ei ole tähän päivään löytynyt. Nykyään jos tarvitsen ntp:tä niin käytä ntpdate ohjelmaa jolla saan kellon 'oikeaan' aikaan. Jos haluat ntpdate:n yrittävän pitää kelloa ajantasalla niin voit laittaa rivin crontab:lle mutta se ei ole yhtä tehokas kuin ntpd on.
Top
Useful Idiot
Guru
Guru
User avatar
Posts: 329
Joined: Fri Aug 30, 2002 8:44 am
Location: Finland
Contact:
Contact Useful Idiot
Website

  • Quote

Post by Useful Idiot » Sun Oct 17, 2004 10:04 am

Käytättekö molemmat dchcpd:tä? Siinä tapauksessa lisätkää /etc/conf.d/net:n dhcpcd_eth0 muuttujaan "-N -Y" .
We are all in the gutter, but some of us are looking at the stars.
Top
Hartza
n00b
n00b
User avatar
Posts: 26
Joined: Sat May 22, 2004 9:45 am
Location: Finland

  • Quote

Post by Hartza » Sun Oct 17, 2004 1:51 pm

Useful Idiot wrote:Käytättekö molemmat dchcpd:tä? Siinä tapauksessa lisätkää /etc/conf.d/net:n dhcpcd_eth0 muuttujaan "-N -Y" .
/etc/ntp.conf ongelma korjaantui.

Ei toimi vieläkään kuin sen 5 min.
Kun tämä tulee logiin, silloin tökkää.

Code: Select all

15 Oct 17:07:51 ntpd[7657]: time correction of 86434 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.
Top
ormi
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Sun Oct 13, 2002 4:26 pm
Location: lappeen Ranta, Finland

  • Quote

Post by ormi » Sun Oct 17, 2004 4:45 pm

Itse kyllästyin tuohon ntp:hen ja hoidin homman toisin, eli

Code: Select all

emerge rdate
echo "rdate -s time.nist.gov" >> /etc/cron.hourly/time.cron
Saman tietty voi laittaa cron.dailyynkin, mutta pysyypähän kello ainakin ajassa :wink:. Saman rivin voi laittaa vielä varmuuden vuoksi tiedostoon /etc/conf.d/local.start
Top
Hartza
n00b
n00b
User avatar
Posts: 26
Joined: Sat May 22, 2004 9:45 am
Location: Finland

  • Quote

Post by Hartza » Mon Oct 18, 2004 2:29 pm

Toistaiseksi toimii ntp:llä. Eli kommentoin pois rivin #NTPD_OPTS="-u ntp:ntp" /etc/conf.d/ntpd:stä ja muutin vähän /etc/ntp.conf:a.

Code: Select all

File: /etc/ntp.conf
restrict default noquery nomodify
restrict 127.0.0.1
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log

server  tick.keso.fi
server  tock.keso.fi
server  ns2.clinet.fi
server  ns1.eunet.fi
server  ntp1.funet.fi
server  ns3.inet.fi
server  naula.kpo.fi
server  time1.mikes.fi
server  time2.mikes.fi
server  lokero.hut.fi
Top
markkuk
Guru
Guru
Posts: 446
Joined: Fri Nov 29, 2002 2:00 pm

  • Quote

Post by markkuk » Thu Oct 21, 2004 9:19 pm

Hartza wrote:Kun tämä tulee logiin, silloin tökkää.

Code: Select all

15 Oct 17:07:51 ntpd[7657]: time correction of 86434 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.
Kellosi on liian pahasti pielessä (vuorokausi ja 34 sekuntia), pistä se ensin oikeaan päivään.
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Finnish”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic