Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I am facing issue in ntp, it is getting killed frequently. see below error; # /etc/init.d/ntpd status ntpd dead but pid file exists After starting service it is works ...
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    1

    NTP issue in Virtual server

    Hi,

    I am facing issue in ntp, it is getting killed frequently. see below error;
    # /etc/init.d/ntpd status
    ntpd dead but pid file exists

    After starting service it is works fine but again after sometimes it get in dead postition.
    Please help me or give me suggestion ?

    Thanks,
    Dhanik

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    Is there anything in the logs that suggests why the service terminated? Take a look in /var/logs/messages in particular, but the error could be in other files, such as /var/log/secure, so read around.

    Are you running VMWare and using VMWare Tools to keep the clock in sync with the host machine? Could this be interfering and causing ntpd to stall?
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    It is a long shot, as you did not provide too much detail.

    But I know, that timekeeping in virtual machines is not as easy.
    Roxoff: installation of the vmware tools helps, but is not enough from my experience.
    The time inside the VMs will still fluctuate (is there such a word? ), due to for example CPU throttling on the host server.
    And I think, ntp doesnt like it very much if the time slows down/speeds up.

    One can set these configs to minimze the effect
    - on the host: /etc/vmware/config add
    host.cpukHz = 2330000 # 2.33Ghz = max Speed of one CPU
    host.noTSC = TRUE
    ptsc.noTSC = TRUE
    tools.syncTime = "TRUE"
    - in each VM:
    * /etc/grub.conf: add clocksource=pit as a kernel option (on older kernels this options is called clock=pit)

    Also read here:
    http://www.vmware.com/pdf/vmware_timekeeping.pdf


    We ultimately abandoned vmware server and went for ESXi, which is more robust in that context.
    You must always face the curtain with a bow.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i don't have any problems using vmware tools to keep it synced to the host, which is in turn synced to the actual NTP server on our network

  5. #5
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    coopstah13: Do your VMs run 24/7/365?

    But on the other hand: my info is about 1,5y old.
    It might just work recently
    You must always face the curtain with a bow.

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    my vm's are up 24/7, they haven't reached 365 yet though, certainly up for months

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...