Hitachi

uCosminexus Application Server System Setup and Operation Guide


I.4 Notes on replicated disk installation and on using the replication functionality provided by the virtual platform (In Linux)

This subsection separately describes notes that apply to each piece of component software when performing replicated disk installation.

Organization of this subsection

(1) Notes on Component Container

The notes on Component Container are as follows. For Component Container, the work you need to perform differs according to the system configuration you are setting up.

(a) When a system (J2EE server) executing J2EE applications is used

This subsection describes the notes on Component Container when a system (J2EE server) executing J2EE applications is used.

  • Work to perform before replication

    The following explains the work you need to perform on the replication source machine before performing replication.

    Implement steps 1 and 2 on the replication source machine. If you are using Management Server, implement step 3 as well.

    Procedure

    1. Stop the following programs on the replication source machine:

      [Figure]J2EE servers (if you are using global transactions, settle any pending transactions before closing the J2EE server programs.)

      [Figure]Web container server

      [Figure]Administration Agent

      [Figure]Management Server

      [Figure]HTTP Server

    2. On the replication source machine, delete any files in the following directories. Do not delete the directories themselves.

      [Figure]/opt/Cosminexus/CC/admin/logs/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/maintenance/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/maintenance/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/rmi/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/rmi/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/comtrc/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/mdltrc/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/*

      [Figure]/opt/Cosminexus/CC/client/logs/*

      [Figure]/opt/Cosminexus/CC/client/logs/mmap/*

      [Figure]/opt/Cosminexus/CC/client/logs/system/ejbcl/mmap/*

      [Figure]/opt/Cosminexus/CC/client/logs/system/ejbcl/*

      [Figure]/opt/Cosminexus/CC/client/logs/system/TPB/logj/comtrc/*

      [Figure]/opt/Cosminexus/CC/client/logs/system/TPB/logj/mdltrc/*

      [Figure]/opt/Cosminexus/CC/client/logs/system/TPB/logj/*

      [Figure]/opt/Cosminexus/CC/web/containers/server-name/logs/TPB/logj/comtrc/*

      [Figure]/opt/Cosminexus/CC/web/containers/server-name/logs/TPB/logj/mdltrc/*

      [Figure]/opt/Cosminexus/CC/web/containers/server-name/logs/TPB/logj/*

      [Figure]/opt/Cosminexus/CC/web/containers/server-name/logs/*

      [Figure]/opt/Cosminexus/CC/web/redirector/servers/server-name/logs/*

      [Figure]/opt/Cosminexus/CC/web/redirector/servers/server-name/logs/mmap/*

      [Figure]/opt/Cosminexus/CC/web/redirector/logs/*

      [Figure]/opt/Cosminexus/CC/web/redirector/logs/mmap/*

      [Figure]/opt/Cosminexus/manager/spool/default/*

      [Figure]/opt/Cosminexus/manager/spool/lsinfo/*

      [Figure]/opt/Cosminexus/manager/tmp/*

      [Figure]/opt/Cosminexus/manager/setup/log/*

      [Figure]/opt/Cosminexus/manager/setup/log/maintenance/*

      [Figure]Work-directory/ejb/server-name/logs/watch/*

      [Figure]Work-directory/ejb/server-name/logs/CC/maintenance/*

      [Figure]Work-directory/ejb/server-name/logs/CC/rmi/*

      [Figure]Work-directory/ejb/server-name/logs/connectors/*

      [Figure]Work-directory/ejb/server-name/logs/connectors/application-display-name/*

      [Figure]Work-directory/ejb/server-name/logs/connectors/TEST#application-display-name/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/mdltrc/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/comtrc/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/*

      [Figure]Work-directory/ejb/server-name/logs/http/comm/*

      [Figure]Work-directory/ejb/server-name/logs/http/thr/*

      [Figure]Work-directory/ejb/server-name/logs/http/*

      [Figure]Work-directory/ejb/server-name/logs/*

      [Figure]Manager-log-output-directory/maintenance/*

      [Figure]Manager-log-output-directory/maintenance/mmap/*

      [Figure]Manager-log-output-directory/message/*

      [Figure]Manager-log-output-directory/message/mmap/*

      [Figure]Manager-log-output-directory/trace/*

      [Figure]Manager-log-output-directory/trace/mmap/*

      [Figure]Manager-log-output-directory/*

      [Figure]snapshot-log-output-destination-directory/*

      [Figure]Audit-log-output-directory\*

      [Figure]Message-log-output-directory-of-audit-log\*

      [Figure]Message-log-output-directory-of-audit-log\mmap\*

      [Figure]Exception-information-output-directory-of-audit-log\*

      [Figure]Exception-information-output-directory-of-audit-log\mmap\*

      Reference note

      The default directories are as follows:

      • Work-directory:/opt/Cosminexus/CC/server/public

      • Manager-log-output-directory:/opt/Cosminexus/manager/log

      • snapshot-log-output-destination-directory:Manager-log-output-directory/snapshot

      • Audit-log-output-directory:/opt/Cosminexus/auditlog

      • Message-log-output-directory-of-audit-log:/opt/Cosminexus/auditlog

      • Exception-information-output-directory-of-audit-log:/opt/Cosminexus/auditlog

    3. When using the Management Server, modify the settings in the property files on the replication source machine.

      The work you need to perform differs according to whether Management Server is running on the replication source machine.

      If Management Server is not running on the replication source machine

      If the replication destination machine is a multihomed host, specify adminagent.adapter.bind_host=regular-expression-matching-management-IP-address-of-replication-destination in the Administration Agent property file (adminagent.properties) on the replication source machine.

      If Management Server is running on the replication source machine

      Set up the properties described in the following table:

      File name

      Property

      Value

      .cmxrc and cmxclient.properties

      cmx.lb

      keepvs

      adminagent.properties

      adminagent.adapter.allowedHosts

      If the mngsvr.myhost.name property of mserver.properties is set up, specify the same value.

      If the mngsvr.myhost.name property of mserver.properties is not set up, specify the regular expression matching with the management IP address for the host.

      mserver.properties

      mngsvr.myhost.name

      If the replication destination machine is a multihomed host, specify a regular-expression-matching-management-IP-address-of-replication-destination.

      webserver.connector.http.bind_host

      adminagent.properties

      adminagent.adapter.bind_host

      .mngsvrutilrc and mngsvrutilcl.properties

      mngsvrutil.connect.host

      If a value other than the loopback address is set up, specify a regular-expression-matching-management-IP-address-of-replication-destination.

      mngsvrutil.target_name

      .cmxrc and cmxclient.properties

      cmx.connect.host

  • Work to perform after replication

    The following explains the work you need to perform on the replication destination machine after performing replication.

    Implement steps 1 and 2 on the replication source machine. If you are using Management Server, implement step 3 as well.

    Procedure

    1. If any of the following properties are specified in the user property file for J2EE servers (usrconf.properties) or the user property file for server management commands (usrconf.properties), change the values on the replication destination machine.

      Change to an appropriate value for each property.

      [Figure]vbroker.se.iiop_tp.host

      [Figure]ejbserver.ctm.CTMMyHost

      [Figure]ejbserver.naming.host

      [Figure]ejbserver.rmi.naming.host

    2. If any of the following properties are specified in the user property file for J2EE servers (usrconf.properties) or the user property file for Web container servers (usrconf.properties), change the values on the replication destination machine.

      Change the value of each property to the IP address of the replication destination.

      [Figure]webserver.connector.http.bind_host

      [Figure]webserver.connector.nio_http.bind_host

      Reset each property value to a unique value for each J2EE server or Web container server.

      [Figure]webserver.container.server_id.value

      [Figure]webserver.session.server_id.value

    3. When using the Management Server, perform the following operations on the replication destination machine:

      1. Defining the host added by the replication process

      2. Deleting the definition of the replication source host from the replication destination host (only when replicating the computer on which Management Server is running)

      3. Defining the logical server added by the replication process

      4. Setting up the logical server added in 3 (specifying the real server name)

      5. Reading the setup file of the logical server added in 3

      6. Allocating the setup file of the logical server added in 3

      7. Re-allocation after the EAR and RAR files are deleted with the server management commands (only when the application management functionality of J2EE servers is used)

(b) When a system (batch server) executing batch applications is used

This subsection describes the notes on Component Container when a system (batch server) executing batch applications is used.

  • Work to perform before replication

    The following explains the work you need to perform on the replication source machine before performing replication.

    Implement steps 1 and 2 on the replication source machine. If you are using Management Server, implement step 3 as well.

    Procedure

    1. Stop the following programs on the replication source machine:

      [Figure]Batch servers (you can stop batch servers without shutting down the resource adapters.)

      [Figure]Administration Agent

      [Figure]Management Server

    2. On the replication source machine, delete any files in the following directories. Do not delete the directories themselves.

      [Figure]/opt/Cosminexus/CC/admin/logs/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/maintenance/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/maintenance/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/rmi/*

      [Figure]/opt/Cosminexus/CC/admin/logs/CC/rmi/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/mmap/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/comtrc/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/mdltrc/*

      [Figure]/opt/Cosminexus/CC/admin/logs/TPB/logj/*

      [Figure]/opt/Cosminexus/CC/client/logs/*

      [Figure]/opt/Cosminexus/CC/client/logs/mmap/*

      [Figure]/opt/Cosminexus/CC/web/containers/server-name/logs/*

      [Figure]/opt/Cosminexus/manager/spool/default/*

      [Figure]/opt/Cosminexus/manager/spool/lsinfo/*

      [Figure]/opt/Cosminexus/manager/tmp/*

      [Figure]/opt/Cosminexus/manager/setup/log/*

      [Figure]/opt/Cosminexus/manager/setup/log/maintenance/*"

      [Figure]Work-directory/ejb/server-name/logs/watch/*

      [Figure]Work-directory/ejb/server-name/logs/CC/maintenance/*

      [Figure]Work-directory/ejb/server-name/logs/CC/rmi/*

      [Figure]Work-directory/ejb/server-name/logs/connectors/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/mdltrc/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/comtrc/*

      [Figure]Work-directory/ejb/server-name/logs/TPB/logj/*

      [Figure]Work-directory/ejb/server-name/logs/*

      [Figure]Manager-log-output-directory/maintenance/*

      [Figure]Manager-log-output-directory/maintenance/mmap/*

      [Figure]Manager-log-output-directory/message/*

      [Figure]Manager-log-output-directory/message/mmap/*

      [Figure]Manager-log-output-directory/trace/*

      [Figure]Manager-log-output-directory/trace/mmap/*

      [Figure]Manager-log-output-directory/*

      [Figure]snapshot-log-output-destination-directory/*

      [Figure]Audit-log-output-directory\*

      [Figure]Message-log-output-directory-of-audit-log\*

      [Figure]Message-log-output-directory-of-audit-log\mmap\*

      [Figure]Exception-information-output-directory-of-audit-log\*

      [Figure]Exception-information-output-directory-of-audit-log\mmap\*

      Reference note

      The default directories are as follows:

      • Work-directory:/opt/Cosminexus/CC/server/public

      • Manager-log-output-directory:/opt/Cosminexus/manager/log

      • snapshot-log-output-destination-directory:Manager-log-output-directory/snapshot

      • Audit-log-output-directory:/opt/Cosminexus/auditlog

      • Message-log-output-directory-of-audit-log:/opt/Cosminexus/auditlog

      • Exception-information-output-directory-of-audit-log:/opt/Cosminexus/auditlog

    3. When using the Management Server, modify the settings in the property files on the replication source machine.

      The work you need to perform differs according to whether Management Server is running on the replication source machine.

      If Management Server is not running on the replication source machine

      If the replication destination machine is a multihomed host, specify adminagent.adapter.bind_host=regular-expression-matching-management-IP-address-of-replication-destination in the Administration Agent property file (adminagent.properties) on the replication source machine.

      If Management Server is running on the replication source machine

      Set up the properties described in the following table:

      File name

      Property

      Value

      adminagent.properties

      adminagent.adapter.allowedHosts

      If the mngsvr.myhost.name property of mserver.properties is set up, specify the same value.

      If the mngsvr.myhost.name property of mserver.properties is not set up, specify the regular expression matching with the management IP address for the host.

      mserver.properties

      mngsvr.myhost.name

      If the replication destination machine is a multihomed host, specify a regular-expression-matching-management-IP-address-of-replication-destination.

      webserver.connector.http.bind_host

      adminagent.properties

      adminagent.adapter.bind_host

      .mngsvrutilrc and mngsvrutilcl.properties

      mngsvrutil.connect.host

      If a value other than the loopback address is set up, specify a regular-expression-matching-management-IP-address-of-replication-destination.

      mngsvrutil.target_name

      .cmxrc and cmxclient.properties

      cmx.connect.host

  • Work to perform after replication

    The following explains the work you need to perform on the replication destination machine after performing replication.

    Implement step 1 on the replication destination machine. If you are using Management Server, implement step 2 as well.

    Procedure

    1. If any of the following properties are specified in the user property file for batch servers (usrconf.properties) or the user property file for server management commands (usrconf.properties), change the values on the replication destination machine.

      Change to an appropriate value for each property.

      [Figure]vbroker.se.iiop_tp.host

      [Figure]ejbserver.naming.host

      [Figure]ejbserver.rmi.naming.host

    2. When using the Management Server, perform the following operations on the replication destination machine:

      1. Defining the host added by the replication process

      2. Deleting the definition of the replication source host from the replication destination host (only when replicating the computer on which Management Server is running)

      3. Defining the logical server added by the replication process

      4. Setting up the logical server added in 3 (specifying the real server name)

      5. Reading the setup file of the logical server added in 3

      6. Allocating the setup file of the logical server added in 3

      7. Re-allocation after the RAR files are deleted with the server management commands (only when the application management functionality of J2EE servers is used)

(2) Notes on Component Container - Redirector

This subsection describes the notes on Component Container - Redirector.

(3) Notes on Reliable Messaging

This subsection describes the notes on Reliable Messaging.

(4) Notes on Component Transaction Monitor

(5) Notes on Performance Tracer

After performing replication, delete the entire contents of the directory specified in the PRFSPOOL environment variable from the replication destination machine.

(6) Notes on HTTP Server

This subsection describes the notes on HTTP Server.

(7) Notes on TPBroker

This subsection describes the notes on TPBroker.

(8) Notes on Service Coordinator

This subsection describes the notes on Service Coordinator.