Skip to main content

How to find if a replicated service is a master or slave.

  • May 17, 2013
  • 0 replies
  • 0 views

Summary
Article Number 30777
Environment Orbix 6.3.X All Platforms
Question/Problem Description

How to find the replication status of a  service.
How to find if a replicated service is acting as the master or slave.

Clarifying Information Example:

This is an example of a two node Orbix environment with a naming service defined on each node. The goal is to find which node is the master and which is the slave.

On host WIN764

 c:\\> itadmin pss_db show C:\\apps\\OX635_x86\\var\\Failover\\dbs\\naming_WIN764\\env.ior
Environment name: it_naming_store
Replicated:       yes
Replica name:     iona_services.naming.WIN764
Replica type:     master

On host WIN732:

c:/> itadmin pss_db show C:\\apps\\OX635\\var\\Failover\\dbs\\naming_WIN732\\env.ior 
Environment name: it_naming_store
Replicated:       yes
Replica name:     iona_services.naming.WIN732
Replica type:     slave

Thus the WIN764 node is the master node and WIN732 is the slave node.
Error Message
Defect/Enhancement Number
Cause
Resolution To find information on replicated service run the command
itadmin pss_db show <<path to service database>>/env.ior
for example
             itadmin pss_db show  C:\\xxx\\Orbix\\var\\Demos\\dbs\\naming_nbrotccleverl\\env.ior

This command will return information as to if the service is replicated, if the service is acting as a master or slave and the service name.

You must enter the path to the env.ior file for the environment on which you need information. Each service's environment ior is generally located in the directory <<orbix install>>\\var\\<<Domain Name>>\\dbs\\<<service name>>_<<hostname>>\\

 
Workaround
Notes
Attachment
Created date: 03 April 2012
Last Modified: 13 February 2013
Last Published: 18 May 2012
First Published date: 18 May 2012

#KnowledgeDocs
#Orbix