Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Configuration Guide


22.2.2 Procedure for replicating a virtual machine after setting up JP1/AJS3 - Manager (on the original VM)

This subsection describes the procedure for replicating a virtual machine (after setting up JP1/AJS3 - Manager) that must be performed on the original virtual machine.

  1. Install JP1/Base on a virtual machine.

    For details about the installation procedure, see the JP1/Base User's Guide.

  2. Set up JP1/Base.

    For details about the setup procedure, see the JP1/Base User's Guide.

  3. Install JP1/AJS3 - Manager on the virtual machine.

    For details about the installation procedure, see 2.2.3 Installing a JP1/AJS3 series program (in Windows), or 12.2 Installing JP1/AJS3 series programs (in UNIX).

  4. Set up JP1/AJS3 - Manager.

    Specify only the settings that are necessary for the replicated virtual machine.

    For the setup procedures, see the subsections listed below.

    In Windows:

    3.1.2 Setting up JP1/AJS3 - Manager

    In UNIX:

    13.1.2 Setting up JP1/AJS3 - Manager

    Cautionary note:

    You can only replicate a virtual machine if no logical host was created for that virtual machine. Do not replicate a virtual machine that is in a cluster or a disaster recovery environment, because a logical host was created for that virtual machine.

  5. Start the JP1/AJS3 service, and make sure that no error messages were output to the integrated trace log.

  6. Define the units that are necessary for the replicated virtual machine.

  7. Make sure there are no problems with jobnet execution, command execution, or other actions that are essential for operation.

    Cautionary notes:

    - To register a jobnet execution, make sure to register the jobnet for immediate execution. If you register it for planned execution or fixed execution, unintended jobs might be executed on the replicated virtual machine.

    - Do not stop the JP1/AJS3 service while jobnets are being executed. Wait until the execution of all jobnets ends or forcibly terminate the jobnets, and then stop the JP1/AJS3 service.

  8. Stop the JP1/AJS3 service.

  9. If the embedded database is active, stop it by executing the command ajsembdbstop.

    To check whether the embedded database is active, execute the command ajsembdbstatus.

    For details about the command ajsembdbstop, see ajsembdbstop in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

  10. Perform the tasks that are required in JP1/Base before the virtual machine is replicated as a disk copy installation.

    For the tasks that must be performed in JP1/Base during disk copy installation, see the JP1/Base User's Guide.

  11. Edit the system configuration file for the embedded database.

    You do not need to perform this procedure if a new installation of JP1/AJS3 - Manager version 12-10 or later was performed.

    The location of the system configuration file for the embedded database is given below.

    In Windows:

    embedded-database-practical-directory\conf\pdsys

    In UNIX:

    embedded-database-practical-directory/conf/pdsys

    In a text editor, open the system configuration file for the embedded database, and then delete the specification of the replication-source host name. An example of editing the file is given below.

    Before the change:

    pdstart -t SDS -s ajs2 -u unt1 -m 127.0.0.1,source_host_name

    After the change:

    pdstart -t SDS -s ajs2 -u unt1 -m 127.0.0.1

  12. Cold-start the JP1/AJS3 service.

    For details about how to cold-start the JP1/AJS3 service, see 6.2.1 Temporarily changing the start mode of JP1/AJS3 in the JP1/Automatic Job Management System 3 Administration Guide.

  13. Delete the manager host name stored in the agent process.

    Execute the command jpoagoec -r to delete the manager host name. After command execution finishes, make sure the return value is 0 (normal termination). In addition, execute the command jpoagoec -p, and make sure the deleted manager host name is not output.

    For details about the command jpoagoec, see the description jpoagoec in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

  14. If you want the replicated virtual machine to inherit the execution environment for queue jobs and submit jobs, and if you want to change the host name after replication, back up the execution environment.

    Execute the command jpqexport to back up the execution environment for queue jobs and submit jobs. After command execution finishes, make sure the return value is 0 (normal termination).

    For details about the command jpqexport, see the description jpqexport in 4. Commands Used for Special Operation in the manual JP1/Automatic Job Management System 3 Command Reference.

  15. Disable automatic startup of the JP1/Base and JP1/AJS3 services.

    Disable automatic startup of the JP1/Base and JP1/AJS3 services on the replicated virtual machine.

    For details about how to disable automatic startup of the JP1/Base service, see the JP1/Base User's Guide.

    For details about how to disable automatic startup of the JP1/AJS3 service, see 4.2.4 Settings for starting and stopping JP1/AJS3 services automatically in the JP1/Automatic Job Management System 3 System Design (Configuration) Guide.

  16. Make sure that the JP1/Base and JP1/AJS3 services, as well as related services, are not running, and then shut down the virtual machine.

  17. Replicate the virtual machine.

    For details about how to replicate a virtual machine, see the documentation for the virtualization software.