Purpose:
I am trying to install 11gr2 on 2 node OEL6 x86-64bit nodes
Problem:
Trying to verify the node equivalance
[oracle@linux1 bin]$ ./cluvfy comp admprv -n linux1,linux2 -o user_equiv -sshonly
Verifying administrative privileges
Checking user equivalence…
PRVF-4007 : User equivalence check failed for user “oracle”
Check failed on nodes:
linux1
Verification of administrative privileges was unsuccessful.
Checks did not pass for the following node(s):
linux1
[oracle@linux1 bin]$ id oracle
uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba),1201(vboxsf)
[oracle@linux1 bin]$ ssh linux2 id oracle
uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba),1201(vboxsf)
Hunting around:
First of all, I did search web for information and really couldn’t find anything that fixed my issue. There were few suspect items:
1. directory perm on .ssh (700)
2. permission on authorized_keys file (600)
Still no luck
Finally I did following:
a. export SRVM_TRACE=true
b. export SRVM_TRACE_LEVEL=10
c. ran the cluvfy (installed in /home/oracle/cvu)
d. Somehow thought of looking into /home/oracle/cvu/cv/log/cvutrace.log.0
That told me blurb about following command was failing!
/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 linux1 -n /bin/true
That lead me to run it manually and sure enough, its “ssh” that was failing
No RSA host key is known for linux1 and you have requested strict checking.
Host key verification failed.
OK – so I ran it such as following:
[oracle@linux1 .ssh]$ /usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o NumberOfPasswordPrompts=0 linux1 -n /bin/true
Warning: Permanently added ‘linux1,192.168.0.101’ (RSA) to the list of known hosts.
Notice, the command added the IP address to the known_hosts file!
That gave me clue to run ssh <ip-address> for both nodes – and that did the trick
[oracle@linux1 .ssh]$ /usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 linux1 -n /bin/true
Was successful!
[oracle@linux1 bin]$ ./cluvfy comp admprv -n linux1,linux2 -o user_equiv -sshonly
Verifying administrative privileges
Checking user equivalence…
User equivalence check passed for user “oracle”
Verification of administrative privileges was successful.
Hope this helps