Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Encapsulating SMF services with SUNW.Proxy_SMF_failover

Posted on 2008-10-28
9
Medium Priority
?
637 Views
Last Modified: 2013-12-27
I am trying to use SUNW.Proxy_SMF_failover to register an SMF services.

My problem is that I have more instance per one service for example: svc:/application/xchange/application:a
svc:/application/xchange/application:b.

After I register svc:/application/xchange/application:a when I try to register svc:/application/xchange/application:b I get a message saying that the manifest is already used by another resource.

How can I register SUNW.Proxy_SMF_failover with a manifest that has more instances?

Thank you,
0
Comment
Question by:smurgu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 22

Expert Comment

by:blu
ID: 22822911
The two instances should both be sub-clauses of a single manifest file.
0
 

Author Comment

by:smurgu
ID: 22822974
I used this file when I register the resource and is not working.

<svc:/system/cluster/applicaton:a>,\
</var/svc/manifest/system/cluster/application.xml>
<svc:/system/cluster/applicaton:b>,\
</var/svc/manifest/system/cluster/application.xml>

Do you have an example of contents of the text file when you have more instances?
0
 
LVL 22

Accepted Solution

by:
blu earned 1500 total points
ID: 22823478

If you look at the file /var/svc/manifest/system/cluster/application.xml there is likely a clause in it that starts like
"<instance name=". You just need to replicate that and change the name and any other properties. If it does not
have an instance clause in it, you probably have a <single_instance /> tag specifying that only instance is allowed.

I suggest you look at some of the other manifest files to see how to add instances. But do not edit these file in place. You
should use the svccfg command ot export and import manifests.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:smurgu
ID: 22825242
I do not have a manifest for my application in /var/svc/manifest/system/cluster/application.xml
0
 
LVL 22

Expert Comment

by:blu
ID: 22825521
I am confused. You listed a manifest in your example above. application.xml.
0
 

Author Comment

by:smurgu
ID: 22825566
yes but the path to my manifest is /var/svc/manifest/application/myapp/application.xml

insdie the xml file i fave 3 instances:

<instance name='a' enabled='false'>
....
<instance name='b' enabled='false'>
....
<instance name='c' enabled='false'>
.....

0
 

Author Comment

by:smurgu
ID: 22826110
I am sorry I made a mistake.
My manifest is in /var/svc/manifest/application/myapp/application.xml  the first path was an example from sun documentation.

In my manifest I have 3 instances but I can start only one in the cluster the second one is in uninitialized:
bash-3.00# svcs -a |grep application
online         15:51:48 svc:/application/application/application:b
uninitialized  15:51:40 svc:/application/application/application:a



0
 
LVL 22

Expert Comment

by:blu
ID: 22826662
Not sure why. The designated restarter has not even processed it yet. Is the service instance enabled or might it take a long time to come online?
0
 

Author Comment

by:smurgu
ID: 22831473
When I enable the resource in the cluster I get this:

SC[SUNW.Proxy_SMF_failover,applicationtest1,resource-6,smf_proxy_resource_start]: Return the door call result: 0
SC[SUNW.Proxy_SMF_failover,applicationtest1,resource-6,smf_proxy_resource_start]: In get status info door result: 0
SC[SUNW.Proxy_SMF_failover,applicationtest1,resource-6,smf_proxy_resource_start]: Return the door call result: 0
SC[SUNW.Proxy_SMF_failover,applicationtest1,resource-6,smf_proxy_resource_start]: In get status info door result: 0
 Cluster.SMF.DR:
applicationtest1  svc:/application/app/application:a->In scf_simple_prop_get:entity not found, method: sc_delegated_pg
applicationtest1 Cluster.SMF.DR:
applicationtest1  svc:/application/app/application:b->In scf_simple_prop_get:entity not found, method:
applicationtest1 Cluster.SMF.DR:
applicationtest1  Transient: 1003, entity not found
applicationtest1 Cluster.SMF.DR:
applicationtest1 svc:/application/app/application:a->In scf_simple_prop_get:entity not found, method: startd
applicationtest1 Cluster.SMF.DR:
applicationtest1  Transient: 1003, entity not found

And the cluster is in pending online for a long time and finally comes online but the instances are not online if I restart the cluster group some time I receive the stop failed flag and other times is restarting with no problem but still the services are not online or is only one online.

Thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question