Ask Your Question
1

how to change the server directive to use the controller node as internet time zone

asked 2014-02-28 12:23:22 -0500

Indeep_Minku-OPENSTACK gravatar image

updated 2014-03-03 18:04:17 -0500

smaffulli gravatar image

how to add the controller node as internet time zone in ntp.conf in compute node to synchronize the two VM's. I am following OpenStack guide for Havana and i am stuck at page 28 in the guide where its asking to Synchronize from the controller node. Follow the instructions in the section called Network Time Protocol. How to change the server directive to use the controller node as internet time source.

edit retag flag offensive close merge delete

Comments

Please edit your question and add more details. I'm sure you know already about `man ntpd` so what is failing?

smaffulli gravatar imagesmaffulli ( 2014-02-28 17:19:36 -0500 )edit
dheeru gravatar imagedheeru ( 2014-03-02 01:33:40 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-03-26 13:53:08 -0500

Indeep_Minku-OPENSTACK gravatar image

I followed the following steps according to the responses i recieved.

step 1 -> I created a file named ntpdate . By writing image description

step 2 -> then i wrote this in ntpdate file. image description

as 192.168.0.10 is the internal IP address of my Controller Node.

step 3 - > then i run this command to make file executable and owned by root. image description

I think so this will work.If any problem is still ther please let me know. Thank You.

edit flag offensive delete link more
0

answered 2014-03-03 06:12:17 -0500

dheeru gravatar image

updated 2014-03-03 18:06:13 -0500

smaffulli gravatar image

The documentation is fairly clear and states:

Set up the NTP client on your compute node so that the time between controller node and compute node is synchronized. The simplest way to do this is to add a daily cron job that synchronizes the compute node's clock with the controller node. You can accomplish this by adding a file, owned by root, marked executable, at /etc/cron.daily/ntpdate that contains the following:

ntpdate <hostname or IP address of controller>
hwclock -w

You can refer to the full documentation as well. It may help you.

edit flag offensive delete link more

Comments

thnx dheeru sir for your help.. As I am new to ubuntu. Can you please help me by explaining how to create a executable file. As in what should be the extension of the ntpdate file in /etc/cron.daily folder.

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-03-25 10:41:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-28 12:23:22 -0500

Seen: 373 times

Last updated: Mar 26 '14