1.开启后会发觉第二个vm的eth不再是从0开始
使用root用户修改/etc/udev/rules.d/30-net_persistent_names.rules
确保各node上的private net、public net的网络接口一致
修改/etc/sysconfig/netwrok下的eth-*文件完成ip修改
修改/etc/hosts配置如下三类ip的host名
node node-priv node-vip
oracle用户执行:
两个节点:
mkdir ~/.ssh
chmod 700 ~/.ssh
cd ~/.ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
一个节点:
ssh rac1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
ssh rac1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
scp authorized_keys rac1:/home/oracle/.ssh/
ssh rac1 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
ssh rac1 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
ssh rac2 cat /home/oracle/.ssh/id_rsa.pub >> authorized_keys
ssh rac2 cat /home/oracle/.ssh/id_dsa.pub >> authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh/
exec /usr/bin/ssh-agent $SHELL
/usr/bin/ssh-add
export DISPLAY=rac1:0.0
export DISPLAY=rac2:0.0
配置时间同步
使用root用户修改/etc/ntp.conf
同步源node
server 127.127.1.0
fudge 127.127.1.0 stratum 11
broadcastdelay 0.008
其余node
server 10.72.12.241 prefer
broadcastdelay 0.008
/etc/init.d/ntp start
./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
/proc/sys/fs