smurgu
asked on
Encapsulating SMF services with SUNW.Proxy_SMF_failover
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/a pplication :a
svc:/application/xchange/a pplication :b.
After I register svc:/application/xchange/a pplication :a when I try to register svc:/application/xchange/a pplication :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,
My problem is that I have more instance per one service for example: svc:/application/xchange/a
svc:/application/xchange/a
After I register svc:/application/xchange/a
How can I register SUNW.Proxy_SMF_failover with a manifest that has more instances?
Thank you,
The two instances should both be sub-clauses of a single manifest file.
ASKER
I used this file when I register the resource and is not working.
<svc:/system/cluster/appli caton:a>,\
</var/svc/manifest/system/ cluster/ap plication. xml>
<svc:/system/cluster/appli caton:b>,\
</var/svc/manifest/system/ cluster/ap plication. xml>
Do you have an example of contents of the text file when you have more instances?
<svc:/system/cluster/appli
</var/svc/manifest/system/
<svc:/system/cluster/appli
</var/svc/manifest/system/
Do you have an example of contents of the text file when you have more instances?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I do not have a manifest for my application in /var/svc/manifest/system/c luster/app lication.x ml
I am confused. You listed a manifest in your example above. application.xml.
ASKER
yes but the path to my manifest is /var/svc/manifest/applicat ion/myapp/ applicatio n.xml
insdie the xml file i fave 3 instances:
<instance name='a' enabled='false'>
....
<instance name='b' enabled='false'>
....
<instance name='c' enabled='false'>
.....
insdie the xml file i fave 3 instances:
<instance name='a' enabled='false'>
....
<instance name='b' enabled='false'>
....
<instance name='c' enabled='false'>
.....
ASKER
I am sorry I made a mistake.
My manifest is in /var/svc/manifest/applicat ion/myapp/ applicatio n.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/applicati on/applica tion:b
uninitialized 15:51:40 svc:/application/applicati on/applica tion:a
My manifest is in /var/svc/manifest/applicat
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/applicati
uninitialized 15:51:40 svc:/application/applicati
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?
ASKER
When I enable the resource in the cluster I get this:
SC[SUNW.Proxy_SMF_failover ,applicati ontest1,re source-6,s mf_proxy_r esource_st art]: Return the door call result: 0
SC[SUNW.Proxy_SMF_failover ,applicati ontest1,re source-6,s mf_proxy_r esource_st art]: In get status info door result: 0
SC[SUNW.Proxy_SMF_failover ,applicati ontest1,re source-6,s mf_proxy_r esource_st art]: Return the door call result: 0
SC[SUNW.Proxy_SMF_failover ,applicati ontest1,re source-6,s mf_proxy_r esource_st art]: In get status info door result: 0
Cluster.SMF.DR:
applicationtest1 svc:/application/app/appli cation:a-> In scf_simple_prop_get:entity not found, method: sc_delegated_pg
applicationtest1 Cluster.SMF.DR:
applicationtest1 svc:/application/app/appli cation: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/appli cation: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
SC[SUNW.Proxy_SMF_failover
SC[SUNW.Proxy_SMF_failover
SC[SUNW.Proxy_SMF_failover
SC[SUNW.Proxy_SMF_failover
Cluster.SMF.DR:
applicationtest1 svc:/application/app/appli
applicationtest1 Cluster.SMF.DR:
applicationtest1 svc:/application/app/appli
applicationtest1 Cluster.SMF.DR:
applicationtest1 Transient: 1003, entity not found
applicationtest1 Cluster.SMF.DR:
applicationtest1 svc:/application/app/appli
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