This content has been marked as final. Show 7 replies
try this method to remove user equivalence error.
Start the RAC1 virtual machine and restart the RAC2 virtual machine. When both nodes have started, check they can both ping all the public and private IP addresses using the following commands. ping -c 3 rac1 ping -c 3 rac1-priv ping -c 3 rac2 ping -c 3 rac2-priv At this point the virtual IP addresses defined in the /etc/hosts file will not work, so don't bother testing them. Configure SSH on each node in the cluster. Log in as the "oracle" user and perform the following tasks on each node. su - oracle mkdir ~/.ssh chmod 700 ~/.ssh /usr/bin/ssh-keygen -t rsa # Accept the default settings. The RSA public key is written to the "~/.ssh/id_rsa.pub" file and the private key to the "~/.ssh/id_rsa" file. Log in as the "oracle" user on RAC1, generate an "authorized_keys" file on RAC1 and copy it to RAC2 using the following commands. su - oracle cd ~/.ssh cat id_rsa.pub >> authorized_keys scp authorized_keys rac2:/home/oracle/.ssh/ Next, log in as the "oracle" user on RAC2 and perform the following commands. su - oracle cd ~/.ssh cat id_rsa.pub >> authorized_keys scp authorized_keys rac1:/home/oracle/.ssh/ The "authorized_keys" file on both servers now contains the public keys generated on all RAC nodes. To enable SSH user equivalency on the cluster member nodes issue the following commands on each node. ssh rac1 date ssh rac2 date ssh rac1.localdomain date ssh rac2.localdomain date exec /usr/bin/ssh-agent $SHELL /usr/bin/ssh-add You should now be able to SSH and SCP between servers without entering passwords.
127.0.0.1 localhost.localdomain localhost
192.168.2.1 node1.localdomain node1
192.168.2.2 node2.localdomain node2
10.10.1.1 priv-node1.localdomain priv-node1
10.10.1.2 priv-node2.localdomain priv-node2
192.168.2.11 vip-node1.localdomain vip-node1
192.168.2.12 vip-node2.localdomain vip-node2
192.168.20.20 scan-rac.localdomain scan-rac