This post is also available at:
Português

While running the script runcluvfy.sh, I came across the error PRVG-2002 : Encountered error in copying file, this error occurred for two files: “/etc/resolv.conf” and “/etc/nsswitch.conf”.
orarach1: PRVG-2002 : Encountered error in copying file "/etc/resolv.conf"
from node "orarach1" to node "orarach2"
protocol error: filename does not match request
Verifying DNS/NIS name service ...FAILED
orarach1: PRVG-2002 : Encountered error in copying file
"/etc/nsswitch.conf" from node "orarach1" to node
"orarach2"
protocol error: filename does not match request
BashIn the Oracle Doc ID 2761745.1, it provides the same solution as the one I’m going to post here, but the Doc says it’s for Oracle Solaris on SPARC (64-bit), and since I’m on RHEL8, I didn’t pay much attention at first.
I saw the same solution on the orakldba blog and decided to give it a try. It also works for RHEL8.
cp -p /usr/bin/scp /usr/bin/scp-original
echo "/usr/bin/scp-original -T \$*" > /usr/bin/scp
cat /usr/bin/scp
/usr/bin/scp-original -T $*
BashOnce this is done, just run runcluvfy.sh again.
./runcluvfy.sh stage -pre crsinst -n orarach1,orarach2 -verbose
.
.
.
.
Verifying resolv.conf Integrity ...PASSED
Verifying DNS/NIS name service ...PASSED
Bash