1821410 Members
2992 Online
109633 Solutions
New Discussion юеВ

How to Enable AUTO_RUN

 
Faizer Jameel
Frequent Advisor

How to Enable AUTO_RUN

Please update me on this.
I have a 2 node cluster.
Before I switched to the 2nd node my cmviewcl-v looked like this.
PACKAGE STATUS STATE AUTO_RUN NODE
SAVPROD up running enabled rprod1
After I switched the package to the primary node from the 2nd node my cmviewcl-v looks like this.
PACKAGE STATUS STATE AUTO_RUN NODE
SAVPROD up running disabled rprod1

How do I have the AUTO_RUN enabled?
What will happen if AUTO_RUN is not enabled?
thanks
Faizer
3 REPLIES 3
Ranjith_5
Honored Contributor

Re: How to Enable AUTO_RUN

Hi,

I am a bit confused with your question. I guess you are looking for the following.

You have an option of making the packages running on specific nodes in a multinode clusters. Each package can be defined to run on specific nodes by default. In this case these packages wont go to a different node unless manually moved.

This can be achieved by cmmodpkg command.

#cmmodpkg -n node1 -e pkg1
#cmmodpkg -n node2 -d pkg1

The first command will enable the package pkg1 to run bydefault on node1 and the second will disable the package pkg1 from running on node2.

#cmmodpkg -n node3 -e pkg3 -e pkg4

The above command will enable the packages pkg3 and pkg4 to run by default on node3.

See man cmmodpkg for more info.

===============================================

Another thing is you can enable the cluster to run automatically during the system boot time. This can be achieved by editing the file /etc/rc.config.d/cmcluser. Add the following line to this file and your cluster will start automatically during system boot.
AUTOSTART_CMCLD=1


Regards,
Syam

Regards,
Syam
Henk Geurts
Esteemed Contributor

Re: How to Enable AUTO_RUN

hallo Faizer
with autorun disabled the package will not try to switch to the other node in case of a failure of its present node....
so it is better to activate autorun:
cmmodpkg -e

to check the packagestatus :
cmviewcl -v -p
this also shows the packageswitchparameters of the nodes....
in case these are disabled , use:
cmmodpkg -e -n

regards.
Henk
Faizer Jameel
Frequent Advisor

Re: How to Enable AUTO_RUN

cmmodpkg -e package name didi the job.
Thanks
Faizer