Create an NTP environment in Centos
Recently, an Openstack and Ceph cluster were built. Because multiple nodes exist in the cluster and time synchronization is required between nodes, NTP is required. In addition, in some cases, the network environment is closed, therefore, you need to build an NTP server.
Server IP Address
Role
Description
Sync
Installing the NTP service
Zypper-n Install NTP
Configure NTP
Vim/etc/ntp.conf
When the external time server is unavailable, local time is used as the time service
Server 127.127.1.0
# Local Clock (LCL)
Fudge 127.127.1.0 Stratum 10
The most active time server on the Chinese side
Server 210.72.145.44 Perfer
Server 202.112.10.36
Server 59.124.196.83
: The Kod package is sent when an access violation occurs.RESTRICT-6 represents the permission settings for the IPV6 address.So we're going to add a rule to release the local network segment.Restrict 192.168.1.0 mask 255.255.255.0 nomdify notrapChange the time that the upper-level time server is used to update the machine.Comment out the CentOS time server to increase the server in China#server 0.centos.pool.ntp.org Iburst#server 1.centos.pool.ntp.org Iburst#server 2.centos.pool.ntp.org Iburst#s
--date= "2015-06-06 00:00:00" [[email protected] ~]# Hwclocksat June 12:00:06 AM CST-0.594816 secondsHardware time synchronized to system time: Hwclock-s or Hwclock--hctosysSystem time synchronized to hardware time: hwclock-w or Hwclock--SYSTOHCTime and time zone ( When coordinating the world, also known as the World Unification Time ), the computer set is this time, when the time server out of sync time, the other side provides this time, and then
Current network of the host, the business side sent to have an unsynchronized. Before also encountered similar problems, generally are NTP dead, resulting in the time is not synchronized. This view NTP service is operating properly.
Www.111cn.net: ~ #:~ # RCNTP StatusChecking for Network Time Protocol Daemon (NTPD): Running
NTPQ command to view discovery and NTP
Tags: telnet partial customer clock Max Pool class data for(a) Confirm NTP installation 1) Confirm that NTP is installed"Command" RPM–QA | grep NTPIf you have only ntpdate and you do not see NTP, you need to delete the original ntpdate. Such as:Ntpdate-4.2.6p5-22.el7_0.x86_64Fontpackages-filesystem-1.44-8.el7.noarchPython-ntplib-0.3.2-1.el7.noarch2) Remove instal
Tags: inux rac multiple file www ica res eve withinOracle NTP check Error ./runcluvfy.sh Stage-pre Crsinst-n Oracle57,oracle58-verbose [10:06:58] Verifying Network time Protocol (NTP) ... FAILED[10:06:58] prvg-1063:configuration files for more than one time synchronization service[10:06:58]were found on nodes of the cluster[10:06:58]configuration file "/etc/chrony.conf" was found on nodes "Oracle58,oracle57
About NTPNTP ( networktime Protocol UTC 0.1ms In most places on the Internet its accuracy can be achieved 1-50ms . NTP The server is using NTP the protocol provides time synchronization services. NTP Server InstallationView system comes with NTP[Email protected] ~]# Rpm-qa ntpntp-4.2.6p5-5.el6.centos.x86_64If
Ntp service and time synchronizationI had a small project that was completely self-developed. I thought it was a very simple NTP service. I had to spend more than two hours on it (I used to work on O M and didn't pay too much attention to it, therefore, this technology is easy to use.) record here to avoid wasting time in the future.
In the target environment, five linux centos 6.3 servers are used as the
I had a small project that was completely self-developed. I thought it was a very simple NTP service. I had to spend more than two hours on it (I used to work on O M and didn't pay too much attention to it, therefore, this technology is easy to use.) record here to avoid wasting time in the future.
In the target environment, five Linux centos 6.3 servers are used as the synchronization time between the ntpd service and the external public
The computer's system time is generated by a fixed oscillation frequency in the quartz crystal oscillator circuit in the computer.Date View current time zoneVim/etc/sysconfig/clock Modifying the time zone configuration fileZone= "America/new_york"#改为Zone= "Asia/shanghai"Cover/etc/localtimeCp-a 1114.www.qixoo.qixoo.com/usr/share/zoneinfo/asia/shanghai/etc/localtimeCp:overwrite '/etc/localtime '? YDate 111317402016 Modify System timeHwclock-w synchronizing system time to hardware timeRpm-qa |grep
The recent Exsi server time is always wrong, in the time configuration is always not correct display, using the following methods, you can quickly update to the latest time.System: Exsi 5.5
1. Login to ESXi host via SSH
How to open exsi ssh I will not say, we go online search, very simple.
2. Modify NTP profile via SSH
Vi/etc/ntp.conf
Add a row to the configuration file:TOS Maxdist 30
3. Modify/ETC/LIKEWISE/LSASSD.CONF configuration file
Find t
Configuration of the CentOS6.5 NTP service
The first requirements are as follows:
There are three servers, respectively: hadoop01.shiluo.com 192.168.239.133
Hadoop02.shiluo.com 192.168.239.134
Hadoop03.shiluo.com 192.168.239.135
Now to synchronize the time of the other two machines with the time of hadoop01.shiluo.com this machine, all of the following steps are tested effectively, and there are problems to communicate.
1. Configure hadoop01.shiluo.
Network Time Protocol (NTP) is a standard Internet Protocol used for Time synchronization on the Internet. NTP is used to synchronize computer time to certain time standards. The current Time standard is Universal Time Coordinated ). The primary developer of NTP is Professor David L. Mills from the University of Delaware.
What is the use of
Create an NTP environment in Centos
Recently, an Openstack and Ceph cluster were built. Because multiple nodes exist in the cluster and time synchronization is required between nodes, NTP is required. In addition, in some cases, the network environment is closed, therefore, you need to build an NTP server.
Server IP Address
Role
Description
Synchronization mode
1
Two ways to synchronize NTP: 1. Synchronize directly with the Ntpdate command 2. Smooth sync with NTPD serviceThe defect of the direct synchronization method: It will cause the scheduled task to be done again.The offset of the synchronization time of the smooth synchronization is not too steep, according to the offset, the mean variance equivalent of each synchronization a little bit, synchronization fully
Network Time Protocol (NTP) is a TCP/IP protocol used to publish accurate time throughout the network. Its transmission is based on UDP. The basic principles of the NTP protocol are as follows:The following figure shows the basic working principle of the NTP protocol. The GWA and gwb routers are connected through the network and all of them have their own system
NTP server: Network time Protocol (NTP) is a protocol used to synchronize the timing of a computer, which allows the computer to synchronize its servers or clock sources (such as quartz clocks, GPS, etc.) It provides high-precision time correction (less than 1 milliseconds on LAN versus standard, dozens of MS on WAN) and can be referred to as a cryptographic acknowledgment to prevent malicious protocol atta
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.