Oracle RAC集群添加节点(5)

"/oracle/app/oraInventory/logs/addNodeActions2019-03-14_05-02-33PM.log"
"/oracle/app/oraInventory/logs/oraInstall2019-03-14_05-02-33PM.err"
"/oracle/app/oraInventory/logs/oraInstall2019-03-14_05-02-33PM.out"
[grid@node1 bin]$

二,添加节点(二)

新节点配置--->>节点配置前请看往期RAC基础配置,一些基础环境需要先配置好,共享磁盘也需要完成

01,配置互信

node3(新节点)--oracle用户:
su - oracle
mkdir ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa

在存活的节点操作:
su - oracle
ssh node3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh node3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys node3:~/.ssh/authorized_keys

node3(新节点)--grid用户:
su - grid
mkdir ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa

在存活的节点操作:
su - grid
ssh node3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh node3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys node3:~/.ssh/authorized_keys

02,验证节点是否符合要求

在存活节点操作

[grid@node1 ~]$ cluvfy stage -pre nodeadd -n node3

Performing pre-checks for node addition

Checking node reachability...
Node reachability check passed from node "node1"


Checking user equivalence...
User equivalence check passed for user "grid"

WARNING:
Unable to obtain VIP information from node "node1".


Checking CRS integrity...

Clusterware version consistency passed

CRS integrity check passed

Checking shared resources...

Checking CRS home location...
"/oracle/11.2.0/grid/crs" is shared
Shared resources check for node addition passed


Checking node connectivity...

Checking hosts config file...

Verification of the hosts config file successful

Check: Node connectivity for interface "eth0"
Node connectivity passed for interface "eth0"
TCP connectivity check passed for subnet "192.168.0.0"


Check: Node connectivity for interface "eth1"
Node connectivity passed for interface "eth1"
TCP connectivity check passed for subnet "172.168.0.0"

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5af4bd1045ea729d53a637423ae99abf.html