Servers time syncronization

Posted on 2004-11-05
Last Modified: 2013-12-27

We have two unix server, I'd like server A to sync with an outside time server, while server B sync to A. What are the possible approaches? How about:

1. run xntpd on both A and B; stop xntpd to run ntpdate outside_servername and then restart xntpd

2. run ntpdate on A, run rdate on B

What else?

Question by:ebi168
    LVL 40

    Assisted Solution

    Run xntpd on both. Set up A to sync to an Internet time keeper and permit/configure B to sync to A.
    LVL 38

    Accepted Solution


       My personal experience for 2 unix servers, I perfer "2"
    On A
    # crontab -e
    1 * * * * ntpdate <internet ntp server ip>

    On B
    # crontab -e
    2 * * * * ntpdate A

       xntpd have some limitation such as time offset more than 18 minutes (?) will fail to sync the time.
    Besides, xntpd might have some issues sometimes.

    LVL 38

    Assisted Solution

    I would go for option 2). and use cron to run ntpdate on A, run rdate on B.

    Box A get time from an  NTP server.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now