Backup fails on VRMS appliance using the .jar tool due to missing Java options in vSphere Replication 9.0.
search cancel

Backup fails on VRMS appliance using the .jar tool due to missing Java options in vSphere Replication 9.0.

book

Article ID: 400872

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

An administrator reported that backups are not working on the vSphere replication appliance using the vr-impex-tool JAR file. The following error was observed:

ERROR_LOG_PREFIX_/opt/vmware/vr-impex-tool/impex.properties (No such file or directory)
Unable to initiate using properties file: /opt/vmware/vr-impex-tool/impex.properties

Environment

vSphere Replication 9.x

Cause

In vSphere Replication version 9.0 and above, additional Java module access options are required when invoking the vr-impex-tool JAR file. These options enable proper access to Java internals that are restricted by default in newer JVM versions.

Resolution

Use the following command to include the required Java options:

java -Xmx1024m -Xms512m \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.base/java.util=ALL-UNNAMED \
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED \
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED \
-jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --exportProperties=/opt/vmware/vr-impex-tool/impex.properties --exportPath=/opt/vmware/vr-impex-tool/exports

Additional Information