Description
Until NetBackup 8.0, the JRE package bundled along with the NetBackup or OpsCenter installers was updated only when you upgraded to a later NetBackup release. Using the nbcomponentupdate utility, users who run NetBackup 8.x and later can independently update the JRE.
This utility is included in current versions of NetBackup in the following locations:
On UNIX: /usr/openv/netbackup/bin/goodies/
On Windows: install_path\netbackup\bin\goodies\
Starting with NetBackup 10.4, NetBackup has transitioned to use OpenJDK from Amazon Corretto, replacing the Oracle JRE which was utilized up to NetBackup 10.3.0.1.
<Step to update>
1. Download Amazon Corretto Linux x64(tar.gz) and Windows x64(zip) JDKs:
NetBackup version | Java version | URL to get the latest Java version |
10.4/10.4.0.1 | 17.0.10 | https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/downloads-list.html |
10.5 | 21.0.4 | https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html |
2. Extract JREs from Linux, Windows JDKs using jlink utility
a. Untar Linux JDKs- example: tar -xzvf <Linux_JDK>
b. Unzip Windows JDK- example: unzip <Windows_JDK>
c. Extract JRE from uncompressed JDKs one at a time:
<JDK-directory>/bin/jlink --add-modules ALL-MODULE-PATH --output <directory path where jre will be extracted> --strip-debug --no-man-pages --no-header-files --compress=2
i.e. /root/amazon-corretto-17.0.12.7.1-linux-x64/bin/jlink --add-modules ALL-MODULE-PATH --output /root/extractedJRE --strip-debug --no-man-pages --no-header-files --compress=2
Veritas generally ships new product versions with the most current Java Runtime Environment (JRE) available at the time of development, and there are no additional costs for customers to use the included JRE as part of the NetBackup. However, please note that the Java component is only permitted for use with the NetBackup itself. If customers need to upgrade Java, they can obtain it directly from JRE Amazon and use nbcomponentupdate utility for the upgrade.
(Note: Minor versions can be upgraded)
By default, any updates that a customer makes to NetBackup outside of Veritas-provided software updates are not supported (i.e., not a “supported configuration”). However, specifically for Java, if a customer applies a customer-procured Java update outside of a Veritas scheduled release, at its sole discretion, Veritas may continue to provide support to the customer. If the customer-procured Java update negatively impacts NetBackup at any point in time, Veritas may require the customer to revert the update in order to receive support.
The command line usage for the utility is documented in the Command Reference Guide:
NetBackup™ Commands Reference Guide - 10.4 - nbcomponentupdate
<Example to upgrade Java version(NetBackup 10.4.0.1 on Unix)>
1. Check the Java version
/usr/openv/java/jre/bin/java -versionopenjdk version "17.0.10" 2024-01-16 LTS
OpenJDK Runtime Environment Corretto-17.0.10.7.1 (build 17.0.10+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.10.7.1 (build 17.0.10+7-LTS, mixed mode)
2. Upgrade Java to 17.0.13
/usr/openv/netbackup/bin/goodies/nbcomponentupdate -product netbackup -component jre -path /tmp/amazon-corretto-17.0.13.11.1-linux-x64
(where The folder amazon-corretto-17.0.13.11.1-linux-x64 is an extracted copy of the file obtained from https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz and has been placed in the /tmp directory.)
OpenJDK Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 17.0.10 (64bit)
OpenJDK Runtime Envrionment(JRE) version found at path '/tmp/amazon-corretto-17.0.13.11.1-linux-x64' : 17.0.13 (64bit)
This utility will update the OpenJDK Runtime Envrionment(JRE) binaries present at '/usr/openv/java/jre' path
This utility may start and stop all (or some) services depending upon the present state of services.
Do you want to continue (Y[es]/N[o]): y
Performing upgrade steps ...
[1/4] Pre-installation step is in progress
[1/4] Pre-installation step is completed successfully
[2/4] Installation step is in progress
[2/4] Installation step is completed successfully
[3/4] Post-installation step is in progress
[3/4] Post-installation step is completed successfully
[4/4] Commit and Cleanup step is in progress
[4/4] Commit and Cleanup step is completed successfully
After upgrading, OpenJDK Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 17.0.13 (64bit)
Successfully upgraded OpenJDK Runtime Envrionment(JRE) for Veritas NetBackup.
The log file generated for this operation is /tmp/logs/nbcomponentupdate/nbcomponentupdate_04-11-2024_17.32.37.log
3. Check the JRE version after upgrade:
/usr/openv/java/jre/bin/java -versionopenjdk version "17.0.13" 2024-10-15 LTS
OpenJDK Runtime Environment Corretto-17.0.13.11.1 (build 17.0.13+11-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.13.11.1 (build 17.0.13+11-LTS, mixed mode, sharing)
<Example to upgrade Java version(NetBackup 10.4.0.1 on Windows)>
1. Check the Java version
C:\Program Files\Veritas\NetBackup\jre\bin>java.exe -versionopenjdk version "17.0.10" 2024-01-16 LTS
OpenJDK Runtime Environment Corretto-17.0.10.7.1 (build 17.0.10+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.10.7.1 (build 17.0.10+7-LTS, mixed mode)
2. Upgrade Java to 17.0.13
C:\Program Files\Veritas\NetBackup\bin\goodies>nbcomponentupdate.exe -product NetBackup -component jre -path C:\temp\amazon-corretto-17.0.13.11.1-windows-x64-jdk\jdk17.0.13_11
(where The folder amazon-corretto-17.0.13.11.1-windows-x64-jdk is an extracted copy of the file obtained from https://corretto.aws/downloads/latest/amazon-corretto-17-x64-windows-jdk.zip and has been placed in the C:\temp directory.)
OpenJDK Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 17.0.10 (64bit)
OpenJDK Runtime Envrionment(JRE) version found at path 'C:\temp\amazon-corretto-17.0.13.11.1-windows-x64-jdk\jdk17.0.13_11' : 17.0.13 (64bit)
This utility will update the OpenJDK Runtime Envrionment(JRE) binaries present at 'C:\Program Files\Veritas\NetBackup\jre' path
This utility may start and stop all (or some) services depending upon the present state of services.
Do you want to continue (Y[es]/N[o]): y
Performing upgrade steps ...
[1/4] Pre-installation step is in progress
[1/4] Pre-installation step is completed successfully
[2/4] Installation step is in progress
[2/4] Installation step is completed successfully
[3/4] Post-installation step is in progress
[3/4] Post-installation step is completed successfully
[4/4] Commit and Cleanup step is in progress
[4/4] Commit and Cleanup step is completed successfully
After upgrading, OpenJDK Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 17.0.13 (64bit)
Successfully upgraded OpenJDK Runtime Envrionment(JRE) for Veritas NetBackup.
The log file generated for this operation is C:\Users\ADMINI~1\AppData\Local\Temp\logs\nbcomponentupdate\nbcomponentupdate_12-11-2024_01.45.55.log
3. Check the JRE version after upgrade:
C:\Program Files\Veritas\NetBackup\jre\bin>java.exe -versionopenjdk version "17.0.13" 2024-10-15 LTS
OpenJDK Runtime Environment Corretto-17.0.13.11.1 (build 17.0.13+11-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.13.11.1 (build 17.0.13+11-LTS, mixed mode, sharing)