Configuring the site-specific IP address

If the home site and the backup site have different network configuration, the KSYS subsystem uses sample scripts to configure the network configuration provided by the user at the backup site.

You can find the sample script at the /opt/IBM/ksys/samples/site_specific_nw location. The sample script is placed at this location during the installation process.
Note: The site-specific IP address script is different for AIX virtual machines and Linux virtual machines. You must copy the script to the respective virtual machines and follow the instruction that is provided in the README file.

These sample scripts are used during the migration operation for the DR-only environment. For AIX environment, you must update the latest configuration file site_specfic_ip_config.cfg with network configuration details for both source site and target site before migration operation starts. The site_specfic_ip_config.cfg file helps you to avoid manual updates of the network configuration details for each migration.

For the Linux environment, follow the instructions in the readme file, README_NW_IP_LINUX to manually update the network configuration at the DR site.

For AIX environment, follow the procedure that is provided in the readme file in the AIX folder.

For more information, see Site-specific IP configurations in IBM Recovery Manager DR.

Enhanced site-specific IP address without ghostdev

The site-specific IP configuration workflow has been streamlined in newer versions. If you do not want to enable ghostdev, follow below modified steps. The scripts continue to be used in the same way, and the site_specfic_ip_config.cfg file remains the primary source for network details across sites. The main change is that some earlier steps are no longer required, and the network configuration script now runs as part of the main setup process at the DR site. As a result, fewer manual actions are needed, while the overall behavior and outcome of site-specific IP configuration remain consistent with previous releases.

There are a series of steps to be performed to set up the required network configuration for AIX VMs. The steps involve copying customized scripts written for AIX VMs to the required VM network configuration directory and then run the necessary script.

Following are the steps for enhanced site-specific IP address:

  1. Copy the sample script
    • Locate the scripts installed in the KSYS node at: /opt/IBM/ksys/samples/site_specific_nw/AIX
    • Copy the scrips into the following directory: /usr/local/bin/ of the production VMs.
    scp setup_dr_hostname_ip_via_config_file site_specfic_ip_config.cfg setup_dr <user>@<VM IP/hostname >:/usr/local/bin
  2. Customize the VM site_specfic_ip_config.cfg configuration file with the appropriate IP address, netmask, and name server corresponding to the target VM.
  3. Run the following commands to disable the ghostdev parameter in the AIX system.
    • Do not the modify the ghostdev parameter by default it is 0, if it is 1 you can modify by below commands
    • Run the following commands to enable the ghostdev parameter:
      # lsattr -El sys0 -a ghostdev - command to fetch existing ghostdev value
      # chdev -l sys0 -a ghostdev=0 - command to modify ghostdev parameter
      # savebase - this will save the changed ghostdev parameter.
  4. After completing the DR migration operation, connect to the VM console through the Hardware Management Console (HMC).
    1. Log into the HMC command line as an administrative user
    2. Run the vtmenu command to display the managed systems Central Electronics Complex (CEC) list.
    3. Select the appropriate managed CEC from the list.
    4. Select the appropriate VM from the VM list of the CEC.
    5. The virtual terminal to the VM will be displayed. Copy the sample scripts to the VM from the KSYS node.
  5. Log into the DR VM as a root user and run the main script, setup_dr. The setup_dr_hostname_ip_via_config_file script will run as part of the main setup_dr script and it reboots the VM
    /setup_dr
  6. Verify the VM network configuration by running the ifconfig -a command. This command displays the network configuration details such as IP, name server, and so on. If the IP address displayed on the console and the IP address given in network configuration file are the same, it means that your configuration is successful.
    ifconfig -a