SRM/vSphere-Replication: import-export tool doesn't work
search cancel

SRM/vSphere-Replication: import-export tool doesn't work

book

Article ID: 413328

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

  • Using the import-export tool to export SRM config, it returns without error.
    root@XXX [ /opt/vmware/impex ]# java -jar import-export.jar --exportInteractive
    ***Copyright (c) 2018-2023 VMware, Inc. All rights reserved.***
    Initiating CMD interaction.
    Enter host name or IP address of a Lookup Service:XX.XX.XX.XX
    Enter port (or press Enter in case you use the default - 443):
    root@XXXXX [ /opt/vmware/impex ]#
  • Impex.log events
     [srm-reactive-thread-2] INFO com.vmware.srm.client.topology.impl.vmomi.vlsi.BackOffRetryWrapper - Invoking retryable op for LSPP negotiator for https://XX.XX.XX.XX/lookupservice/sdk#299674478
     [main] ERROR com.vmware.srm.client.impex.Main - ERROR_LOG_PREFIX_null
    [main] INFO com.vmware.srm.client.impex.tool.io.ConsoleIOHelper - null
     
  • Same behaviour when running for vsphere replication: java  -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive

Environment

 

vSphere Replication 9.x

VMware Live Site Recovery 9.x

 

Cause

This issue is consistent across SRM/VR Java tools after upgrading the JDK to openjdk version "21.0.4" or later.

Resolution

#Fix for VMware Live Site Recovery

  1. Set variable : 
    JDK_OPTIONS="--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"
  2. Add the options to command:
    java ${JDK_OPTIONS} -jar import-export.jar

#Fix for vSphere Replication

  1. Navigate to the following directory:
    • cd /opt/vmware/vr-impex-tool/ , and Check the JAR file version in this directory — it should appear as: "vr-impex-tool-<version>.jar"
  2. Replace <version> in the command below with the actual version number, and then run the command:
    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 --exportInteractive

Additional Information