1752583 Members
5046 Online
108788 Solutions
New Discussion юеВ

Re: system time

 
Sajjad Sahir
Honored Contributor

system time

Dear All

unfortunately I changed system time in my first server now it is not synchronisig time with second one.Without rebooting how I can manage this issue?

data1# date
Wed Apr 30 15:05:54 WAT 2008
data2# date
Wed Apr 30 15:25:22 WAT 2008

data2# ntpdate data1
30 Apr 15:26:35 ntpdate[2532]: the NTP socket is in use, exiting

any idea
23 REPLIES 23
OFC_EDM
Respected Contributor

Re: system time

can you post the output of ntpq -p?
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: system time

Did you stop the ntp (xntpd) daemon before running ntpdate?
The Devil is in the detail.
Jeeshan
Honored Contributor

Re: system time

Hi Sajjad

Did you enable NTP daemon in /etc/rc.config.d/netdaemons?

what is your ntp.conf file content?
a warrior never quits
siva baskaran
Regular Advisor

Re: system time

Hi Sajjad Sahir,

if want to sync time each other you can use this command to sync time each other
/usr/sbin/ntpdate -b (ip of another server)

regards
Siva
Sajjad Sahir
Honored Contributor

Re: system time

data1# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(1) LOCAL(1) 10 l 5 64 377 0.00 0.000 10.01

dear team
netdaemons and all these config.are ok
I already mentioned it is running ntp already configuration daemon and every things are ok i changed my system time from my first server unfortunately
then any command i can use to synchronise the second server time with first one

also see i used systemm clock to configure.
if u have any other solutions please let me know
thanks and regards
sajjad
Sajjad Sahir
Honored Contributor

Re: system time

which ip u mean siva system ip or ip defined in u ntp configuration file
i told already
data2# ntpdate data1
30 Apr 15:26:35 ntpdate[2532]: the NTP socket is in use, exiting
i am getting this error while i am using
ntpdate command
Jeeshan
Honored Contributor

Re: system time

Hi again Sajjad

I understand what u configured is ok from your side. but sometimes the configuration may cause the problem.

yould you please post here what exactly you have changed in your ntp.conf file?
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: system time

Dear Ahsan Ustad
I didn't made any change in my /etc/ntp.conf file ok!!!!!!!!!!!!!

what i did
used date -u then changed system time
only in my server thats all
don't go about againg /etc/ntp.conf file let is stay there

sajjad
Jeeshan
Honored Contributor

Re: system time

without ntp how could you synchronize your date in your network?

>>data2# ntpdate data1
30 Apr 15:26:35 ntpdate[2532]: the NTP socket is in use, exiting


this command will only applicable when there is a ntp server and synchonize its time to other server.

are you confused abt the time server or UTC time?

UTC is different thing. its aonly synchronize your server with UTC time.
a warrior never quits