linux 11G R2 RAC 配置NTP服务器

11G RAC  配置NTP服务器

tip01的IP:162.20.1.228  NTP服务端
tip02的IP:162.20.1.229  NTP客户端

配置NTP服务器之前,确认服务器已装好NTP包

[[email protected] ~]# rpm -qa  | grep ntp
ntp-4.2.2p1-9.el5_4.1
chkfontpath-1.10.1-1.1

然后再把服务器的系统时钟与硬件时间同步一下

先查看下系统
[[email protected] ~]# date
2012年05月20日 星期日 22:07:01 CST

查看硬件时钟
[[email protected] ~]# hwclock 
2012年05月20日 星期日 13时33分46秒  -0.415712 seconds

这里,系统时钟与硬件时钟不同步,我们通过以下命令来把硬件时钟与系统时钟同步
[[email protected] ~]# clock --systohc

在查看下系统时钟与硬件时钟,已经同步了

[[email protected] ~]# date
2012年 05月20日 星期日 22:08:07 CST
[[email protected] ~]# hwclock 
2012年 05月20日 星期日 22时08分12秒  -0.154372 seconds
[[email protected] ~]# 

编辑tip01节点的配置文件

# vi /etc/ntp.conf 

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1 
restrict -6 ::1

server  162.20.1.228    #
server  127.127.1.0     #local clock

fudge   127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys

restrict 162.20.1.228  mask 255.255.255.255 nomodify notrap noquery

编辑tip02节点ntp.conf文件
# vi /etc/ntp.conf 

server tip01
restrict tip01 mask 255.255.255.255 nomodify notrap noquery

3.分别在tip01,tip02上修改NTPD参数文件

#vi /etc/sysconfig/ntpd

SYNC_HWCLOCK=yes
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

#RAC安装时需要检测的-x参

# cd /etc/ntp
# ls
keys  ntpservers  step-tickers

# more ntpservers 
#This file contains a list of ntp servers to show in the system-config-date user interface.
#It is not recommended that you modify this file by hand.

#添加ntp 服务器地址或者主机名
 tip01

注:注意查看step-tickers内容,如果step-tickers错误也会导致ntp不同步

# more step-tickers 
# 

在tip01,tip02上执行chkconfig,使NTP服务开机启动
[[email protected] ~]# chkconfig  ntpd on
[[email protected] ~]# chkconfig  ntpd on

[[email protected] ~]# service ntpd restart
关闭 ntpd:[确定]
ntpd: 同步时间服务器:[失败]
启动 ntpd:[确定]

确保该端口以udp方式开放。
[[email protected] ~]# netstat -an |grep 123
udp        0      0 192.168.99.228:123          0.0.0.0:*                               
udp        0      0 162.20.1.228:123            0.0.0.0:*                               
udp        0      0 127.0.0.1:123               0.0.0.0:*                               
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               
udp        0      0 ::1:123                     :::*                                    
udp        0      0 fe80::250:56ff:fe9d:123     :::*                                    
udp        0      0 :::123                      :::*

查看ntp状态
[[email protected] ~]# ntpstat 

synchronised to local net at stratum 11 
   time correct to within 11 ms
   polling server every 1024 s

在tip02节点启动ntp服务

[[email protected] ~]# service ntpd start
ntpd: 同步时间服务器:[确定]
同步硬件时钟到系统时钟 [确定]
启动 ntpd:[确定]

切换至事先配好的grid用户来验证两节点时间

[[email protected] ~]$ ssh tip01 date
2012年 05月 20日 星期日 22:21:46 CST
[[email protected] ~]$ ssh tip02 date
2012年 05月 20日 星期日 22:21:48 CST
[[email protected] ~]$

linux 11G R2 RAC 配置NTP服务器

时间: 2024-08-24 03:48:48

linux 11G R2 RAC 配置NTP服务器的相关文章

配置Linux 11G R2 RAC NTP服务

安装Oracle 11g RAC时,我们需要配置ntp服务.在使用虚拟机的情况下对于时钟同步方式的配置有很多种方式,可以使用vmware自带的时钟同步功能,也可以直接将本地的一个节点用作时间服务器.本文介绍直接配置ntp方式的时钟服务器. [python] view plain copy print? 1.查看两节点的hosts配置 [[email protected] ~]# cat /etc/hosts # Do not remove the following line, or vario

oracle 11g r2 rac ssh两节点互信对等配置Permission denied (publickey,gssapi-with-mic,password)

问题:安装oracle 11g r2 RAC grid 时,配置两节点ssh互信对等配置不成功,具体错误信息如下: ------------------------------------------------------------------------ Verifying SSH connectivity has been setup from rac1 to rac1 -----------------------------------------------------------

11g R2 rac linstener 监听配置

两个节点host,ipvip ,scan的信息 #eth0-Public IP 162.12.0.1    cqltjcpt1 162.12.0.3    cqltjcpt2 #eth1 PRIVATE IP 192.12.0.1   cqltjcpt1-prvi 192.12.0.3   cqltjcpt2-prvi #VIP 162.12.0.5   cqltjcpt1-vip 162.12.0.7   cqltjcpt2-vip #SCAN 162.12.0.9   cqltjcptsca

Linux配置NTP服务器

Linux配置NTP服务器   背景 当服务器多了,时间准确与否,一致与否是个大问题.虽然这个问题总是被忽略,但是统一一致的时间是很有必要的.下面说一下在局域网内配置Linux时间服务器的方法. 配置的环境及要求: 1.假设在192.168.0.0网段内,要以IP为192.168.0.240的Linux机器时间服务器. 2.192.168.0.240服务器能上外网,能与比较权威的公网时间服务器同步 3.同网段内的其他机器每小时自动向192.168.0.240同步时间 配置方法 一.配置NTP服务

Oracle 11G R2 RAC中的scan ip 的用途和基本原理【转】

Oracle 11G R2 RAC增加了scan ip功能,在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个主机vip的一个连接串,如果cluster增加了一个节点,那么对于每个连接数据库的客户端都需要修改这个tnsnames.ora. 引入了scan以后,就方便了客户端连接的一个接口,顾名思义 single client access name ,简单客户端连接名,这是一个唯一的名称,在整个公司网络内部

Oracle 11g R2 RAC安装规划

前言 使用虚拟机VMWARE安装Oracle 11g R2 RAC,需要模拟两个主机节点和一个共享存储,安装系统和创建虚拟存储文件这里不作介绍,可以自行百度方法,很简单. 一.主机规划 二.数据库规划 三.准备工作 3.1.HOSTS和主机名配置 #在所有节点添加主机名,重启生效: [[email protected] ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=node1 NTPSERVERARGS=iburst [[email

用命令设置esxi主机时间和配置NTP服务器

一.设置esxi主机时间 设置esxi主机时间为 2016 年03月8日16:01: 更改esxi系统时间: ~ #  esxcli system time set -d 08 -H 16 -m 01 -M 03 -y 2016 如果同步系统时间到主板上,使用下面命令: ~ # esxcli system time get 更改esxi主机主板上的时间: ~ # esxcli hardware clock set -d 10 -H 10 -m 18 -M 04 -y 2016  如果同步主板到e

搭建配置NTP服务器

1.yum install -y ntp 2.关闭防火墙     service iptables stop     service ip6tables stop     chkconfig iptables off     chkconfig ip6tables off     vim /etc/selinux/config          修改SELINUX=disabled           3.备份ntp.conf配置文件     cp /etc/ntp.conf /etc/ntp.

Oracle linux 6.3 安装11g R2 RAC on vbox

1 安装系统 Virtual box 4.3 Oracle linux 6.3 Oracle 11g r2 Make sure "Adapter 1" is enabled, set to "Bridged Adapter", then click on the "Adapter 2" tab. Make sure "Adapter 2" is enabled, set to "Bridged Adapter&quo