2.10. Configure the user ntf service 2.10.1. Configuration Node RAC1
1) |
[[email protected] sysconfig] #sed-i ' s/options/#OPTIONS/g '/etc/sysconfig/ntpd |
2) |
[[email protected] sysconfig] #cat >>/etc/sysconfig/ntpd << EOF > options= "-x-u ntp:ntp-p/var/run/ntpd.pid" > EOF |
3) |
[[email protected] sysconfig] #mv/etc/ntp.conf/etc/ntp.confbak |
4) |
[email protected] sysconfig]# cat >/etc/ntp.conf << EOF > Restrict 0.0.0.0 mask 0.0.0.0 nomodify > Server 127.127.1.0 > Fudge 127.127.1.0 Stratum 10 > Driftfile/var/lib/ntp/drift > Broadcastdelay 0.008 > Authenticate No > Keys/etc/ntp/keys > EOF |
2.10.2. Configuring the Node RAC2
1) |
[Email protected] sysconfig]# sed-i ' s/options/#OPTIONS/g '/etc/sysconfig/ntpd |
2) |
[[Email protected]]# cat >>/etc/sysconfig/ntpd << EOF > options= "-x-u ntp:ntp-p/var/run/ntpd.pid" > EOF |
3) |
[Email protected] sysconfig]# Mv/etc/ntp.conf/etc/ntp.confbak |
4) |
[email protected] sysconfig]# cat >>/etc/ntp.conf << XL > Restrict default kod nomodify notrap nopeer noquery > Restrict 10.10.97.0mask 255.255.255.0 nomodify notrap > Restrict 127.0.0.1 > Server 10.10.97.168 > Server 127.127.1.0 # Local clock > Fudge 127.127.1.0 Stratum 10 > Driftfile/var/lib/ntp/drift > Broadcastdelay 0.008 > Keys/etc/ntp/keys > XL |
2.10.3. Starting a service (two-node)
[[email protected] etc] #service ntpd Restart |
2.10.4. system Boot Auto-load
[[email protected] etc] #chkconfig ntpd on |
Build oracle11g RAC 64 cluster environment based on CentOS and VMWARESTATION10:2. Build the environment-2.10. Configure User ntf Services