PRVG-2002 Encountered error in copying file /etc/nsswitch.conf

PRVG-2002 Encountered error in copying file “/etc/nsswitch.conf”: In this article we will discuss about how we can fix the error “PRVG-2002” at runcluvfy.sh execution time.

Error:

Verifying DNS/NIS name service …FAILED
node-2: PRVG-2002 : Encountered error in copying file “/etc/nsswitch.conf”
from node “node-2” to node “node-1”
protocol error: filename does not match request

Solution:

To resolve this issue follow below given steps on one node only of the RAC where you execute the runcluvfy.sh. Also make sure login using “root” user before follow the steps.

[root@node-1 ~]# cp -p /usr/bin/scp /usr/bin/scp-original
[root@node-1 ~]#
[root@node-1 ~]# echo "/usr/bin/scp-original -T \$*" > /usr/bin/scp
[root@node-1 ~]#
[root@node-1 ~]# cat /usr/bin/scp
/usr/bin/scp-original -T $*
[root@node-1 ~]#

runcluvfy.sh execution output without error:

[grid@node-1 ~]$ cd /u02/app/19c/grid/
[grid@node-1 grid]$
[grid@node-1 grid]$
[grid@node-1 grid]$ ./runcluvfy.sh stage -pre crsinst -n node-1,node-2 -verbose

Verifying Physical Memory ...
  Node Name     Available                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  node-2      15.3848GB (1.6132096E7KB)  8GB (8388608.0KB)         passed
  node-1      15.3848GB (1.6132088E7KB)  8GB (8388608.0KB)         passed
Verifying Physical Memory ...PASSED
Verifying Available Physical Memory ...
  Node Name     Available                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  node-2      14.8433GB (1.556432E7KB)  50MB (51200.0KB)          passed
  node-1      14.0682GB (1.4751532E7KB)  50MB (51200.0KB)          passed
Verifying Available Physical Memory ...PASSED
Verifying Swap Size ...
  Node Name     Available                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  node-2      16GB (1.6777212E7KB)      15.3848GB (1.6132096E7KB)  passed
  node-1      16GB (1.6777212E7KB)      15.3848GB (1.6132088E7KB)  passed
Verifying Swap Size ...PASSED
Verifying Free Space: node-2:/usr,node-2:/var,node-2:/etc,node-2:/sbin,node-2:/tmp ...
  Path              Node Name     Mount point   Available     Required      Status
  ----------------  ------------  ------------  ------------  ------------  ------------
  /usr              node-2      /             57.084GB      25MB          passed
  /var              node-2      /             57.084GB      5MB           passed
  /etc              node-2      /             57.084GB      25MB          passed
  /sbin             node-2      /             57.084GB      10MB          passed
  /tmp              node-2      /             57.084GB      1GB           passed
Verifying Free Space: node-2:/usr,node-2:/var,node-2:/etc,node-2:/sbin,node-2:/tmp ...PASSED
Verifying Free Space: node-1:/usr,node-1:/var,node-1:/etc,node-1:/sbin,node-1:/tmp ...
  Path              Node Name     Mount point   Available     Required      Status
  ----------------  ------------  ------------  ------------  ------------  ------------
  /usr              node-1      /             55.2822GB     25MB          passed
  /var              node-1      /             55.2822GB     5MB           passed
  /etc              node-1      /             55.2822GB     25MB          passed
  /sbin             node-1      /             55.2822GB     10MB          passed
  /tmp              node-1      /             55.2822GB     1GB           passed
Verifying Free Space: node-1:/usr,node-1:/var,node-1:/etc,node-1:/sbin,node-1:/tmp ...PASSED
Verifying User Existence: grid ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node-2      passed                    exists(54322)
  node-1      passed                    exists(54322)

  Verifying Users With Same UID: 54322 ...PASSED
Verifying User Existence: grid ...PASSED
Verifying Group Existence: asmadmin ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node-2      passed                    exists
  node-1      passed                    exists
Verifying Group Existence: asmadmin ...PASSED
Verifying Group Existence: asmdba ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node-2      passed                    exists
  node-1      passed                    exists
Verifying Group Existence: asmdba ...PASSED
Verifying Group Existence: oinstall ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node-2      passed                    exists
  node-1      passed                    exists
Verifying Group Existence: oinstall ...PASSED
Verifying Group Membership: asmdba ...
  Node Name         User Exists   Group Exists  User in Group  Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          yes           yes           yes           passed
  node-1          yes           yes           yes           passed
Verifying Group Membership: asmdba ...PASSED
Verifying Group Membership: asmadmin ...
  Node Name         User Exists   Group Exists  User in Group  Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          yes           yes           yes           passed
  node-1          yes           yes           yes           passed
Verifying Group Membership: asmadmin ...PASSED
Verifying Group Membership: oinstall(Primary) ...
  Node Name         User Exists   Group Exists  User in Group  Primary       Status
  ----------------  ------------  ------------  ------------  ------------  ------------
  node-2          yes           yes           yes           yes           passed
  node-1          yes           yes           yes           yes           passed
Verifying Group Membership: oinstall(Primary) ...PASSED
Verifying Run Level ...
  Node Name     run level                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  node-2      5                         3,5                       passed
  node-1      5                         3,5                       passed
Verifying Run Level ...PASSED
Verifying Hard Limit: maximum open file descriptors ...
  Node Name         Type          Available     Required      Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          hard          262144        65536         passed
  node-1          hard          262144        65536         passed
Verifying Hard Limit: maximum open file descriptors ...PASSED
Verifying Soft Limit: maximum open file descriptors ...
  Node Name         Type          Available     Required      Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          soft          1024          1024          passed
  node-1          soft          1024          1024          passed
Verifying Soft Limit: maximum open file descriptors ...PASSED
Verifying Hard Limit: maximum user processes ...
  Node Name         Type          Available     Required      Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          hard          62788         16384         passed
  node-1          hard          62788         16384         passed
Verifying Hard Limit: maximum user processes ...PASSED
Verifying Soft Limit: maximum user processes ...
  Node Name         Type          Available     Required      Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          soft          62788         2047          passed
  node-1          soft          62788         2047          passed
Verifying Soft Limit: maximum user processes ...PASSED
Verifying Soft Limit: maximum stack size ...
  Node Name         Type          Available     Required      Status
  ----------------  ------------  ------------  ------------  ----------------
  node-2          soft          10240         10240         passed
  node-1          soft          10240         10240         passed
Verifying Soft Limit: maximum stack size ...PASSED
Verifying Users With Same UID: 0 ...PASSED
Verifying Current Group ID ...PASSED
Verifying Root user consistency ...
  Node Name                             Status
  ------------------------------------  ------------------------
  node-2                              passed
  node-1                              passed
Verifying Root user consistency ...PASSED
Verifying Package: cvuqdisk-1.0.10-1 ...
  Node Name     Available                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  node-2      cvuqdisk-1.0.10-1         cvuqdisk-1.0.10-1         passed
  node-1      cvuqdisk-1.0.10-1         cvuqdisk-1.0.10-1         passed
Verifying Package: cvuqdisk-1.0.10-1 ...PASSED
Verifying Host name ...PASSED
Verifying Node Connectivity ...
  Verifying Hosts File ...
  Node Name                             Status
  ------------------------------------  ------------------------
  node-1                              passed
  node-2                              passed
  Verifying Hosts File ...PASSED

Interface information for node "node-1"

 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 ens1   192.168.xx.xx  192.168.xx.xx    0.0.0.0         192.168.xx.x    56:6F:8D:22:00:2F 1500
 ens2   192.168.xx.xx   192.168.yy.yy    0.0.0.0         192.168.xx.x    56:6F:8D:22:00:3A 1500

Interface information for node "node-2"

 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 ens1   192.168.yy.yy  192.168.xx.xx    0.0.0.0         192.168.xx.x    56:6F:8D:22:00:28 1500
 ens2   192.168.yy.yy   192.168.yy.yy    0.0.0.0         192.168.xx.x    56:6F:8D:22:00:2E 1500

Check: MTU consistency of the subnet "192.168.xx.xx".

  Node              Name          IP Address    Subnet        MTU
  ----------------  ------------  ------------  ------------  ----------------
  node-1          ens1          192.168.xx.xx  192.168.xx.xx  1500
  node-2          ens1          192.168.yy.yy  192.168.xx.xx  1500

Check: MTU consistency of the subnet "192.168.yy.yy".

  Node              Name          IP Address    Subnet        MTU
  ----------------  ------------  ------------  ------------  ----------------
  node-1          ens2          192.168.xx.xx  192.168.yy.yy  1500
  node-2          ens2          192.168.yy.yy  192.168.yy.yy  1500
  Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED

  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node-1[ens1:192.168.xx.xx]   node-2[ens1:192.168.yy.yy]   yes

  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node-1[ens2:192.168.xx.xx]    node-2[ens2:192.168.yy.yy]    yes
  Verifying subnet mask consistency for subnet "192.168.xx.xx" ...PASSED
  Verifying subnet mask consistency for subnet "192.168.yy.yy" ...PASSED
Verifying Node Connectivity ...PASSED
Verifying Multicast or broadcast check ...
Checking subnet "192.168.xx.xx" for multicast communication with multicast group "224.0.0.251"
Verifying Multicast or broadcast check ...PASSED
Verifying ASMLib installation and configuration verification. ...
  Verifying '/etc/init.d/oracleasm' ...PASSED
  Verifying '/dev/oracleasm' ...PASSED
  Verifying '/etc/sysconfig/oracleasm' ...PASSED

  Node Name                             Status
  ------------------------------------  ------------------------
  node-1                              passed
  node-2                              passed
Verifying ASMLib installation and configuration verification. ...PASSED
Verifying Network Time Protocol (NTP) ...PASSED
Verifying Same core file name pattern ...PASSED
Verifying User Mask ...
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  node-2      0022                      0022                      passed
  node-1      0022                      0022                      passed
Verifying User Mask ...PASSED
Verifying User Not In Group "root": grid ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node-2      passed                    does not exist
  node-1      passed                    does not exist
Verifying User Not In Group "root": grid ...PASSED
Verifying Time zone consistency ...PASSED
Verifying Time offset between nodes ...PASSED
Verifying resolv.conf Integrity ...
  Node Name                             Status
  ------------------------------------  ------------------------
  node-1                              passed
  node-2                              passed

checking response for name "node-2" from each of the name servers specified
in "/etc/resolv.conf"

  Node Name     Source                    Comment                   Status
  ------------  ------------------------  ------------------------  ----------
  node-2      192.168.xx.xx             IPv4                      passed
  node-2      192.168.yy.yy             IPv4                      passed

checking response for name "node-1" from each of the name servers specified
in "/etc/resolv.conf"

  Node Name     Source                    Comment                   Status
  ------------  ------------------------  ------------------------  ----------
  node-1      192.168.xx.xx             IPv4                      passed
  node-1      192.168.yy.yy             IPv4                      passed
Verifying resolv.conf Integrity ...PASSED
Verifying DNS/NIS name service ...PASSED
Verifying Domain Sockets ...PASSED
Verifying /boot mount ...PASSED
Verifying Daemon "avahi-daemon" not configured and running ...
  Node Name     Configured                Status
  ------------  ------------------------  ------------------------
  node-2      no                        passed
  node-1      no                        passed

  Node Name     Running?                  Status
  ------------  ------------------------  ------------------------
  node-2      no                        passed
  node-1      no                        passed
Verifying Daemon "avahi-daemon" not configured and running ...PASSED
Verifying Daemon "proxyt" not configured and running ...
  Node Name     Configured                Status
  ------------  ------------------------  ------------------------
  node-2      no                        passed
  node-1      no                        passed

  Node Name     Running?                  Status
  ------------  ------------------------  ------------------------
  node-2      no                        passed
  node-1      no                        passed
Verifying Daemon "proxyt" not configured and running ...PASSED
Verifying User Equivalence ...PASSED
Verifying RPM Package Manager database ...PASSED
Verifying /dev/shm mounted as temporary file system ...PASSED
Verifying File system mount options for path /var ...PASSED
Verifying DefaultTasksMax parameter ...PASSED
Verifying zeroconf check ...PASSED
Verifying ASM Filter Driver configuration ...PASSED

Pre-check for cluster services setup was successful.

CVU operation performed:      stage -pre crsinst
Date:                         Apr 14, 2025 10:42:27 PM
CVU home:                     /u02/app/19c/grid/
User:                         grid
[grid@node-1 grid]$

I hope my written content will helped you. Your suggestions/feedback are most welcome from orakldba.com. Keep learning… Have a great day!!!
Please comment here for your any query related to above content. You can write to mail me through my Email.

Email :- orakldba@gmail.com
LinkedIn :- https://linkedin.com/in/prasantakirtaniya
Twitter :- https://twitter.com/prasantadba
Facebook Page :- https://www.facebook.com/orakldba
Website :- https://orakldba.com
ACE Profile :- https://ace.oracle.com/apex/ace/profile/prasantakirtaniya
Oracle Community :- https://community.oracle.com/customerconnect/profile/discussions/prasantakirtaniya

Leave a Comment