How to Execute 19c runcluvfy.sh With Root and Sudo Method

Posted in: Renew Refresh Republish, Technical Track

Editor’s Note: Because our bloggers have lots of useful tips, every now and then we bring forward a popular post from the past. We originally published today’s post on September 9, 2019.

One method to prepare for a Grid Infrastructure (GI) upgrade is to execute runclufy.sh (Cluster Verification Utility). Here, I will demonstrate how I executed runclufy.sh to verify the upgrade, as well as some issues that I encountered.

[oracle@racnode-dc2-1 ~]$ /u01/app/19.3.0.0/grid/runcluvfy.sh stage -pre crsinst -upgrade -rolling -src_crshome /u01/app/12.2.0.1/grid -dest_crshome /u01/app/19.3.0.0/grid -dest_version 19.3.0.0 -fixup -verbose
--------------------------------------------------------------------------------
Verifying RPM Package Manager database ...INFORMATION (PRVG-11250)
--------------------------------------------------------------------------------
Verifying Network interface bonding status of private interconnect network interfaces ...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
Verifying Systemd login manager IPC parameter ...PASSED
Pre-check for cluster services setup was unsuccessful.
Checks did not pass for the following nodes:
racnode-dc2-2,racnode-dc2-1
Failures were encountered during execution of CVU verification request "stage -pre crsinst".
--------------------------------------------------------------------------------
Verifying RPM Package Manager database ...INFORMATION
PRVG-11250 : The check "RPM Package Manager database" was not performed because
it needs 'root' user privileges.
--------------------------------------------------------------------------------
CVU operation performed: stage -pre crsinst
Date: Aug 27, 2019 3:41:50 PM
CVU home: /u01/app/19.3.0.0/grid/
User: oracle
[oracle@racnode-dc2-1 ~]$

The above is INFO and can be ignored. However, I wanted to see what the process was checking using a root method and a sudo method.

Here’s an example using the root method, requiring a root password, which completed successfully:

[oracle@racnode-dc2-1 ~]$ /u01/app/19.3.0.0/grid/runcluvfy.sh stage -pre crsinst -upgrade -rolling -src_crshome /u01/app/12.2.0.1/grid -dest_crshome /u01/app/19.3.0.0/grid -dest_version 19.3.0.0 -fixup -verbose -method root
Enter "ROOT" password:
Verifying RPM Package Manager database ...PASSED
Verifying Network interface bonding status of private interconnect network interfaces ...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
Verifying Systemd login manager IPC parameter ...PASSED
Pre-check for cluster services setup was successful.
CVU operation performed: stage -pre crsinst
Date: Aug 27, 2019 4:10:48 PM
CVU home: /u01/app/19.3.0.0/grid/
User: oracle
[oracle@racnode-dc2-1 ~]$

Here’s an example using a sudo method which failed due to an incorrect location for sudo:

[oracle@racnode-dc2-1 ~]$ /u01/app/19.3.0.0/grid/runcluvfy.sh stage -pre crsinst -upgrade -rolling -src_crshome /u01/app/12.2.0.1/id -dest_crshome /u01/app/19.3.0.0/grid -dest_version 19.3.0.0 -fixup -verbose -method sudo -user oracle
Enter "SUDO" password:
racnode-dc2-2: PRVG-11302 : 'sudo' command does not exist at location "/usr/local/bin/sudo" on nodes "racnode-dc2-2"
--------------------------------------------------------------------------------
PRCZ-2008 : Failed to execute the command "/usr/local/bin/sudo -V" on nodes "racnode-dc2-1, racnode-dc2-2"
--------------------------------------------------------------------------------
racnode-dc2-1: PRVG-11302 : 'sudo' command does not exist at location "/usr/local/bin/sudo" on nodes "racnode-dc2-1"
--------------------------------------------------------------------------------
PRCZ-2008 : Failed to execute the command "/usr/local/bin/sudo -V" on nodes "racnode-dc2-1, racnode-dc2-2"
--------------------------------------------------------------------------------
Pre-check for cluster services setup was unsuccessful on all the nodes.
CVU operation performed: stage -pre crsinst
Date: Aug 27, 2019 4:49:57 PM
CVU home: /u01/app/19.3.0.0/grid/
User: oracle
[oracle@racnode-dc2-1 ~]$
[oracle@racnode-dc2-1 ~]$ which sudo
/bin/sudo
[oracle@racnode-dc2-1 ~]$

Some friendly advice; don’t try to fix sudo access as it may break sudo functionality for other processes.

In conclusion, you can use runcluvfy.sh to validate GI before upgrade. Either ignore the INFO or run as root.

email

Author

Want to talk with an expert? Schedule a call with our team to get the conversation started.

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *