However, to provide time services to the Oracle VM Servers, NTP must first be installed and configured on the Oracle VM Manager host server. Make sure that your Oracle VM Manager host is either registered with the Unbreakable Linux Network (ULN) or configured to use Oracle's public YUM service.
To configure NTP on the Oracle VM Manager host:
- Install the NTP package.
# yum install ntp
Once NTP is installed, configure it to both synchronize with upstream servers and provide time services to the local network, where the Oracle VM Servers reside. - Enable upstream synchronization by defining the upstream time servers in the
ntp.conf
file.
Oracle Linux uses three public NTP servers as upstream time sources by default. Check with your network administrator if time services are provided on the corporate network and, if necessary, replace the default entries with the names or IP addresses of your NTP servers.
Use your favorite text editor to modify/etc/ntp.conf
. Search for these entries:
# vi /etc/ntp.conf server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
- Configure downstream access for the Oracle VM Servers in your local network. To do so, disable the default
"noquery"
option for the Oracle VM Server management network.
Again in the/etc/ntp.conf
file, search for this entry:
#restrict
Replace192.168.1.0
mask255.255.255.0
nomodify notrap192.168.1.0
with the network address of your Oracle VM Server management network. You may also need to adjust the netmask (255.255.255.0
). Remove the # character at the start of the line to uncomment this entry. Once you have finished editing, save the/etc/ntp.conf
file. - Start the NTP service and set it to launch automatically upon boot.
# service ntpd start # chkconfig ntpd on
- When NTP is running, check upstream synchronization. The
ntpq
command should output something similar to this example:
# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== lists2.luv.asn. 203.161.12.165 16 u 25 64 3 3.495 -3043.1 0.678 ns2.novatelbg.n 130.95.179.80 16 u 27 64 3 26.633 -3016.1 0.797 sp1.mycdn.fr 130.234.255.83 16 u 24 64 3 4.314 -3036.3 1.039
When upstream NTP is working properly, delay and offset values should be non-zero and the jitter value should be below 100. - Test downstream synchronization from another server in the management network to ensure that NTP services are working. Note that it may take several minutes before your NTP server is able to provide time services to downstream clients. Begin by checking the stratum level of your server:
# ntpq -c rv assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart, version="ntpd 4.2.4p8@1.1612-o Tue Jul 6 21:50:26 UTC 2010 (1)", processor="x86_64", system="Linux/2.6.32-200.19.1.el6uek.x86_64", leap=11,
If the server is showingstratum=16
, precision=-20, rootdelay=0.000, rootdispersion=1.020, peer=0, refid=INIT, reftime=00000000.00000000 Thu, Feb 7 2036 17:28:16.000, poll=6, clock=d21d4a96.a26c5962 Fri, Sep 16 2011 14:09:58.634, state=0, offset=0.000, frequency=0.000, jitter=0.001, noise=0.001, stability=0.000, tai=0stratum=16
, wait a few minutes and try again. It may take up to 15 minutes for an NTP server to stabilize sufficiently to lower its stratum level.
Downstream clients will not synchronize with a server at stratum level 16. Once the stratum level has dropped, log in to any available Linux host in your management network and issue the following command:
# ntpdate -d
This command runs ntpdate in debug mode, in which case the availability of the remote time server is checked. If the debug run ends in a line similar to the one in this example, the test is successful. In case the stratum level is still too high, the error messagemanager.hostname
[...] 16 Sep 13:58:25 ntpdate[1603]: step time server 192.168.1.1 offset 3.009257 sec"Server dropped: strata too high"
is displayed.
Caution
NTP communicates over UDP port 123. Ensure that no firewall is blocking this traffic.
No hay comentarios:
Publicar un comentario